Added config files needed for installation instructions

This commit is contained in:
Kris-Sekula 2019-01-24 01:09:37 +01:00
parent 4b7aaa2586
commit ea29ae2cda
3 changed files with 1391 additions and 0 deletions

File diff suppressed because it is too large Load Diff

16
prometheus.service Normal file
View File

@ -0,0 +1,16 @@
[Unit]
Description=Prometheus
Wants=network-online.target
After=network-online.target
[Service]
User=prometheus
Group=prometheus
Type=simple
ExecStart=/usr/local/bin/prometheus \
--config.file /etc/prometheus/prometheus.yml \
--storage.tsdb.path /var/lib/prometheus \
--web.console.templates=/etc/prometheus/consoles \
--web.console.libraries=/etc/prometheus/console_libraries
[Install]
WantedBy=multi-user.target

14
prometheus.yml Normal file
View File

@ -0,0 +1,14 @@
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'prometheus'
scrape_interval: 5s
static_configs:
- targets: ['localhost:9090']
- job_name: 'hx_metrics'
scrape_interval: 1m
static_configs:
- targets: ['localhost:8082']
labels:
service_name: hx_read_write_stats