You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working on a Go service that interacts with Prometheus. I need to update the Prometheus configuration dynamically and reload it programmatically. I know the HTTP POST request to the /-/reload endpoint, but I wonder if there is a more direct way to achieve this using the official Prometheus Go client library (client_golang).
Does the client_golang library provide an API to reload the Prometheus configuration? If so, could you please point me to the relevant documentation or provide an example?
Additionally, if anyone is using an alternative method to reload the configuration programmatically, could you please share a code snippet?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone,
I am currently working on a Go service that interacts with Prometheus. I need to update the Prometheus configuration dynamically and reload it programmatically. I know the HTTP POST request to the /-/reload endpoint, but I wonder if there is a more direct way to achieve this using the official Prometheus Go client library (client_golang).
Does the client_golang library provide an API to reload the Prometheus configuration? If so, could you please point me to the relevant documentation or provide an example?
Additionally, if anyone is using an alternative method to reload the configuration programmatically, could you please share a code snippet?
Thank you for your assistance!
Best regards,
Kishore
Beta Was this translation helpful? Give feedback.
All reactions