Skip to content

Commit a8253c2

Browse files
committed
docker: Add metrics
Add a local metrics service (via victoriametrics)
1 parent fe7dc50 commit a8253c2

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

docker/build-src/metrics/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM victoriametrics/victoria-metrics
2+
3+
COPY targets.yaml /targets.yaml
4+
5+
CMD ["-promscrape.config=/targets.yaml"]

docker/build-src/metrics/targets.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
global:
2+
scrape_interval: 15s
3+
4+
scrape_configs:
5+
- job_name: "keypers"
6+
static_configs:
7+
- targets:
8+
- "keyper-0:9100"
9+
- "keyper-1:9100"
10+
- "keyper-2:9100"
11+
- "keyper-3:9100"
12+
- job_name: "snollator"
13+
static_configs:
14+
- targets:
15+
- "snapshot:9100"

docker/config.example/node-deploy.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"decryptors": ["0x0000000000000000000000000000000000000000"],
1515
"collator": "0x2E135FE171fB6351026B75aF688a7F9689B66B87",
1616
"fundValue": "1000",
17-
"activationBlockOffset": "30"
17+
"activationBlockOffset": 30
1818
}

docker/docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,18 @@ services:
407407
- dev
408408
logging: *logging
409409

410+
metrics:
411+
build:
412+
context: build-src/metrics
413+
restart: always
414+
ports:
415+
- "8428:8428"
416+
volumes:
417+
- ./data/metrics:/victoria-metrics-data
418+
profiles:
419+
- dev
420+
logging: *logging
421+
410422
dockerize:
411423
image: jwilder/dockerize
412424
profiles:

0 commit comments

Comments
 (0)