Files
deploy-sourcegraph-docker/prometheus
Erik Seliger 216c11be94 Remove GitHub proxy service (#942)
See sourcegraph/sourcegraph#55290, we're removing this service in favor of deployment simplicity with a redis-based equivalent.
2023-10-12 15:19:12 +02:00
..

Prometheus configuration

This directory contains configuration for the Prometheus metrics deployment.

This directory is mounted into the prometheus container. After making your changes to this directory, simply docker restart prometheus for your changes to take effect (depending on your change, Prometheus may respond to it as soon as you save the file).

You can add _rules.yml and _targets.yml files to this directory and they will be picked up automatically.

Docker metrics scraping

To scrape Docker itself for metrics, add the following file depending on your host machine OS:

Linux

Create prometheus/docker_targets.yml:

- labels:
    job: docker
  targets:
    - localhost:9323

Mac & Windows

Create prometheus/docker_targets.yml:

- labels:
    job: docker
  targets:
    - host.docker.internal:9323