How to update config file of prometheus if it is running as service on mac?

Viewed 451

How to update prometheus.yml file of prometheus if it is running as service on mac? Please share the command to update prometheus prometheus.yml file on mac.

1 Answers

if you installed prometheus with brew, and run with brew services start prometheus you can edit the config file which in /usr/local/etc/prometheus.yml,then you can restart prometheus with command brew services restart prometheus

Related