Skip to content

Commit c8a6ee7

Browse files
committed
prometheus docs
1 parent 8867989 commit c8a6ee7

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: GH Pages Deploy (Docs, mdbook)
33

44
on:
55
push:
6-
branches:
7-
- main
6+
# branches:
7+
# - main
88

99
jobs:
1010
build-deploy:

book/src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- [Caching](framework/components/caching.md)
1818
- [Secrets]()
1919
- [Observability Stack](framework/observability/observability_stack.md)
20-
- [Metrics]()
20+
- [Metrics](framework/observability/metrics.md)
2121
- [Logs](framework/observability/logs.md)
2222
- [Profiling](framework/observability/profiling.md)
2323
- [Traces]()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Metrics
2+
3+
We use Prometheus to collect metrics of Chainlink nodes and other services.
4+
5+
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.
6+
7+
Queries:
8+
- All metrics of all containers
9+
```json
10+
{job="ctf"}
11+
```

framework/cmd/observability/compose/conf/provisioning/datasources/loki.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ datasources:
88
url: http://loki:3100
99
jsonData:
1010
maxLines: 5000
11+
- name: Prometheus
12+
type: prometheus
13+
access: proxy
14+
url: http://prometheus:9090 # Replace with your Prometheus URL
15+
jsonData:
16+
timeInterval: 5s # Adjust this interval as needed

0 commit comments

Comments
 (0)