You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 9090 is the problem. Port 9090 is the port of the Prometheus server, not any exporter. The ports for the exporters are here.
Here is what I would suggest:
To scrape metrics from a Prometheus exporter, configure the hosts field to it. The default port assignments for known exporters are documented in the Prometheus docs.The path to retrieve the metrics from (/metrics by default) can be configured with metrics_path. The following example collects Redis (port 9121) and HAProxy (port 9101) from the servers redisserver and haproxyserver respectively:
URL
The docs show this for scraping from an exporter:
The
9090
is the problem. Port9090
is the port of the Prometheus server, not any exporter. The ports for the exporters are here.Here is what I would suggest:
To scrape metrics from a Prometheus exporter, configure the hosts field to it. The default port assignments for known exporters are documented in the Prometheus docs.The path to retrieve the metrics from (/metrics by default) can be configured with metrics_path. The following example collects Redis (port 9121) and HAProxy (port 9101) from the servers redisserver and haproxyserver respectively:
The text was updated successfully, but these errors were encountered: