Skip to content

kelixin/rtg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RTG is for Real-Time Graphs

It's a lightweight web service written in Go with API handler receiving data for 
graphs and another handler to view graphs with Highcharts.JS engine 
(See http://www.highcharts.com)

All the data received are kept in memory only, there is no persistent storage 
so the data will be lost when daemon is restarted. So the service is usable for 
realtime monitoring when the monitored data updates often (once per second 
for example) and expires fast (for example after 1 minute) to see the latest 
picture of the things that are happening just right now - current server 
loadaverage, current memory usage, current sockets usage, software thread pools 
state and so forth.

Handlers description:

UPDATE HANDLER:

POST/GET /api/update/<hostname>/<graphname>/
  field1=value1
  field2=value2

  OPTIONAL 
  _ts=<timestamp> - timestamp of data arrived
  _expire=<seconds> - data expiration time (this is graph-wide 
                      configuration, use this only once you want 
                      to change the value. default is 60 seconds)

VIEW HANDLER:

GET /graph/<hostname>/<graphname>/

About

Realtime Graphs Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.6%
  • Go 1.9%
  • HTML 0.5%