This commit is contained in:
Girish Ramakrishnan
2022-11-24 01:21:32 +01:00
parent 9477e0bbb5
commit 38312b810a
+1
View File
@@ -35,6 +35,7 @@ async function getContainerStats(name, fromMinutes, noNullPoints) {
const timeBucketSize = fromMinutes > (24 * 60) ? (6*60) : 5;
const graphiteUrl = await getGraphiteUrl();
// https://collectd.org/wiki/index.php/Data_source . the gauge is point in time value. counter is the change of value
const targets = [
`summarize(collectd.localhost.docker-stats-${name}.gauge-cpu-perc, "${timeBucketSize}min", "avg")`,
`summarize(collectd.localhost.docker-stats-${name}.gauge-mem-used, "${timeBucketSize}min", "avg")`,