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.
在2020年10月28日星期三 UTC+8 下午7:53:05<[email protected]> 写道: > 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. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f44f76b6-35fc-4007-bf77-257b56e4d5acn%40googlegroups.com.

