-
Notifications
You must be signed in to change notification settings - Fork 12
Graphite api
Przemysław Świderski edited this page May 8, 2016
·
1 revision
To install graphite-api follow steps described on this: site
after graphite-api installation change configuration file /etc/graphite-api.yaml
to:
search_index: /var/lib/graphite/index
finders:
- graphite_api.finders.whisper.WhisperFinder
functions:
- graphite_api.functions.SeriesFunctions
- graphite_api.functions.PieFunctions
whisper:
directories:
- /var/lib/graphite/whisper
time_zone: Europe/Warsaw
restart httpd:
systemctl restart httpd
now it is possible to use http-api to query metrics or render graphs in many possible formats. To render example metric you can use one of the following links:
- http://127.0.0.1:8013/render?target=calamari.cthulhu.ru*&height=800&width=600&from=-20minutes
- http://127.0.0.1:8013/render?target=calamari.cthulhu.ru*&from=-30minutes&format=json
- http://127.0.0.1:8013/render?target=servers.localhost_localdomain.cpu.*.*&from=-2hours&format=svg&cacheTimeout=3600
- http://127.0.0.1:8013/render?target=servers.localhost_localdomain.cpu.*.*&from=-1hours&format=csv
- http://127.0.0.1:8013/render?target=servers.localhost_localdomain.cpu.cpu0.system&from=-30minutes&format=json