Prometheus
For integration with prometheus you have to configure new job in scrape config
Simple example configuration
Global config
global: scrape_interval: 15s # Set the scrape interval to every 15 seconds.
evaluation_interval: 15s # Evaluate rules every 15 seconds.
scrapetimeout: 15s # scrapetimeout is set to the global default (10s).
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’scrape_interval: 30sstatic_configs:
- targets: [‘metrics.emtool.org’]
Using environment
By default prometheus will be pick all the domains in pool. For separate it to different monitoring system please use predefined tag “environment” as GET parameter
ex. metrics.emtool.org/metrics/”token”?environment=prod