Added config files needed for installation instructions
This commit is contained in:
parent
4b7aaa2586
commit
ea29ae2cda
File diff suppressed because it is too large
Load Diff
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue