The Grafana agent isn't really meant for complex/large setups. If you have a large/dynamic target list you're probably better off just running normal Prometheus and exporters.
On Thu, Jan 11, 2024 at 10:09 AM 'Elliott Balsley' via Prometheus Users < prometheus-users@googlegroups.com> wrote: > I noticed Grafana Agent flow mode has many of the popular Prometheus > exporters built in. > > https://grafana.com/docs/agent/latest/flow/reference/components/prometheus.exporter.snmp/ > > Unfortunately, these blocks require that you hard code the list of targets > in the config.river file, so there is no way to dynamically connect it to a > discovery block. Adding targets would require rewriting the config file and > restarting the service. > > I’m curious if anyone else has found a good use for these embedded > exporters? > > I’m currently running Prometheus embedded in the agent, receiving the map > of targets from HTTP discovery with some relabeling (multi-target exporter > pattern), and scraping a separate instance of snmp-exporter. > > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/CALajkdhS9Pk3LAHzDCUz4xDeosjtOY0yRKnLhrkFckY9WVMvnQ%40mail.gmail.com > <https://groups.google.com/d/msgid/prometheus-users/CALajkdhS9Pk3LAHzDCUz4xDeosjtOY0yRKnLhrkFckY9WVMvnQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmpuswsc%2BMrDyMFFL2%2Bs84fR9pjRKYNOeqAytNNemVGrjA%40mail.gmail.com.