I wonder if we want to store that information with RRD instead?

> On 10/06/2020 1:58 PM Alexandre Derumier <aderum...@odiso.com> wrote:
> 
>  
> Signed-off-by: Alexandre Derumier <aderum...@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));
> +


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to