Files
deploy-sourcegraph-docker/prometheus
Stephen Gutekanst 748667da2d remove "replacer" service (#126)
This PR removes the `replacer` service, which is no longer used in Sourcegraph.
See https://github.com/sourcegraph/sourcegraph/pull/12480

Note:

This PR cannot yet be merged, it is blocked on:

- https://github.com/sourcegraph/sourcegraph/issues/12544 being fixed
- `replacer` being removed again from our app.
2020-08-07 14:01:13 -07: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