Questions tagged [prometheus-net]
17 questions
0
votes
1 answer
Prometheus: wildcard dns - based discovery
In the prometheus documentation, there is an example about service discovery using dns, in which the following snippet should be added to the configuration file:
scrape_configs:
- job_name: 'myjob'
dns_sd_configs:
- names:
-…

pkaramol
- 16,451
- 43
- 149
- 324
0
votes
1 answer
Prometheus: Reducing repeated rules using regexp
In Prometheus recording rules,
I want to record the rate of job failure in each of my Jenkins job.
This expression will allow me to do that. Rate of failure for MyJenkinsJob_1.
( sum(jenkins_job_last_build_failed_tests{jobname="MyJenkinsJob_1"})
…

Vaisakh Rajagopal
- 1,189
- 1
- 14
- 23