Ce site contient essentiellement des notes de travail. Le contenu est en constante évolution, et loin d'être achevé. (+ d'infos)
La plupart des documentations informatiques sont orientées Debian / Ubuntu.

Informatique/Softwares/Proxmox/Serveurs de métriques : Différence entre versions

De Ordinoscope.net
Sauter à la navigation Sauter à la recherche
(Influxdb)
(Mesures)
 
(14 révisions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
= Introduction =
+
=Introduction=
 
Proxmox conserve des statistiques internes à chaque serveur, mais permet aussi de les envoyer à des serveurs tiers.
 
Proxmox conserve des statistiques internes à chaque serveur, mais permet aussi de les envoyer à des serveurs tiers.
  
= Influxdb =
+
=Influxdb=
 
Tout d'abord, créer la base « proxmox » sur le serveur influxdb.
 
Tout d'abord, créer la base « proxmox » sur le serveur influxdb.
  
Ligne 26 : Ligne 26 :
 
</div>
 
</div>
  
= Références =
+
=Mesures=
* https://pve.proxmox.com/wiki/External_Metric_Server
+
 +
{| class="wikitable td_mono"
 +
|+
 +
!
 +
!
 +
!format
 +
!métrique
 +
!type
 +
!valeur(s)
 +
|-
 +
| rowspan="9" |ballooninfo
 +
|actual
 +
|int
 +
|B
 +
|
 +
|the number of bytes the balloon currently contains <ref name=":0" />
 +
|-
 +
|free_mem
 +
|int
 +
|B
 +
|
 +
|amount of memory (in bytes) free in the guest <ref name=":0" />
 +
|-
 +
|last_update
 +
|int
 +
|
 +
|
 +
|time when stats got updated from guest <ref name=":0" />
 +
|-
 +
|major_page_faults
 +
|int
 +
|
 +
|
 +
|number of major page faults within the guest <ref name=":0" />
 +
|-
 +
|max_mem
 +
|int
 +
|B
 +
|
 +
|amount of memory (in bytes) assigned to the guest <ref name=":0" />
 +
|-
 +
|mem_swapped_in
 +
|int
 +
|
 +
|
 +
|number of pages swapped in within the guest <ref name=":0" />
 +
|-
 +
|mem_swapped_out
 +
|int
 +
|
 +
|
 +
|number of pages swapped out within the guest <ref name=":0" />
 +
|-
 +
|minor_page_faults
 +
|int
 +
|
 +
|
 +
|number of minor page faults within the guest <ref name=":0" />
 +
|-
 +
|total_mem
 +
|int
 +
|B
 +
|
 +
|amount of memory (in bytes) visible to the guest <ref name=":0" />
 +
|-
 +
| rowspan="37" |blockstat
 +
|bavail
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|bfree
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|blocks
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|failed_flush_operations
 +
|int
 +
|
 +
|compteur
 +
|The number of failed flush operations performed by the device (Since 2.5) <ref name=":0">man qemu-qmp-ref</ref>
 +
|-
 +
|failed_rd_operations
 +
|int
 +
|
 +
|compteur
 +
|The number of failed read operations performed by the device (Since 2.5) <ref name=":0" />
 +
|-
 +
|failed_wr_operations
 +
|int
 +
|
 +
|compteur
 +
|The number of failed write operations performed by the device (Since 2.5) <ref name=":0" />
 +
|-
 +
|favail
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|ffree
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|files
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|flush_operations
 +
|int
 +
|
 +
|compteur
 +
|The number of cache flush operations performed by the device (since 0.15.0). <ref name=":0" />
 +
|-
 +
|flush_total_time_ns
 +
|int
 +
|
 +
|compteur
 +
|Total time spend on cache flushes in nano-seconds (since 0.15.0). <ref name=":0" />
 +
|-
 +
|fper
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|fused
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|idle_time_ns
 +
|int
 +
|
 +
|compteur
 +
|Time since the last I/O operation, in nanoseconds. If the field is absent it means that there haven't been any operations yet (Since 2.5). <ref name=":0" />
 +
|-
 +
|invalid_flush_operations
 +
|int
 +
|
 +
|compteur
 +
|The number of invalid flush operations performed by the device (Since 2.5) <ref name=":0" />
 +
|-
 +
|invalid_rd_operations
 +
|int
 +
|
 +
|compteur
 +
|The number of invalid read operations performed by the device (Since 2.5) <ref name=":0" />
 +
|-
 +
|invalid_wd_operations
 +
|int
 +
|
 +
|compteur
 +
|The number of invalid write operations performed by the device (Since 2.5) <ref name=":0" />
 +
|-
 +
|per
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|rd_bytes
 +
|int
 +
|B
 +
|compteur
 +
|The number of bytes read by the device. <ref name=":0" />
 +
|-
 +
|rd_merged
 +
|int
 +
|
 +
|compteur
 +
|Number of read requests that have been merged into another request (Since 2.3). <ref name=":0" />
 +
|-
 +
|rd_operations
 +
|int
 +
|
 +
|compteur
 +
|The number of read operations performed by the device. <ref name=":0" />
 +
|-
 +
|rd_total_time_ns
 +
|int
 +
|ns
 +
|compteur
 +
|Total_time_spend on reads in nano-seconds (since 0.15.0). <ref name=":0" />
 +
|-
 +
|su_bavail
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|su_blocks
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|su_favail
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|used
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|user_bavail
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|user_blocks
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|user_favail
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|user_files
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|user_fused
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|user_used
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|wr_bytes
 +
|int
 +
|B
 +
|compteur
 +
|The number of bytes written by the device. <ref name=":0" />
 +
|-
 +
|wr_highest_offset
 +
|int
 +
|
 +
|compteur
 +
|The offset after the greatest byte written to the device. The intended use of this information is for growable sparse files (like qcow2) that are used on top of a physical device. <ref name=":0" />
 +
|-
 +
|wr_merged
 +
|int
 +
|
 +
|compteur
 +
|Number of write requests that have been merged into another request (Since 2.3). <ref name=":0" />
 +
|-
 +
|wr_operations
 +
|int
 +
|
 +
|compteur
 +
|The number of write operations performed by the device. <ref name=":0" />
 +
|-
 +
|wr_total_time_ns
 +
|int
 +
|ns
 +
|compteur
 +
|Total time spend on writes in nano-seconds (since 0.15.0). <ref name=":0" />
 +
|-
 +
| rowspan="14" |cpustat
 +
|avg1
 +
|
 +
|loadavg
 +
|
 +
|loadavg 1m de l'hôte
 +
|-
 +
|avg15
 +
|
 +
|loadavg
 +
|
 +
|loadavg 15m de l'hôte
 +
|-
 +
|avg5
 +
|
 +
|loadavg
 +
|
 +
|loadavg 5m de l'hôte
 +
|-
 +
|cpu
 +
|float
 +
|pct(0-1)
 +
|courant
 +
|load CPU de l'hôte (1 = tous les CPUs à 100%)
 +
|-
 +
|cpus
 +
|int
 +
|
 +
|courant
 +
|nombre de CPUs de l'hôte
 +
|-
 +
|ctime
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|idle
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|iowait
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|nice
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|sum
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|system
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|used
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|user
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|wait
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| rowspan="7" |memory
 +
|memfree
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|memshared
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|memtotal
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|memused
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|swapfree
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|swaptotal
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|swapused
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| rowspan="4" |nics
 +
|netin
 +
|
 +
|
 +
|compteur
 +
|
 +
|-
 +
|netout
 +
|
 +
|
 +
|compteur
 +
|
 +
|-
 +
|receive
 +
|
 +
|
 +
|compteur
 +
|
 +
|-
 +
|transmit
 +
|
 +
|
 +
|compteur
 +
|
 +
|-
 +
| rowspan="29" |system
 +
|active
 +
|bool
 +
|
 +
|courant
 +
|
 +
|-
 +
|avail
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|balloon
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|balloon_min
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|content
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|cpu
 +
|float
 +
|pct(0-1)
 +
|courant
 +
|load CPU de la VM (1 = tous les CPUs à 100%)
 +
|-
 +
|cpus
 +
|int
 +
|
 +
|courant
 +
|nombre de CPUs attribués à la VM
 +
|-
 +
|disk
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|diskread
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|diskwrite
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|enabled
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|freemem
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|lock
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|maxdisk
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|maxmem
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|maxswap
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|mem
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|name
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|netin
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|netout
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|pid
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|qmpstatus
 +
|str
 +
|
 +
|courant
 +
|
 +
*colo - guest is paused to save/restore VM state under colo checkpoint, VM can not get into this state unless colo capability is enabled for migration. (since 2.8)
 +
*debug - QEMU is running on a debugger
 +
*finish-migrate - guest is paused to finish the migration process
 +
*huest-panicked - guest has been panicked as a result of guest OS panic
 +
*inmigrate - guest is paused waiting for an incoming migration
 +
*internal-error - An internal error that prevents further guest execution has occurred
 +
*io-error - the last IOP has failed and the device is configured to pause on I/O errors
 +
*paused - guest has been paused via the 'stop' command
 +
*postmigrate - guest is paused following a successful 'migrate'
 +
*preconfig - QEMU is paused before board specific init callback is executed. The state is reachable only if the --preconfig CLI option is used. (Since 3.0)
 +
*prelaunch - QEMU was started with -S and guest has not started
 +
*restore-vm - guest is paused to restore VM state
 +
*running - guest is actively running
 +
*save-vm - guest is paused to save the VM state
 +
*shutdown - guest is shut down (and -no-shutdown is in use)
 +
*suspended - guest is suspended (ACPI S3)
 +
*watchdog - the watchdog action is configured to pause and has been triggered
 +
|-
 +
|serial
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|shared
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|status
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|swap
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|total
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|uptime
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
|used
 +
|
 +
|
 +
|
 +
|
 +
|}
 +
 
 +
=Références=
 +
 
 +
*https://pve.proxmox.com/wiki/External_Metric_Server
 +
<references />

Version actuelle datée du 9 septembre 2019 à 10:43

Introduction

Proxmox conserve des statistiques internes à chaque serveur, mais permet aussi de les envoyer à des serveurs tiers.

Influxdb

Tout d'abord, créer la base « proxmox » sur le serveur influxdb.

Configuration du serveur influxdb:

/etc/influxdb/influxdb.conf

[[udp]]
  enabled = true
  bind-address = "0.0.0.0:8089"
  database = "proxmox"
  batch-size = 1000
  batch-timeout = "1s"

Sur le serveur Proxmox:

/etc/pve/status.cnf

influxdb:
  server influxdb
  port 8089

Mesures

format métrique type valeur(s)
ballooninfo actual int B the number of bytes the balloon currently contains [1]
free_mem int B amount of memory (in bytes) free in the guest [1]
last_update int time when stats got updated from guest [1]
major_page_faults int number of major page faults within the guest [1]
max_mem int B amount of memory (in bytes) assigned to the guest [1]
mem_swapped_in int number of pages swapped in within the guest [1]
mem_swapped_out int number of pages swapped out within the guest [1]
minor_page_faults int number of minor page faults within the guest [1]
total_mem int B amount of memory (in bytes) visible to the guest [1]
blockstat bavail
bfree
blocks
failed_flush_operations int compteur The number of failed flush operations performed by the device (Since 2.5) [1]
failed_rd_operations int compteur The number of failed read operations performed by the device (Since 2.5) [1]
failed_wr_operations int compteur The number of failed write operations performed by the device (Since 2.5) [1]
favail
ffree
files
flush_operations int compteur The number of cache flush operations performed by the device (since 0.15.0). [1]
flush_total_time_ns int compteur Total time spend on cache flushes in nano-seconds (since 0.15.0). [1]
fper
fused
idle_time_ns int compteur Time since the last I/O operation, in nanoseconds. If the field is absent it means that there haven't been any operations yet (Since 2.5). [1]
invalid_flush_operations int compteur The number of invalid flush operations performed by the device (Since 2.5) [1]
invalid_rd_operations int compteur The number of invalid read operations performed by the device (Since 2.5) [1]
invalid_wd_operations int compteur The number of invalid write operations performed by the device (Since 2.5) [1]
per
rd_bytes int B compteur The number of bytes read by the device. [1]
rd_merged int compteur Number of read requests that have been merged into another request (Since 2.3). [1]
rd_operations int compteur The number of read operations performed by the device. [1]
rd_total_time_ns int ns compteur Total_time_spend on reads in nano-seconds (since 0.15.0). [1]
su_bavail
su_blocks
su_favail
used
user_bavail
user_blocks
user_favail
user_files
user_fused
user_used
wr_bytes int B compteur The number of bytes written by the device. [1]
wr_highest_offset int compteur The offset after the greatest byte written to the device. The intended use of this information is for growable sparse files (like qcow2) that are used on top of a physical device. [1]
wr_merged int compteur Number of write requests that have been merged into another request (Since 2.3). [1]
wr_operations int compteur The number of write operations performed by the device. [1]
wr_total_time_ns int ns compteur Total time spend on writes in nano-seconds (since 0.15.0). [1]
cpustat avg1 loadavg loadavg 1m de l'hôte
avg15 loadavg loadavg 15m de l'hôte
avg5 loadavg loadavg 5m de l'hôte
cpu float pct(0-1) courant load CPU de l'hôte (1 = tous les CPUs à 100%)
cpus int courant nombre de CPUs de l'hôte
ctime
idle
iowait
nice
sum
system
used
user
wait
memory memfree
memshared
memtotal
memused
swapfree
swaptotal
swapused
nics netin compteur
netout compteur
receive compteur
transmit compteur
system active bool courant
avail
balloon
balloon_min
content
cpu float pct(0-1) courant load CPU de la VM (1 = tous les CPUs à 100%)
cpus int courant nombre de CPUs attribués à la VM
disk
diskread
diskwrite
enabled
freemem
lock
maxdisk
maxmem
maxswap
mem
name
netin
netout
pid
qmpstatus str courant
  • colo - guest is paused to save/restore VM state under colo checkpoint, VM can not get into this state unless colo capability is enabled for migration. (since 2.8)
  • debug - QEMU is running on a debugger
  • finish-migrate - guest is paused to finish the migration process
  • huest-panicked - guest has been panicked as a result of guest OS panic
  • inmigrate - guest is paused waiting for an incoming migration
  • internal-error - An internal error that prevents further guest execution has occurred
  • io-error - the last IOP has failed and the device is configured to pause on I/O errors
  • paused - guest has been paused via the 'stop' command
  • postmigrate - guest is paused following a successful 'migrate'
  • preconfig - QEMU is paused before board specific init callback is executed. The state is reachable only if the --preconfig CLI option is used. (Since 3.0)
  • prelaunch - QEMU was started with -S and guest has not started
  • restore-vm - guest is paused to restore VM state
  • running - guest is actively running
  • save-vm - guest is paused to save the VM state
  • shutdown - guest is shut down (and -no-shutdown is in use)
  • suspended - guest is suspended (ACPI S3)
  • watchdog - the watchdog action is configured to pause and has been triggered
serial
shared
status
swap
total
uptime
used

Références