testing process exporter

testing-process-exporter
lza_menace 4 years ago
parent 34100f2ade
commit fbc3d7e832

@ -29,18 +29,18 @@ services:
GF_SERVER_ROOT_URL: ${GRAFANA_URL} GF_SERVER_ROOT_URL: ${GRAFANA_URL}
GF_ANALYTICS_REPORTING_ENABLED: "false" GF_ANALYTICS_REPORTING_ENABLED: "false"
GF_ANALYTICS_CHECK_FOR_UPDATES: "false" GF_ANALYTICS_CHECK_FOR_UPDATES: "false"
GF_USERS_ALLOW_SIGN_UP: "false" # GF_USERS_ALLOW_SIGN_UP: "false"
GF_USERS_ALLOW_ORG_CREATE: "false" # GF_USERS_ALLOW_ORG_CREATE: "false"
GF_AUTH_ANONYMOUS_ENABLED: "true" # GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_BASIC_ENABLED: "false" # GF_AUTH_BASIC_ENABLED: "false"
GF_AUTH_DISABLE_LOGIN_FORM: "true" # GF_AUTH_DISABLE_LOGIN_FORM: "true"
volumes: volumes:
- ./files/grafana/dashboards.yaml:/etc/grafana/provisioning/dashboards/default.yaml:ro - ./files/grafana/dashboards.yaml:/etc/grafana/provisioning/dashboards/default.yaml:ro
- ./files/grafana/prometheus.yaml:/etc/grafana/provisioning/datasources/prometheus.yaml:ro - ./files/grafana/prometheus.yaml:/etc/grafana/provisioning/datasources/prometheus.yaml:ro
- ./files/grafana/daemon_metrics.json:/var/lib/grafana/dashboards/daemon_metrics.json:ro - ./files/grafana/daemon_metrics.json:/var/lib/grafana/dashboards/daemon_metrics.json:ro
- grafana:/var/lib/grafana - grafana:/var/lib/grafana
exporter: monero-exporter:
container_name: exporter container_name: monero-exporter
build: build:
context: dockerfiles context: dockerfiles
dockerfile: monerod_exporter dockerfile: monerod_exporter
@ -50,6 +50,19 @@ services:
PORT: 8080 PORT: 8080
ports: ports:
- 127.0.0.1:8080:8080 - 127.0.0.1:8080:8080
process-exporter:
container_name: process-exporter
image: ncabatoff/process-exporter:0.7.5
restart: unless-stopped
volumes:
- /proc:/host/proc
- ./files/prometheus/process-exporter:/config/process-exporter:ro
privileged: true
ports:
- 127.0.0.1:9256:9256
command:
process-exporter -procfs /host/proc -config.path /config/process-exporter
monerod: monerod:
container_name: monerod container_name: monerod
build: build:

@ -1,9 +1,17 @@
apiVersion: 1 apiVersion: 1
datasources: datasources:
- name: Prometheus - name: monero-exporter
type: prometheus type: prometheus
url: http://prometheus:9090 url: http://monero-exporter:9090
access: proxy access: proxy
isDefault: true isDefault: true
timeInterval: 10s timeInterval: 10s
datasources:
- name: process-exporter
type: prometheus
url: http://process-exporter:9256
access: proxy
isDefault: false
timeInterval: 10s

@ -0,0 +1,4 @@
process_names:
- name: "{{.Comm}}"
cmdline:
- '.+'

@ -1,14 +1,14 @@
global: global:
scrape_interval: 30s scrape_interval: 60s
evaluation_interval: 60s evaluation_interval: 120s
external_labels: external_labels:
monitor: monerod-exporter monitor: monero-exporter
scrape_configs: scrape_configs:
- job_name: "monerod-exporter" - job_name: "monero-exporter"
static_configs: static_configs:
- targets: ["exporter:8080"] - targets: ["monero-exporter:8080"]
alerting: alerting:
alertmanagers: alertmanagers:

Loading…
Cancel
Save