Is there a way to edit the permetheus.yaml file at web pages other than edit the file directly?

44 views
Skip to first unread message

田银刚

unread,
Oct 28, 2020, 7:28:22 AM10/28/20
to Prometheus Users
This maybe more user friendly.

Brian Candler

unread,
Oct 28, 2020, 7:53:05 AM10/28/20
to Prometheus Users
Not built in to prometheus, no.

You can of course write your own web interface, which writes out a new YAML file and then signals Prometheus to say that it has changed.

However, normally this is not required. Don't use the "static" service discovery mechanism - use one of the others.  Even the "file" SD is better.  This keeps the targets in a separate file, and means you can change the targets file without touching the main prometheus configuration.

Gilbert Tian

unread,
Oct 29, 2020, 9:33:24 PM10/29/20
to Prometheus Users
Thanks for replaying.
My intension is that it is easy to make mistakes when edit prometheus.yaml, alert_rules.yaml and alertmanager.yaml directly.thus, I was wondering,what if we can edit these files form the web page,and then generate these files automanticly?This is really whorth trying,because it make it possible for people who is not familiar with YAML format.

Ben Kochie

unread,
Oct 30, 2020, 4:34:29 PM10/30/20
to Gilbert Tian, Prometheus Users
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f44f76b6-35fc-4007-bf77-257b56e4d5acn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages