public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation
@ 2025-08-28 12:58 Aaron Lauterer
  2025-08-28 12:58 ` [pve-devel] [PATCH qemu-server v4 1/1] api: rrd: add missing ds parameter for png graph Aaron Lauterer
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Aaron Lauterer @ 2025-08-28 12:58 UTC (permalink / raw)
  To: pve-devel

This series fixes the RRD graph generation to PNGs for CTs and VMs.

qemu-server:

Aaron Lauterer (1):
  api: rrd: add missing ds parameter for png graph

 src/PVE/API2/Qemu.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


container:

Aaron Lauterer (1):
  api: rrd: add missing ds parameter for png graph

 src/PVE/API2/LXC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Summary over all repositories:
  2 files changed, 2 insertions(+), 2 deletions(-)

-- 
Generated by git-murpp 0.8.1


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [pve-devel] [PATCH qemu-server v4 1/1] api: rrd: add missing ds parameter for png graph
  2025-08-28 12:58 [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation Aaron Lauterer
@ 2025-08-28 12:58 ` Aaron Lauterer
  2025-08-28 12:58 ` [pve-devel] [PATCH container " Aaron Lauterer
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Aaron Lauterer @ 2025-08-28 12:58 UTC (permalink / raw)
  To: pve-devel

Otherwise, no png would be generated if that parameter is omitted

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
---
 src/PVE/API2/Qemu.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/API2/Qemu.pm b/src/PVE/API2/Qemu.pm
index b571e6c1..6069c3a9 100644
--- a/src/PVE/API2/Qemu.pm
+++ b/src/PVE/API2/Qemu.pm
@@ -1632,7 +1632,7 @@ __PACKAGE__->register_method({
 
         my $path = "pve-vm-9.0/$param->{vmid}";
         $path = "pve2-vm/$param->{vmid}" if !-e "/var/lib/rrdcached/db/${path}";
-        return PVE::RRD::create_rrd_graph($path, $param->{timeframe}, $param->{cf});
+        return PVE::RRD::create_rrd_graph($path, $param->{timeframe}, $param->{ds}, $param->{cf});
 
     },
 });
-- 
2.47.2



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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [pve-devel] [PATCH container v4 1/1] api: rrd: add missing ds parameter for png graph
  2025-08-28 12:58 [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation Aaron Lauterer
  2025-08-28 12:58 ` [pve-devel] [PATCH qemu-server v4 1/1] api: rrd: add missing ds parameter for png graph Aaron Lauterer
@ 2025-08-28 12:58 ` Aaron Lauterer
  2025-09-03 11:37 ` [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation Aaron Lauterer
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Aaron Lauterer @ 2025-08-28 12:58 UTC (permalink / raw)
  To: pve-devel

Otherwise, no png would be generated if that parameter is omitted

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
---
 src/PVE/API2/LXC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 17035f4..1f89c87 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -720,7 +720,7 @@ __PACKAGE__->register_method({
 
         my $path = "pve-vm-9.0/$param->{vmid}";
         $path = "pve2-vm/$param->{vmid}" if !-e "/var/lib/rrdcached/db/${path}";
-        return PVE::RRD::create_rrd_graph($path, $param->{timeframe}, $param->{cf});
+        return PVE::RRD::create_rrd_graph($path, $param->{timeframe}, $param->{ds}, $param->{cf});
 
     },
 });
-- 
2.47.2



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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation
  2025-08-28 12:58 [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation Aaron Lauterer
  2025-08-28 12:58 ` [pve-devel] [PATCH qemu-server v4 1/1] api: rrd: add missing ds parameter for png graph Aaron Lauterer
  2025-08-28 12:58 ` [pve-devel] [PATCH container " Aaron Lauterer
@ 2025-09-03 11:37 ` Aaron Lauterer
  2025-09-03 12:30 ` Michael Köppl
  2025-09-03 16:38 ` [pve-devel] applied-series: " Thomas Lamprecht
  4 siblings, 0 replies; 6+ messages in thread
From: Aaron Lauterer @ 2025-09-03 11:37 UTC (permalink / raw)
  To: pve-devel

ping

we got a few reports from people in the forum that run into the issue of 
not getting back graphs as pngs

On  2025-08-28  14:58, Aaron Lauterer wrote:
> This series fixes the RRD graph generation to PNGs for CTs and VMs.
> 
> qemu-server:
> 
> Aaron Lauterer (1):
>    api: rrd: add missing ds parameter for png graph
> 
>   src/PVE/API2/Qemu.pm | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 
> container:
> 
> Aaron Lauterer (1):
>    api: rrd: add missing ds parameter for png graph
> 
>   src/PVE/API2/LXC.pm | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 
> Summary over all repositories:
>    2 files changed, 2 insertions(+), 2 deletions(-)
> 



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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation
  2025-08-28 12:58 [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation Aaron Lauterer
                   ` (2 preceding siblings ...)
  2025-09-03 11:37 ` [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation Aaron Lauterer
@ 2025-09-03 12:30 ` Michael Köppl
  2025-09-03 16:38 ` [pve-devel] applied-series: " Thomas Lamprecht
  4 siblings, 0 replies; 6+ messages in thread
From: Michael Köppl @ 2025-09-03 12:30 UTC (permalink / raw)
  To: Proxmox VE development discussion; +Cc: pve-devel

Tested this by manually calling both API endpoints. With the patches
applied, the returned filename now contains the data sources provided in
the params and also returns data for the image again.

Tested-by: Michael Köppl <m.koeppl@proxmox.com>

On Thu Aug 28, 2025 at 2:58 PM CEST, Aaron Lauterer wrote:
> This series fixes the RRD graph generation to PNGs for CTs and VMs.
>
> qemu-server:
>
> Aaron Lauterer (1):
>   api: rrd: add missing ds parameter for png graph
>
>  src/PVE/API2/Qemu.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
>
> container:
>
> Aaron Lauterer (1):
>   api: rrd: add missing ds parameter for png graph
>
>  src/PVE/API2/LXC.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
>
> Summary over all repositories:
>   2 files changed, 2 insertions(+), 2 deletions(-)



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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [pve-devel] applied-series: [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation
  2025-08-28 12:58 [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation Aaron Lauterer
                   ` (3 preceding siblings ...)
  2025-09-03 12:30 ` Michael Köppl
@ 2025-09-03 16:38 ` Thomas Lamprecht
  4 siblings, 0 replies; 6+ messages in thread
From: Thomas Lamprecht @ 2025-09-03 16:38 UTC (permalink / raw)
  To: Proxmox VE development discussion, Aaron Lauterer

Am 28.08.25 um 14:58 schrieb Aaron Lauterer:
> This series fixes the RRD graph generation to PNGs for CTs and VMs.
> 
> qemu-server:
> 
> Aaron Lauterer (1):
>   api: rrd: add missing ds parameter for png graph
> 
>  src/PVE/API2/Qemu.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 
> container:
> 
> Aaron Lauterer (1):
>   api: rrd: add missing ds parameter for png graph
> 
>  src/PVE/API2/LXC.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 
> Summary over all repositories:
>   2 files changed, 2 insertions(+), 2 deletions(-)
> 


applied, thanks!


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-09-03 16:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-28 12:58 [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation Aaron Lauterer
2025-08-28 12:58 ` [pve-devel] [PATCH qemu-server v4 1/1] api: rrd: add missing ds parameter for png graph Aaron Lauterer
2025-08-28 12:58 ` [pve-devel] [PATCH container " Aaron Lauterer
2025-09-03 11:37 ` [pve-devel] [PATCH container/qemu-server v4 0/2] Fix RRD PNG Graph creation Aaron Lauterer
2025-09-03 12:30 ` Michael Köppl
2025-09-03 16:38 ` [pve-devel] applied-series: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal