mirror of
https://github.com/gravitational/teleport
synced 2024-10-22 10:13:21 +00:00
.. | ||
convert.py | ||
docker-compose.yml | ||
env.influxdb | ||
gops.py | ||
grafana-import.sh | ||
health-dashboard.json | ||
README.md | ||
telegraf.conf | ||
teleport.service | ||
tick.service |
Metrics
Teleport exports Prometheus Metrics endpoints.
Start Teleport With Prometheus Endpoint
To start teleport with prometheus endpoint enabled:
teleport start --diag-addr=127.0.0.1:3434
To start monitoring stack, simply docker-compose up
Then go to http://localhost:3000
Username: admin
Password: admin
Grafana Dashboard
Modify and export grafana dashboard, then convert to the format that Grafana can auto import using this tool
python convert.py health-raw.json health-dashboard.json
Low level monitoring
Teleport adds gops
as a low level debugging solution:
teleport start --gops --gops-addr=127.0.0.1:4321
Then to use gops:
go get github.com/google/gops
gops stack $(pidof teleport
Diffing goroutine dumps
We have a tool to give you idea of the difference between two teleport stack dumps, so we can see what's the overhead and difference to detect leaks:
gops stack $(pidof teleport) | python gops.py collect > /tmp/a
# take a second diff
gops stack $(pidof teleport) | python gops.py collect > /tmp/b
# compare two diffs
python gops.py diff /tmp/a /tmp/b