Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Metrics only for full client
Browse files Browse the repository at this point in the history
  • Loading branch information
adria0 committed Jun 21, 2020
1 parent b1c0527 commit 3fdd742
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 17,594 deletions.
2 changes: 1 addition & 1 deletion parity/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ usage! {
["Metrics"]
FLAG flag_metrics: (bool) = false, or |c: &Config| c.metrics.as_ref()?.enable.clone(),
"--metrics",
"Enable prometheus metrics.",
"Enable prometheus metrics (only full client).",

ARG arg_metrics_port: (u16) = 3000u16, or |c: &Config| c.metrics.as_ref()?.port.clone(),
"--metrics-port=[PORT]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@
]
},
"timezone": "",
"title": "OpenEthereum_1",
"title": "OpenEthereum",
"uid": "fH2SyJiMz",
"version": 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ providers:
allowUiUpdates: false
options:
# <string, required> path to dashboard files on disk. Required when using the 'file' type
path: /etc/grafana
path: /etc/grafana/dashboards
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ scrape_configs:
- targets: ['localhost:9090']

- job_name: openethereum
scrape_interval: 10s
scrape_interval: 15s
metric_relabel_configs:
- source_labels: [__name__]
target_label: __name__
replacement: "oe_${1}"
static_configs:
- targets:
- localhost:8545
- openethereum:3000
Original file line number Diff line number Diff line change
@@ -1,25 +1,37 @@
version: '3.5'
services:

openethereum:
build:
dockerfile: scripts/docker/alpine/Dockerfile
context: ../..
ports:
- '30303:30303'
- '30303:30303/udp'
- '8545:8545'
links:
- prometheus

entrypoint: ["/home/openethereum/openethereum","--metrics","--metrics-interface=all"]

prometheus:
image: prom/prometheus
container_name: prometheus
restart: always
volumes:
- ../../grafana:/etc/grafana
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- '9090:9090'
network_mode: host

grafana:
image: grafana/grafana
container_name: grafana
container_name: grafana
restart: always
volumes:
- ./config/grafana:/etc/grafana
ports:
- '3000:3000'
depends_on:
- prometheus
environment:
- GF_SECURITY_ADMIN_PASSWORD:secret
network_mode: host
Loading

0 comments on commit 3fdd742

Please sign in to comment.