-
Notifications
You must be signed in to change notification settings - Fork 100
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
Metrics server dead after pushing metrics on GKE #168
Comments
Unfortunately this does not work, and I am disinclined to support it, see the discussion in #165 (I'm going to add a note to the readme). Are getting the same message when you open/curl Throwing 500s on the metrics endpoint is not a great thing either though, this is covered in #79. |
cf. #165 #168 Using this exporter together with the Graphite bridge (at least the one in the Python client) does not work. Discourage trying this; point at alternatives instead. Signed-off-by: Matthias Rampke <[email protected]>
Closes #165 #168. Using this exporter together with the Graphite bridge (at least the one in the Python client) does not work. Discourage trying this; point at alternatives instead. Signed-off-by: Matthias Rampke <[email protected]>
Assuming I can rewrite the graphite bridge, is there an easy fix? |
You can disable the process collector, this should stop the Python client from emitting the conflicting metrics. However, I would strongly recommend instead configuring Prometheus to scrape your application directly, or to use the Grafana Agent to scrape-and-push. The Graphite bridge and exporter are not a good way to build a push-based collection system. |
See also #170 where I try to clarify this in the README. |
I want to use this for batch jobs instrumentation, and keeping the Prometheus client with the Graphite bridge means we can use the same client through the entire code base |
Ah! For that case, the pushgateway is a better choice, I will add that to #170, thank you! |
I still hope to make it work. The graphite exporter is so much like the statsd one that I practically get the helm chart OOB, and it gives me the ability to tag all of the metrics it filters by their source. |
In the pushgateway, both are solved by using an appropriate grouping key. Make sure that it identifies the target, and PUT your metrics. If a metric is no longer submitted as a given group, it will disappear. |
I'm going to close this issue, as changing the default metrics would be a breaking change for existing users, and I don't want to do that for a use-case that has better alternatives. |
Hi,
I deployed the graphite exporter to k8s (basically copied from the statsd-exporter helm chart) and tried to push metrics using the prometheus python client.
This works fine locally, but on k8s, whenever I push, log shows the incoming metrics (parsed with labels) but the metrics server starts returning 500 errors until the liveness probe kills it.
I'm using this script:
my graphite config
And my input arguments:
I'll just add that when the metrics don't match the mapping (
*.*.*
) they show up fine at the metrics server with no issueThe text was updated successfully, but these errors were encountered: