--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6fb14054-681c-4a6d-9585-5b50f2c35dca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.To post to this group, send email to promethe...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAF-W3DHaOH9%2BS66f0p4YAa3Z8ETBnUgAMWbnd7U%2B3%3DH6eYzRnQ%40mail.gmail.com.
As an example of build-your-own, here at my company we have written a small Python script (~300 LOC) that integrates with our machine/service database system and our deployment system. The deployment system runs it on every Prometheus server every 15 minutes, where it then writes out a new config file based on the data from our machine/service database and (if needed) sends SIGHUP to the Prometheus server.So, the integration is pretty straightforward and doesn't take a ton of work to do. I cobbled it together over a weekend (which was mostly time spent on getting the rules right so we would stop destroying our Prometheus servers).If you're a smaller site, even just writing a small script and running it via cron is probably good enough. If you're using AWS or Google Cloud or something else they all provide APIs for discovery so you can just automate that function to write out the desired targets file. (And I'd probably recommend that over manually updating, it'll ultimately save you time spent on configuration...and misconfiguration.)On Mon, Jun 12, 2017, at 07:18 AM, Conor Broderick wrote:
There isn't any tool to modify either the Prometheus or Alertmanager's configuration files.The recommended approach to achieve something like this is to build your own solution to do so.
On 12 June 2017 at 15:14, <huihui...@gmail.com> wrote:
Every time I want to add a job, I can only modify the configuration file, and then reload prometheus.Is there any tool to add a job to the graphical interface without having to manually modify the configuration file?On the page of http://localhost:9090/, you can not modify the configuration file.The configuration of alertmanager has the same question.
--
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 post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6fb14054-681c-4a6d-9585-5b50f2c35dca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.