-
Notifications
You must be signed in to change notification settings - Fork 59
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 nats monitoring endpoints to prometheus #99
Comments
Sounds good to me. I think most of this work will take place in the https://github.com/openfaas/faas-netes repo in the helm chart.
^ A setting on the NATS YAML file
^ the sidecar will be a YAML file alongside the NATS YAML
^ Prometheus config rule One thing we may want to consider is potentially talking about retries, if we do retries in the queue-worker, would we want to expose that as a metric? |
@LucasRoesler any thoughts on this? |
While this change looks straight forward there is a consideration to be made. I want to move the queue worker to jetstream. With jetstream retries are probably easier to do as well. |
Thanks for those comments, we will need to bring that into consideration when releasing the NATS metrics and provide an upgrade path or release notes. Is the window until JetStream GA so short, that we should mark the NATS Streaming metrics as experimental/alpha so people can't get too attached? |
I expect to convert the openfaas queue worker to jetstream to gather more feedback. It's certainly too close to start depending on streaming functionalities now. |
I think exposing these metrics is a great idea. With respect to the changing names when moving to JetStream, I echo Alex's question/concern about timing, but also agree that if you want to do this now before JetStream then we can mark it as experimental and we can also avoid announcing that these metrics are exposed to reduce the amount of people tempted to depend on them. |
This fixes openfaas/nats-queue-worker#99 Signed-off-by: Matthias Hanel <mh@synadia.com>
@alexellis , @LucasRoesler , I have submitted the PR As far as timing goes, Jetstream is close, but not here yet. |
Thanks for submitting the PR, I've reviewed it and commented on next steps. |
This fixes openfaas/nats-queue-worker#99 Signed-off-by: Matthias Hanel <mh@synadia.com>
This fixes openfaas/nats-queue-worker#99 Signed-off-by: Matthias Hanel <mh@synadia.com>
Expected Behaviour
Expose stats like pending messages to prometheus and grafana
Current Behaviour
These are currently not exported
Possible Solution
Context
This is a result of #61
The text was updated successfully, but these errors were encountered: