Skip to main content
Released

cloud::prometheus::exporters::cadvisor::plugin > Add Filter on Namespace

Related products:Infra Monitoring - Monitoring
  • Sep 2, 2026 12:03 PM UTC
  • 3 replies
  • 17 views

Forum|alt.badge.img+9

Hi,

Could you add a filter for namespace for plugin cloud::prometheus::exporters::cadvisor::plugin ?

The name of namespace is on the output when we list-containers, so it will be easy to add the filter :)

 

 /usr/lib/centreon/plugins//centreon_prometheus_cadvisor_api.pl --plugin=cloud::prometheus::exporters::cadvisor::plugin 
 --mode=cpu --hostname=*** --url-path='/api/v1' --port='80' --proto='http' --credentials --username=*** --password=*** 
 --container='container=~"moncontainer"' --pod='pod=~".*"'  --verbose --mode=list-containers
 
[container_name = moncontainer][pod_name = monpod-55d94dc4cc-rtmxg][namespace = MONNAMESPACE]

Thanks a lot
 

3 replies

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • Oct 2, 2026 12:14 PM UTC
Updated idea statusNew→Needs Votes

ltirand
Centreonian
Forum|alt.badge.img+13
  • Centreonian
  • Nov 17, 2026 1:47 PM UTC

Hello ​@romsworld 

Good news: this is now available since the October 2026 monitoring connectors release!

 
All modes of the cloud::prometheus::exporters::cadvisor::plugin plugin now accept a --namespace option, which works like --container and --pod, for example: --namespace='namespace=~"MONNAMESPACE"'. This release also adds host discovery and templates for pods and containers.

Thank you for your suggestion! We're marking this idea as released.

Best regards.


Forum|alt.badge.img+5
  • Centreonian
  • Nov 17, 2026 1:47 PM UTC
Updated idea statusNeeds Votes→Released