How to Ignore a Service

After the auto-discovery, for each monitored services a status will be checked every minute and metrics will be gathered. In some case you may want to disable one or both of those feature.

If you want to disable discovery for a Dockerized service, you can use the container label bleemeo.enable=false to completely ignore this container. For other use-case see below.

Don’t Gather Metrics

You may not want to gather metrics for some services, for example an Apache server if the status page is not configured.

To disable metrics gathering, add to your configuration file (/etc/bleemeo/agent.conf.d/50-service-ignore.conf):

service_ignore_metrics:
    - name: mysql
    - name: postgres
      instance: "host:* container:*"
    - name: apache
      instance: "container:*integration*"
    - name: nginx
      instance: "container:*"
    - name: redis
      instance: "host:*"

The above configuration will disable metrics gathering for:

  • All MySQL services (running in a container or not).
  • All PostgreSQL sevices (running in a container or not). It’s the explicit version of the MySQL rule.
  • Any Apache service running in a container whose name contains integration. Apache running on the host (i.e. outside any container) will still be monitored.
  • Redis running on the host (i.e. oustide any container). Redis running on any container will still be monitored.

Note: Bleemeo agent will still check for the service status. To also disable the status metric see below.

Don’t Check Service Status

If you don’t want to monitor the status of a service, it’s also possible to disable check for a service.

To disable the status check, add to your configuration file (/etc/bleemeo/agent.conf.d/50-service-ignore.conf):

service_ignore_check:
    - name: mysql
    - name: postgres
      instance: "host:* container:*"
    - name: apache
      instance: "container:*integration*"
    - name: nginx
      instance: "container:*"
    - name: redis
      instance: "host:*"

The above configuration will disable metrics gathering for:

  • All MySQL services (running in a container or not).
  • All PostgreSQL sevices (running in a container or not). It’s the explicit version of the MySQL rule.
  • Any Apache service running in a container whose name contains integration. Apache running on the host (i.e. outside any container) will still be monitored.
  • Redis running on the host (i.e. oustide any container). Redis running on any container will still be monitored.

Note: Bleemeo agent will still gather other metrics. To also disable them, see above.