Skip to content

Commit

Permalink
cadvisor (#1449)
Browse files Browse the repository at this point in the history
* cadvisor

* more docs
  • Loading branch information
skudasov authored Dec 9, 2024
1 parent aee82bd commit 5f9debf
Show file tree
Hide file tree
Showing 9 changed files with 895 additions and 4 deletions.
10 changes: 9 additions & 1 deletion book/src/framework/observability/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@

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

Check [Prometheus UI](http://localhost:9090/query).

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.

Queries:
- All metrics of all containers
```json
{job="ctf"}
```
```

## Docker Resources

We are using [cadvisor](https://github.com/google/cadvisor) to monitor resources of test [containers](http://localhost:3000/d/pMEd7m0Mz/cadvisor-exporter?orgId=1).

Cadvisor UI can be found [here](http://localhost:8085/containers/)
2 changes: 2 additions & 0 deletions framework/.changeset/v0.3.5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Add cadvisor support to "ctf obs up"
- Add cadvisor dashboard
5 changes: 5 additions & 0 deletions framework/cmd/observability/compose/conf/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ scrape_configs:
- source_labels: [ __meta_docker_port_private ]
regex: '6688'
action: keep
- job_name: cadvisor
scrape_interval: 10s
static_configs:
- targets:
- cadvisor:8080
Loading

0 comments on commit 5f9debf

Please sign in to comment.