After upgrading our Kubernetes cluster, WE had to rebuild the RESTMon pod supporting ThousandEyes. It was returning 400 errors and not collecting data. wE removed the headers and Authorization entry from the definitions block in the thousandeyes_schema.json and that did not fix the probleM.
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"
}
In thousandeyes schema:
The issue was in the definition stanza in that:
"headers": {
"Authorization": "%token"
was removed instead of:
"headers": {
"Authorization": "%token"
}
Once the right bracket was removed, metrics appeared.
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.