Causes and remedies for the error codes of performance charts, metric queries and sample ingestion.
error.metrics_disabled
Text in the console
Performance data is turned off. The management service runs with performance metrics disabled. Ask an administrator to enable them in the controller configuration.
Meaning for API clients
Performance metrics are turned off on the controller.
Cause. Performance metrics are turned off on the controller, so charts and the usage ledger have no data to serve. The setting is performance in the [metrics] section of the controller configuration.
Remedy.
An administrator sets performance = true in the [metrics] section of the controller configuration and restarts the controller. The value is true by default, so the setting was changed on purpose.
Pass on the message id error.metrics_disabled when you cannot change the configuration yourself.
error.metrics_bad_entity
Text in the console
Performance data is not kept for this object. Only hosts, virtual machines and datastores have charts. Open one of those objects.
Cause. The query asks for too much. A query names at most 100 entities and 100 counters, and returns at most 200,000 samples.
Remedy.
Choose a shorter time range, a longer sampling period or fewer objects. kyvernon metrics query accepts --start, --end, --interval and --max-samples.
Split the query into several smaller ones.
error.metrics_too_many_batches
Text in the console
A host agent sent more than {max} metric batches in one report, so the whole report was rejected. Update the host agent, or contact support if the agent is current.
Meaning for API clients
A host agent sent more than max metric batches in one report; the whole report is rejected.
the most batches the controller accepts in one report.
Cause. A host agent sent more than max sample batches (16) in one report, so the controller rejected the whole report. Nothing is wrong with the metrics service. Console users do not cause this error; it concerns the connection between a host agent and the controller.
Remedy.
Update the host agent to the version of the controller. Both come from the same release.
When it stays, an administrator reads the logs of the controller and the host agent. Pass on the message id and the name of the host.