1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-03-23 11:04:49 +00:00

Added V2 from scratch

This commit is contained in:
retspen 2018-09-23 13:17:48 +03:00
parent 5c2232f4e8
commit 6c2925a35d
478 changed files with 21437 additions and 134206 deletions

View file

@ -0,0 +1,12 @@
[Unit]
Description=LibVirt Exporter for VM metrics
Documentation=https://github.com/retspen/libvirt_exporter
After=network-online.target
[Service]
Restart=always
WorkingDirectory=/opt/libvirt_exporter-0.1.0.linux-amd64/
ExecStart=/opt/libvirt_exporter-0.1.0.linux-amd64/libvirt_exporter --web.listen-address=localhost:9177
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,12 @@
[Unit]
Description=Prometheus Server 2.3.2
Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target
[Service]
Restart=always
WorkingDirectory=/opt/prometheus-2.3.2.linux-amd64/
ExecStart=/opt/prometheus-2.3.2.linux-amd64/prometheus
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,25 @@
# my global config
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).
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
# 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: 'libvirt'
static_configs:
- targets: ['localhost:9177']