Open grctest opened 7 years ago
You can add dimensions any time, by sending the CHART/DIMENSION lines again to netdata. Actually, only the CHART and new DIMENSIONs are required, but it is ok to send the whole chart again.
Unfortunatelly, you cannot dynamically delete dimensions (yet).
Ok, so we could create two chart dimension files - current and proposed, if they are identical we just continue updating the stats, if the two files are different we call create_table again with the proposed file which will add the new version number to the chart.
Periodically we will need to reset netdata to clear out old versions (if we have many leisure updates in a row).
getpeerinfo -> subver --> There can be multiple subvers present!
Netdata requires that we define the chart and its dimensions, this appears to only run once within the current getpeerinfo.chart.sh file, so if new versions come online it wouldn't see it unless netdata was reset.
Perhaps it's possible to call create_chart when running the update_chart, but it's unlikely.
Will likely have to move towards a fixed quantity of subvers to display, this will work if we can have blank (yet declared) lines.
https://github.com/grctest/GRC-Netdata/tree/master/getpeerinfo