Skip to content

Instantly share code, notes, and snippets.

@f4rx
Created November 14, 2019 09:41
Show Gist options
  • Select an option

  • Save f4rx/d1372ae270dc4803be0dbc2e675770f6 to your computer and use it in GitHub Desktop.

Select an option

Save f4rx/d1372ae270dc4803be0dbc2e675770f6 to your computer and use it in GitHub Desktop.
Prometheus sd openstack
global:
scrape_interval: 15s
evaluation_interval: 15s
alerting:
alertmanagers:
- static_configs:
- targets:
rule_files:
# - "first_rules.yml"
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'node-exporter'
openstack_sd_configs:
- role: instance
port: 9100
refresh_interval: 40s
identity_endpoint: https://api.selvpc.ru/identity/v3
domain_name: DOMAIN
region: REGION
username: USERNAME
password: PASSWORD
project_id: PROJECT_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment