-
Notifications
You must be signed in to change notification settings - Fork 34
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
Expose metrics over tcp #677
Comments
Thanks for the report. You are absolutely right that As to operational overhead, it gets lumped into the rest of maintenance costs of the observability stack. There are many prior examples here, like If it makes things easier, we can consider exposing the same textual metrics over another existing local transport, i.e. through a DBus method. |
Hey @lucab, thanks for the quick response!
Yes, that would certainly help, thank you!
I understand that this may be a decision that's already been decided on, but I do want to push back on this framing a little bit . I would argue that zincati is more alike kubelet rather than postgres; its a daemon service that is primarily concerned with the node itself, rather than a specific application. Specifically, scale wise, zincati needs to be deployed on every coreos VM/node that an infra team manages; what this means is we're easily looking at 100s to 1000s of instances of zincati that need to be managed (by the median infra team; I'm quoting this number as a rough guess from what I've seen). The overhead of yet another service just to collect metrics from zincati would need to be on the same order. I understand that this is not a perfect comparison since kubelets are http servers too, adding a metrics endpoint is just another handler rather than adding an http handler just for serving metrics. But it also seems like rust does offer libraries to enable this without too much overhead. In any case, my vote is to enable metrics over http to make life easier for infra teams that have to manage zincati. I would be happy to make a contribution to enable this feature if the project owners are not against it. |
Feature Request
Currently metrics are exposed over unix sockets, and its recommended to use local_exporter. However, there are 2 main issues:
Desired Feature
its possible to read the metrics over a configurable tcp endpoint (host:port)
Example Usage
Other Information
The text was updated successfully, but these errors were encountered: