Graphite: Pokaż zmianę z poprzedniej wartości

Wysyłam Graphitowi czas spędzony w Garbage Collection(pobieranie tego z jvm przez jmx). Jest to licznik, który wzrasta. Czy ich sposób, aby Graphite graph zmienia się co minutę, więc mogę zobaczyć wykres, który pokazuje czas spędzony w GC na minutę?

 14
Author: Dave, 2012-08-17

1 answers

Powinieneś być w stanie przekształcić licznik w hit-rate za pomocą funkcji pochodnej, a następnie użyć funkcji podsumowania do licznika w przedziale czasowym, że po.

&target=summarize(derivative(java.gc_time), "1min") # time spent per minute

Pochodna (seria)

This is the opposite of the integral function. This is useful for taking a 
running totalmetric and showing how many requests per minute were handled.

&target=derivative(company.server.application01.ifconfig.TXPackets)

Przy każdym uruchomieniu ifconfig, RX i TXPackets są wyższe (zakładając, że istnieje ruch sieciowy.) Stosując funkcję pochodną, możesz uzyskać wyobrażenie o pakietach na minutę wysłanych lub odebranych, nawet jeśli nagrywasz tylko razem.

Summarize (seriesList, intervalString, func='sum', alignToFrom=False)

Summarize the data into interval buckets of a certain size.
By default, the contents of each interval bucket are summed together. 
This is useful for counters where each increment represents a discrete event and
retrieving a “per X” value requires summing all the events in that interval.

Źródło: http://graphite.readthedocs.org/en/0.9.10/functions.html

 19
Author: dannyla,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2012-09-08 14:35:49