Configurations
Use the following configuration options to customize the agent.Include & Exclude Options:
Atatus supports the following environment variables for logging and metric inclusion or exclusion based on container and image names. Let’s proceed with configuring them as environment variables. Use theimage flag for specifying the image name and the name flag for the container name.
Examples:
-
To monitor containers with the name
api-serverandfrontend-server: -
To exclude containers with the name
nginxandauth-service: -
To exclude containers with their image names
apacheandmysql: -
To include logs and metrics for containers by their name or image:
-
To exclude logs and metrics for containers by their name or image:
Setting Up with Docker Compose/Docker Swarm:
Add a service namedatatus-infra-agent using the docker image atatus-infra-agent:4.3.0 with the following environment variables:
Running with Docker Command:
Run this container in the background with detached Mode-d: