oetiker / rrdtool-1.x

RRDtool 1.x - Round Robin Database
http://www.rrdtool.org
GNU General Public License v2.0
987 stars 257 forks source link

MIME type for RRD files #1061

Open minfrin opened 4 years ago

minfrin commented 4 years ago

Ideally the RRD file format needs a dedicated registered MIME type for the data format.

Is it possible to register a MIME type at https://www.iana.org/assignments/media-types/media-types.xhtml#application ?

oetiker commented 4 years ago

I guess it would ... https://www.iana.org/form/media-types ... maybe

application/vnd.rrd

what is your intention with this ? Note that rrd files are architecture dependent.

minfrin commented 4 years ago

I have finished the initial version of an RRD module integrated into Apache httpd, and was hoping to do it as a set of filters responding to data from mime types that could have come from anywhere. Alas the rrdtool API is very file centric, so I've only been able to do this as handlers.

https://github.com/minfrin/mod_rrd

Certainly a module equivalent of rrdtool dump and rrdtool last could use a MIME type. Not sure how the architecture specific nature of the RRD files themselves would be expressed in a MIME type.

It would be ideal if the output of rrdtool dump had a MIME type of it's own.

oetiker commented 4 years ago

how about making one up then :) you could create a PR for the rrdtool documentation to document your choice in case others are interested too.