Do someone managed to make it worked, the allocated-pods metric return me the following :
OK: All nodes status are ok
Node 'cpklp001.ad.curia.europa.eu' Status is 'Ready', New Pods Schedulable : true - allocated-pods : skipped (no value(s))
i have the folowing command :
/usr/lib/centreon/plugins/centreon_prometheus_kubernetes_api.pl --plugin=cloud::prometheus::direct::kubernetes::plugin --mode=node-status --hostname=example --url-path='/api/v1' --port='443' --proto='https' --node='node=~".*"' --warning-status='' --critical-status='%\{status\} !~ /Ready/ || %\{schedulable\} =~ /false/' --warning-allocated-pods='' --critical-allocated-pods='' --units='' --verbose