mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-02-06 22:25:54 +00:00
test: Add a Prometheus integration test
This patch adds a Prometheus integration test, that runs a Prometheus instance which scrapes chasquid, and then does a basic query to ensure the scraping is working correctly.
This commit is contained in:
12
test/t-23-prometheus/prometheus.yml
Normal file
12
test/t-23-prometheus/prometheus.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
# Prometheus configuration file for testing chasquid metrics.
|
||||
|
||||
global:
|
||||
# Reduce intervals to speed up the tests.
|
||||
scrape_interval: 100ms
|
||||
scrape_timeout: 100ms
|
||||
evaluation_interval: 100ms
|
||||
|
||||
scrape_configs:
|
||||
- job_name: 'chasquid'
|
||||
static_configs:
|
||||
- targets: ['localhost:1099']
|
||||
Reference in New Issue
Block a user