Skip to content

Instantly share code, notes, and snippets.

@hagen1778
Created August 8, 2020 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hagen1778/adaca488882a6c15f15d15c579238836 to your computer and use it in GitHub Desktop.
Save hagen1778/adaca488882a6c15f15d15c579238836 to your computer and use it in GitHub Desktop.
Migrating data from Prometheus to VM. Prometheus scrape config
global:
scrape_interval: 5s
rule_files:
- "rules.yml"
scrape_configs:
- job_name: 'node_exporter_1'
static_configs:
- targets: ['localhost:9100']
- job_name: 'node_exporter_2'
static_configs:
- targets: ['localhost:9100']
- job_name: 'node_exporter_3'
static_configs:
- targets: ['localhost:9100']
- job_name: 'node_exporter_4'
static_configs:
- targets: ['localhost:9100']
- job_name: 'node_exporter_5'
static_configs:
- targets: ['localhost:9100']
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'grafana'
static_configs:
- targets: ['localhost:3000']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment