[pve-devel] [PATCH pve-manager] pvestatd: stream host pressure counters
Dietmar Maurer
dietmar at proxmox.com
Tue Oct 13 07:57:08 CEST 2020
I wonder if we want to store that information with RRD instead?
> On 10/06/2020 1:58 PM Alexandre Derumier <aderumier at odiso.com> wrote:
>
>
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
> PVE/Service/pvestatd.pm | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/PVE/Service/pvestatd.pm b/PVE/Service/pvestatd.pm
> index 5e533ca3..238c36ae 100755
> --- a/PVE/Service/pvestatd.pm
> +++ b/PVE/Service/pvestatd.pm
> @@ -161,12 +161,16 @@ sub update_node_status {
> );
> PVE::Cluster::broadcast_rrd("pve2-node/$nodename", $data);
>
> + my $pressure = PVE::ProcFSTools::read_pressure();
> + PVE::Cluster::broadcast_node_kv("pressure", encode_json($pressure));
> +
More information about the pve-devel
mailing list