grafana: smooth power draw
All checks were successful
Build and Deploy / deploy (push) Successful in 2m29s

This commit is contained in:
2026-03-31 13:20:07 -04:00
parent ebc4c66fc3
commit 0027489052

View File

@@ -74,6 +74,12 @@ let
legendFormat = "Power (W)";
refId = "A";
}
{
datasource = promDs;
expr = "avg_over_time((apcupsd_ups_load_percent / 100 * apcupsd_nominal_power_watts)[1h:])";
legendFormat = "1h average (W)";
refId = "B";
}
];
fieldConfig = {
defaults = {
@@ -85,7 +91,50 @@ let
spanNulls = true;
};
};
overrides = [ ];
overrides = [
{
matcher = {
id = "byFrameRefID";
options = "A";
};
properties = [
{
id = "custom.lineStyle";
value = {
fill = "dot";
};
}
{
id = "custom.fillOpacity";
value = 10;
}
{
id = "custom.lineWidth";
value = 1;
}
{
id = "custom.pointSize";
value = 1;
}
];
}
{
matcher = {
id = "byFrameRefID";
options = "B";
};
properties = [
{
id = "custom.lineWidth";
value = 4;
}
{
id = "custom.fillOpacity";
value = 0;
}
];
}
];
};
}
{