< Citoid
Citoid/Prometheus
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
This article is issued from Wikimedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.