Skip to content

Commit 7c67da6

Browse files
authored
Merge branch 'main' into tt-1725-improve-go-doc-pipeline
2 parents b45b560 + 43b2b05 commit 7c67da6

File tree

10 files changed

+897
-4
lines changed

10 files changed

+897
-4
lines changed

book/src/framework/observability/metrics.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@
22

33
We use Prometheus to collect metrics of Chainlink nodes and other services.
44

5+
Check [Prometheus UI](http://localhost:9090/query).
6+
57
Check [Grafana](http://localhost:3000/explore?panes=%7B%22gGs%22:%7B%22datasource%22:%22PBFA97CFB590B2093%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22expr%22:%22%7Bjob%3D%5C%22ctf%5C%22%7D%22,%22range%22:true,%22instant%22:true,%22datasource%22:%7B%22type%22:%22prometheus%22,%22uid%22:%22PBFA97CFB590B2093%22%7D,%22editorMode%22:%22code%22,%22legendFormat%22:%22__auto%22%7D%5D,%22range%22:%7B%22from%22:%22now-5m%22,%22to%22:%22now%22%7D%7D%7D&schemaVersion=1&orgId=1) example query.
68

79
Queries:
810
- All metrics of all containers
911
```json
1012
{job="ctf"}
11-
```
13+
```
14+
15+
## Docker Resources
16+
17+
We are using [cadvisor](https://github.com/google/cadvisor) to monitor resources of test [containers](http://localhost:3000/d/pMEd7m0Mz/cadvisor-exporter?orgId=1).
18+
19+
Cadvisor UI can be found [here](http://localhost:8085/containers/)

framework/.changeset/v0.3.5.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Add cadvisor support to "ctf obs up"
2+
- Add cadvisor dashboard

framework/.changeset/v0.3.6.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Add cadvisor support to obs stack
2+
- Add cadvisor dashboard

framework/cmd/observability/compose/conf/prometheus.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ scrape_configs:
1111
- source_labels: [ __meta_docker_port_private ]
1212
regex: '6688'
1313
action: keep
14+
- job_name: cadvisor
15+
scrape_interval: 10s
16+
static_configs:
17+
- targets:
18+
- cadvisor:8080

0 commit comments

Comments
 (0)