Alerting
Questions about alerting and problem detection in Dynatrace.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace Gen3 - No Alert When PostgreSQL Docker Container Goes Down

Selvam
Visitor

Hi Team,

I have a simple lab application built on:

  1. Node.js application
  2. PostgreSQL backend 

The PostgreSQL database is running as a Docker container service.

Environment details:

  1. Dynatrace OneAgent version: 1.337
  2. Full-stack monitoring enabled
  3. Container was restarted after OneAgent installation
  4. Using Dynatrace Gen3

Observation:

Dynatrace is able to monitor the container metrics successfully
CPU usage
Memory usage
Container metrics
When I manually stop the PostgreSQL container, I can see the CPU/Memory metrics dropping to zero
However:

Dynatrace is not generating any Problem or Alert when the container goes down
Nothing appears under Problems/Alerts
I also tried:

Process Availability policy
Matching process using:
Executable
Command line
$contains(postgres)
But still no alert is generated when the container stops.

My expectation:

I would like to generate an alert/problem whenever the PostgreSQL container service becomes unavailable/down.
Questions:

  1. Does Dynatrace Gen3 require additional configuration for container process availability alerts?
  2. Is Process Availability policy the correct approach for Docker containers?
  3. Should this be configured through:
    Process monitoring rules
    Kubernetes/container workload alerts
    Custom metric events
    Service availability monitoring
    Is there any limitation with standalone Docker containers in Gen3?
    Any guidance or best practice would be appreciated.

 

Thanks,
selvam

1 REPLY 1

Julius_Loman
DynaMight Legend
DynaMight Legend

For Kubernetes workloads, you probably want to alert on your Kubernetes data, in this case on Workload and setup the workload alerts for refine them.
For standalone containers (docker/podman), I'd recommend using process availability rules  (Not sure why this is in classic section in the docs, it is available in Gen3).

Dynatrace Ambassador | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts