Home Explore Blog CI



docker

4th chunk of `content/manuals/engine/daemon/prometheus.md`
41282f21b575104d7abb91ebcf12a715b0afb987149206eb00000001000002cd


## Next steps

The example provided here shows how to run Prometheus as a container on your
local system. In practice, you'll probably be running Prometheus on another
system or as a cloud service somewhere. You can set up the Docker daemon as a
Prometheus target in such contexts too. Configure the `metrics-addr` of the
daemon and add the address of the daemon as a scrape endpoint in your
Prometheus configuration.

```yaml
- job_name: docker
  static_configs:
    - targets: ["docker.daemon.example:<PORT>"]
```

For more information about Prometheus, refer to the
[Prometheus documentation](https://prometheus.io/docs/introduction/overview/)

Title: Configuring Docker Daemon as a Prometheus Target
Summary
This section explains the next steps in setting up Prometheus to monitor the Docker daemon. Instead of running Prometheus locally, it describes how to configure the Docker daemon as a target for a Prometheus instance running on another system or as a cloud service. This involves setting the `metrics-addr` of the daemon and adding the daemon's address as a scrape endpoint in the Prometheus configuration file. The section also provides a link to the Prometheus documentation for further information.