Closed arj22 closed 4 years ago
You can create a job per check.
@brian-brazil,@arj22 , Can you please give the format of how multiple commands will write in prometheus.yml file??? I didn't find the proper specific answer on the internet. I stuck on this point for the last 2 days. thanks in advance!!
@brian-brazil,@arj22 , Can you please give the format of how multiple commands will write in prometheus.yml file??? I didn't find the proper specific answer on the internet. I stuck on this point for the last 2 days. thanks in advance!!
scrape_configs:
- job_name: nrpe_check_load
metrics_path: /export
params:
command: [check_load]
static_configs:
- targets:
- 'example.com:5666'
- job_name: nrpe_check_users
metrics_path: /export
params:
command: [check_users]
static_configs:
- targets:
- 'example.com:5666'
as advised by Brian.
Hello,
Is it possible to specify multiple commands against targets?
I have tried the following and it seems to fail. It would be easy to group all checks for targets in a job.
Thanks.