Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process Exporter added: provide num of processes with pattern 'chia p… #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
18 changes: 15 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '2'
version: '3'
services:
mtail:
build: mtail
Expand Down Expand Up @@ -31,21 +31,33 @@ services:
- ${HOME}/.chia/mainnet/config/ssl/full_node/private_full_node.key:/etc/chia.key
network_mode: host
prometheus:
build: prometheus
image: prom/prometheus:v2.27.0
volumes:
- prom_data:/prometheus
- ./prometheus/:/etc/prometheus/
network_mode: host
loki:
image: grafana/loki:2.0.0
command: -config.file=/etc/loki/local-config.yaml
network_mode: host
promtail:
build: promtail
image: grafana/promtail:2.0.0
volumes:
- ${HOME}/.chia/mainnet/log:/var/log/chia
- ${HOME}/.chia/mainnet/plotter:/var/log/plotter
- ./promtrail/:/etc/promtail/
command: -config.file=/etc/promtail/config.yml
network_mode: host
process_exporter:
image: ncabatoff/process-exporter:latest
command:
- '-procfs=/host/proc'
- '-config.path=/config/config.yaml'
- "-web.listen-address=:9257"
volumes:
- /proc:/host/proc
- ./process-exporter:/config
network_mode: host
grafana:
build: grafana
network_mode: host
Expand Down
7 changes: 7 additions & 0 deletions process-exporter/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
process_names:
#@see https://github.com/ncabatoff/process-exporter for documentation
- comm:
- chia
cmdline:
- plots create

2 changes: 0 additions & 2 deletions prometheus/Dockerfile

This file was deleted.

3 changes: 3 additions & 0 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ scrape_configs:
- job_name: 'chia'
static_configs:
- targets: ['localhost:9133']
- job_name: 'processes'
static_configs:
- targets: ['localhost:9257']
2 changes: 0 additions & 2 deletions promtail/Dockerfile

This file was deleted.