Our local setup exposes each container in a local docker-compose network. Grafana agent is agent, and the exporter is exporter. That said, if we have a server_url values localhost:<some_port>, the exporter will just expose the /metrics endpoint in the local network.
By using just :<some_port> the exporter uses the 0.0.0.0 interface, which catches all network traffic, including the agent.
Our local setup exposes each container in a local docker-compose network. Grafana agent is
agent
, and the exporter isexporter
. That said, if we have aserver_url
valueslocalhost:<some_port>
, the exporter will just expose the/metrics
endpoint in the local network.By using just
:<some_port>
the exporter uses the0.0.0.0
interface, which catches all network traffic, including the agent.