You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Citoid/Prometheus: Difference between revisions
< Citoid
Jump to navigation
Jump to search
imported>Mvolz |
imported>Majavah m (Reverted edits by Fragguni9989 (talk) to last revision by Mvolz) |
(One intermediate revision by one other user not shown) | |
(No difference)
|
Latest revision as of 12:29, 26 February 2022
You can test citoid locally with Promethesus.
Local config
For citoid
In your config.dev.yaml
# Metrics reporters
metrics:
- type: prometheus
port: 9100
For Prometheus
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['localhost:9100']
- job_name: 'citoid'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['localhost:9102']
Then run both citoid and prometheus
./prometheus --config.file=prometheus.yml