RESTMon Data Collection not working for ThousandEyes SaaS
search cancel

RESTMon Data Collection not working for ThousandEyes SaaS

book

Article ID: 259548

calendar_today

Updated On:

Products

DX Operational Intelligence

Issue/Introduction

After upgrading our Kubernetes cluster, I had to rebuild the RESTMon pod supporting ThousandEyes. It was returning 400 errors and not collecting data. I went back and found the above referenced ticket. I removed the headers and Authorization entry from the definitions block in the thousandeyes_schema.json and that did not fix the problem. I’ve attached the  json as it is on the pod. Here’s the current error:

 [main] WARN  Scheduler:195 - thousandeyes~~thousandeyes - The profile can not be processed as the referred schema 'thousandeyes_schema.json' does not exist or is valid.

And from a swagger ui perspective:

{

  "Status": "Data collection is not happening"

}

 

Resolution

In thousandeyes schema:

Issue was in the definition stanza that 

"headers": {
          "Authorization": "%token"

was removed instead of 

"headers": {
          "Authorization": "%token"
}

Once the right bracket was removed, metrics appeared.

Additional Information

Misleading error messages in pod log:

 [main] ERROR ProfileConfigurationUtil:249 - Skipping profile with invalid JSON data thousandeyes~~thousandeyes
 [main] WARN  RestmonRestHelper:385 - thousandeyes~~thousandeyes - Invalid Schema name: The schema name used in the profile and the schema definition object does not match.
 [main] WARN  Scheduler:195 - thousandeyes~~thousandeyes - The profile can not be processed as the referred schema 'thousandeyes_schema.json' does not exist or is valid.