Proxmox Metric

foxpalace

Well-Known Member
Sep 9, 2016
78
2
48
www.linuxfox.de
Hallo an alle,
ich habe mir mal die Doku zu Proxmox Metric angeschaut und dann für influxdb eingerichtet. Ist ja alles schön und gut, aber kann man dort auch irgendwie angeben, was an die influxdb übermittelt wird?
Die Doku ist da nicht hilfreich https://pve.proxmox.com/wiki/External_Metric_Server - sieht so aus, als ob das ein hard gecodeter Stack ist. Ich hätte z. B. noch gerne die IP der Node, usw. usw. usw.
Grüße
Michael
 
login into influxdb

Code:
> SHOW MEASUREMENTS
name: measurements
name
----
ballooninfo
blockstat
cpustat
memory
nics
system
>
> SHOW FIELD KEYS
name: ballooninfo
fieldKey          fieldType
--------          ---------
actual            float
free_mem          float
last_update       float
major_page_faults float
max_mem           float
mem_swapped_in    float
mem_swapped_out   float
minor_page_faults float
total_mem         float

name: blockstat
fieldKey                 fieldType
--------                 ---------
bavail                   float
bfree                    float
blocks                   float
failed_flush_operations  float
failed_rd_operations     float
failed_wr_operations     float
favail                   float
ffree                    float
files                    float
flush_operations         float
flush_total_time_ns      float
fper                     float
fused                    float
idle_time_ns             float
invalid_flush_operations float
invalid_rd_operations    float
invalid_wr_operations    float
per                      float
rd_bytes                 float
rd_merged                float
rd_operations            float
rd_total_time_ns         float
su_bavail                float
su_blocks                float
su_favail                float
su_files                 float
used                     float
user_bavail              float
user_blocks              float
user_favail              float
user_files               float
user_fused               float
user_used                float
wr_bytes                 float
wr_highest_offset        float
wr_merged                float
wr_operations            float
wr_total_time_ns         float

name: cpustat
fieldKey fieldType
-------- ---------
avg1     float
avg15    float
avg5     float
cpu      float
cpus     float
ctime    float
idle     float
iowait   float
nice     float
sum      float
system   float
used     float
user     float
wait     float
wait     string

name: memory
fieldKey  fieldType
--------  ---------
memfree   float
memshared float
memtotal  float
memused   float
swapfree  float
swaptotal float
swapused  float

name: nics
fieldKey fieldType
-------- ---------
netin    float
netout   float
receive  float
transmit float

name: system
fieldKey  fieldType
--------  ---------
active    float
avail     float
balloon   float
content   string
cpu       float
cpus      float
disk      float
diskread  float
diskwrite float
enabled   float
freemem   float
lock      string
maxdisk   float
maxmem    float
maxswap   float
mem       float
name      string
netin     float
netout    float
pid       float
qmpstatus string
shared    float
status    string
swap      float
template  float
total     float
type      string
uptime    float
used      float
vmid      float
>
> SHOW series
[omit ...]
 
was an die externen server geschickt wird ist im moment nicht konfigurierbar
 
dass er mir auch die IP des KVM-Server dort eintragen soll?

Mal abgesehen, dass ich keinen Server kenne, der nur eine IP hat ist alles - wie in PVE üblich - über die vmid eindeutig zu identifizieren, d.h. du bräuchtest eine externe Datenquelle, mit der du das ggf. korrelieren kannst um da die IP oder Hostnamen herauszubekommen, wenn du QEMU basierte VMs hast.
 
Hi, so ganz verstehe ich deine Antwort nicht. Ich habe mal einige Cluster so eingerichtet, dass Sie mir alles an die DB weiterleiten. Dummerweise, ist es so, dass sich der Name pve01,pve02, pve03 usw. eingebürgert hat. Also kommt da ein Cluster aus dem Subnetz 1 mit Name pve01 daher, im Subnetz 12327 (extra übertrieben) heisst er auch pve01, .... - in Grafana sehe ich also nur pve01, ... mehrmals. Die loggen ja alle nur auf ein Grafana
 
Hi, so ganz verstehe ich deine Antwort nicht. Ich habe mal einige Cluster so eingerichtet, dass Sie mir alles an die DB weiterleiten. Dummerweise, ist es so, dass sich der Name pve01,pve02, pve03 usw. eingebürgert hat. Also kommt da ein Cluster aus dem Subnetz 1 mit Name pve01 daher, im Subnetz 12327 (extra übertrieben) heisst er auch pve01, .... - in Grafana sehe ich also nur pve01, ... mehrmals. Die loggen ja alle nur auf ein Grafana

Ah du meinst mehrere Cluster, ich dachte an mehrere VMs. Um das wohl am besten zu Trennen solltest du in mehrere InfluxDBs schreiben, eine pro Cluster. Grafana ist egal woher die Daten kommen, dort kannst du dann die mehreren InfluxDBs entsprechend mit Clusternamen einbinden und kannst diese trennen.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!