We altered a home grown plugin that generates rrd graphed data. Some of the metrics are no longer generated by the new plugin, but the graphs remain. Is there an easy way to remove the old graphs, keep them from showing up? Like editing the .info file, for example? Is there a recommended procedure for this?
My experience said that there is no easy way. The problem is that you not only need to modify the .info file but also you need to alter the corresponding rrd file.
For the modification of the rrd file i don’t know a really easy option. The old rrd’s with one rrd for every metric are easy to change → delete all metric files older than some hours and that’s it.
Question add @moritz do you know someone from the Tribe team who can know if there is an easy way to remove unwanted metrics from the monolithic rrd’s?
As a worraround for removing the old data from the rrd you can try to set these metrics to auto_graph': False in the checks metrics definition. For example
Es gibt keinen “easy way”
mit rrdtune kann man Metriken aus dem RRD löschen, und dann kann man die aus der info Datei auch >löschen.
NatĂĽrlich muss der cmc & rrddaemon gestopt sein und alle caches geflushed, sonst has der rrd journal >eine Spalte zu viel und das gibt Probleme, (RRD & CMC haben kein error handling fĂĽr den Fall)
Anastasios kann dir auch erzählen, wie schmerzhaft das ist am RRD was zu ändern.
Not too hard way:
im web local check_metric ĂĽberschreiben
Wasn’t clear where this had to go. I mean, metric names could be “same” for different things across different hosts. Just doesn’t seem “right”?
At the end of the day, since I had to rewrite my plugin, I just nuked all the rrd stuff and regen’d it.
We didn’t lose too much historical stuff of any worth.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.