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
Participant

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

3 REPLIES 3

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

it's standalone container (docker). i was trying to create the process availability rules. However, i was not able to save( there is no error).

please refer the attached screenshot in my question. will there any bug ? or am i missing something?

Selvam
Participant

Selvam_0-1781032113122.png

Selvam_1-1781032151812.png

Hi Team,

I’m trying to create a Process Availability alert in Dynatrace for a PostgreSQL Docker container.

Dynatrace is already detecting the process/container correctly, and I can see it in the Processes view. But when I stop the container, no alert/problem gets generated.

I also tried creating a Process Availability Monitoring rule, but either:

  • the rule is not getting saved, or
  • the alert is not triggering when the container goes down.

 

Featured Posts