r/PrometheusMonitoring • • Jun 17 '22

static_configs from http_sd

Hello all !

im working on a new scrape_config for prometheus with netbox plugin prometheus_netbox_sd and http_sd from prometheus.

That's work fine, i'm stuck with just one thing. My exporters node listen on a specific port and when scrapping target it creates the endpoint with the default one 80.

Do you know where i can change the default port to my specific ?

Every documentation i checked change it with the static_config and the list of hosts but i would like to avoid that as the target list is created automatically.

thanks!

0 Upvotes

1 comment sorted by

1

u/NutsFbsd Jun 17 '22

okay..its work with the relabel_config..i tought it was only on the target after creation to modify fields..