Skip to main content
In Backlog

Monitor pv size for Kubernetes-api plugin

Related products:Infra Monitoring - Connectors
  • September 1, 2022
  • 3 replies
  • 66 views

Forum|alt.badge.img+1

Hello,

Kubernetes api plugin.
The plugin only reports the status and not the sizes of the PV.
Is it possible to upgrade the plugin to do this.

 

Regards,

3 replies

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • September 7, 2022
NewDiscussion ongoing

sims24
Forum|alt.badge.img+19
  • Ranger ***
  • October 3, 2022

Hi, 

 

This is already possible with the k8s/prometheus plugin: 

 

/usr/lib/centreon/plugins//centreon_prometheus_api.pl --plugin=cloud::prometheus::restapi::plugin --mode=expression --hostname=<PROMETHEUSAPIIP> --url-path='/api/v1' --port='80' --proto='http'  --query='used,(kubelet_volume_stats_used_bytes{namespace="a-namespace",persistentvolumeclaim="data-galaxion-prod-salt-redis-ha-server-0"} / kubelet_volume_stats_capacity_bytes{namespace="a-namespace",persistentvolumeclaim="data-pvc-name"}) * 100' --instance='persistentvolumeclaim' --output='data-pvc-name is used: %{used}%' --multiple-output='' --warning-status='%{used} > 80' --critical-status='%{used} > 90' --header='Host:fqdn.prod.lan'

But we add this idea to the backlog so we can make it easier to deploy.


Forum|alt.badge.img+5
  • Centreonian
  • October 3, 2022
Discussion ongoingIn Backlog