Citoid/Prometheus
< Citoid
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