-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telemetry custom metrics always zero #569
Comments
Correct, the log will show the Try something like this, where you break up the "metrics": [
{
"namespace": "wp",
"subsystem": "memory",
"name": "percent",
"help": "percentage of memory used",
"type": "gauge"
},
]
} That should allow you to post a metric using the following command. $ /bin/containerpilot -putmetric 'wp_memory_percent=42' This is how our integration test checks a |
Separating the name into namespace, subsystem, and name worked. If this is now required, then the docs need updating. From Telemetry >> Collector configuration:
|
That's good to know. When someone has free time it would be nice to enforce that |
I'll leave this issue open for that. |
Version: 3.8.0
GitHash: 408dbc9
The config is containerpilot.json:
An extract from the log is containerpilot.log:
These lines repeat every 5 seconds with only the
sensor
pid and the metric event values changing.From the log it does appear that the metric values are being received by containerpilot, but when I view the http://localhost:9090/metrics endpoint it always shows 0 for the custom metrics
wp_cpu_load
andwp_memory_percent
:The text was updated successfully, but these errors were encountered: