Files
librenms-librenms/includes/html/graphs/application/docker_cpu_usage.inc.php
Alban Browaeys a6bc7490e2 Fix app docker (#14080)
* docker app: polling - RRD dataset and fields value mismatch

RRD dataset definitions and fields array keys passed to data_update
have to be in the same order. There is no match based on key before
building the rrdtool update command.

Fixes mem_perc ending as NaN because it ended with a value above 100
as it was given mem_limit bytes value.

* docker app - remove misleading divider

The mem_perc and cpu_usage are already in percent, no need to divide
them by a hundred. The values were then made into milli percent or micro
percent.
2022-07-15 09:12:20 -05:00

7 lines
88 B
PHP

<?php
$unit_text = 'CPU (%)';
$rrdVar = 'cpu_usage';
require 'docker-common.inc.php';