@Tom_ADADE, you’ll have to specify that in the prometheus yaml config file. Here’s how it appears in ours:
# global configs
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
scrape_configs:
- job_name: 'cardano' # To scrape data from the running cardano-node
scrape_interval: 15s
static_configs:
- targets: ['123.123.12.12:9999']
labels:
alias: 'relay1'
type: 'cardano-node'
- targets: ['123.123.12.13:9999']
labels:
alias: 'relay2'
type: 'cardano-node'
- targets: ['123.123.12.14:9999']
labels:
alias: 'core'
type: 'cardano-node'
- job_name: 'node' # To scrape data from a node exporter to monitor the linux host metrics.
scrape_interval: 15s
static_configs:
- targets: ['123.123.12.12:9988']
labels:
alias: 'relay1'
type: 'host-system'
- targets: ['123.123.12.13:9988']
labels:
alias: 'relay2'
type: 'host-system'
- targets: ['123.123.12.14:9988']
labels:
alias: 'core'
type: 'host-system'
That’s the content of the config file you provide as --config.file
argument when running prometheus.