mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
4565bd43c1
* up devel * up devel * up devel * up devel * up devel * up devel * up devel * up devel * squash * squash * squash * squash * squash * squash * squash * squash * squash * squash * squash * squash * squash * switch to master * mdbx 0.9.2 * mdbx 0.9.2 * %<<$!%%%%%%<o'{}k.### * %<<$!%%%%%%<o'{}k.### * merge * merge * merge * merge * ad * ad * ad * ad |
||
---|---|---|
.. | ||
dashboards | ||
datasources | ||
.gitignore | ||
grafana.ini | ||
prometheus.yml | ||
Readme.md |
Run Grafana and Prometheus: docker-compose up prometheus grafana
Go to: localhost:3000, admin/admin
List of hosts and ports to collecting metrics is in: ./cmd/prometheus/prometheus.yml
Env variables:
XDG_DATA_HOME
re-defines default prometheus and grafana databases folder.TG_PROMETHEUS_CONFIG
path to customprometheus.yml
file. Default is:./cmd/prometheus/prometheus.yml
TG_GRAFANA_CONFIG
path to customgrafana.ini file
. Default is:./cmd/prometheus/grafana.ini
To add custom TG host: copy ./cmd/prometheus/prometheus.yml
, modify, pass new location by:
TG_PROMETHEUS_CONFIG=/new/location/prometheus.yml docker-compose up prometheus grafana
For developers
How to update dashboards
- Edit dashboard right in Grafana UI as you need. Save.
- Go to "Dashboard Settings" -> "JSON Model" -> Copy json representation of dashboard.
- Go to file
./cmd/prometheus/dashboards/turbo_geth.json
and past json there. - Commit and push. Done.
How to add new metrics
See example: ethdb/object_db.go:dbGetTimer
For gRPC metrics search in code: grpc_prometheus.Register