-
Notifications
You must be signed in to change notification settings - Fork 99
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
Implement Prometheus statser #284
Comments
Hey, I am keen to give this issue a go. All good if I take it from here? |
That'd be great! |
Would |
I'm not familiar with the Prom SDK in go, but my approach would be to create an appropriate PromStatser (which also includes the necessary Handler) in If it's the wrong type, return an error - fast fail on startup is encouraged. |
When you said if it's enabled, do you mean if the flag for such as if enableIngestion {
server.rawMetricsV2 = newRawHttpHandlerV2(logger, serverName, handler)
routes = append(routes,
route{path: "/v2/raw", handler: server.rawMetricsV2.MetricHandler, methods: []string{"POST"}, name: "metricsv2_post"},
route{path: "/v2/event", handler: server.rawMetricsV2.EventHandler, methods: []string{"POST"}, name: "eventsv2_post"},
)
} So this means if If it is not the case, then I am not sure what you mean by checking if it's enabled and how we can attach the handler. |
You don't need to worry about Metric/EventHandler, that would be for making a prom backend (#285), this is purely for internal metrics. I would suggest approaching this in two steps. First, implement the Once you've got the metrics exposed and working that way, you need to get the |
This would allow for internal metrics to be monitored from prom.
This could be useful when there's a large number of ephemeral hosts, and other backends may not scale as well with the high cardinality of internal metrics across many hosts.
This is mostly stand-alone and doesn't interact with the more complicated aspects of how gostatsd handles things, as it's mostly just adding an http server + prom, so it's probably a good issue for someone looking to get across the code base.
This is explicitly not a prom backend, this is only for internal metrics, see #285 for that.
The text was updated successfully, but these errors were encountered: