doublemarket / grafana-rrd-server

A HTTP server that helps Grafana read RRD files via Grafana Simple JSON Datasource plugin
MIT License
153 stars 38 forks source link

rrdcached #27

Open faxm0dem opened 7 years ago

faxm0dem commented 7 years ago

Is rrdcached supported?

doublemarket commented 7 years ago

@faxm0dem Hello 👋 No. In my understanding, rrdcached works when writing RRD data. grafana-rrd-server is a server that only reads RRD files and doesn't support writing.

faxm0dem commented 7 years ago

No, rrdcached can also be used for reading (to retrieve data that is not yet flushed to disk). I tried setting the RRDCACHED_ADDRESS environment variable, but it doesn't seem the library you're using is rrdcached aware (I might be wrong I didn't push my tests very far)

doublemarket commented 7 years ago

@faxm0dem Oh, I didn't know that but that makes sense. I'll keep this issue open and am going to investigate. Thank you!

s3rj1k commented 7 years ago

Hi, I am also interested in this feature

Poil commented 7 years ago

Hi,

You can send a FLUSH command with the full (or relative) PATH to the RRDCache Socket, before reading the RRD File.

Best regards,

sjosean commented 7 years ago

Hi, thanks for grafana-rrd-server!

Would it be possible to list the label of each rrd? For example in Icinga rrd the format listed is host:service:x, where x is the number of ds. It would be nice to show the label instead of the ds number.

Best regards

faxm0dem commented 7 years ago

@sjosean please open a new issue this has nothing to do with it