Skip to content

Instantly share code, notes, and snippets.

@dasl-
Created July 7, 2024 21:41
Show Gist options
  • Select an option

  • Save dasl-/eb28a9f692fdc76dc2c8033b40557616 to your computer and use it in GitHub Desktop.

Select an option

Save dasl-/eb28a9f692fdc76dc2c8033b40557616 to your computer and use it in GitHub Desktop.
# my global config
global:
scrape_interval: 10s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 10s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: "node"
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: [
"study:9100",
"study:9101",
"pifi:9100",
"kitchen:9100",
"scaredycat:9100",
"bedroom:9100",
"piwall:9100",
"piwall1:9100",
"piwall2:9100",
"piwall3:9100",
"piwall4:9100",
"piwall5:9100",
"piwall6:9100",
"piwall7:9100",
"piwall8:9100",
"piwall9:9100",
"piwall10:9100",
]
# Remove the port number suffix from the instance labels
relabel_configs:
- source_labels: [__address__]
regex: "([^:]+):\\d+"
target_label: instance
storage:
tsdb:
out_of_order_time_window: 1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment