Port Availability Monitoring Extension for Dynatrace

AppEngine configuration

Overview

The Port Availability Extension is a lightweight Dynatrace extension that checks TCP port availability (host:port) at configurable intervals and reports metrics to Dynatrace. Use it to track endpoint reachability and trigger alerts when services become unavailable.

Why Use This Extension?

Waiting for users to report that a service is down is costly. This extension helps you detect and respond to port-level outages proactively — whether they’re firewall changes, process crashes, network routing issues, or misconfigurations. By sending metrics into Dynatrace you can:

  • Create alerts that notify respective teams when critical ports fail
  • Visualize long-term availability trends
  • Correlate port availability with application performance and problems in Dynatrace

Use Cases

  • Checking database/listener ports for application connectivity.
  • Verifying 3rd-party service reachability used by your application.
  • Ensuring load balancer targets are reachable on expected ports.

Requirements & Notes

  • Dynatrace environment (Classic or AppEngine) with appropriate permissions.
  • Network connectivity from the host running the extension to target endpoints.
  • Credential Vault entry.
  • Designed for lightweight CPU/memory usage — suitable for modest monitoring workloads.

Key Features

TCP Port Monitoring
Continuously checks specified host:port endpoints for connectivity.
Configurable Intervals
Define frequency and timeout values per endpoint for flexible monitoring.
Dynatrace Metrics Reporting
Pushes availability metrics to Dynatrace for dashboards and alerting.
Graceful Shutdown
Thread-safe checks and orderly shutdown to prevent resource leaks.
Scalable & Lightweight
Designed to handle up to 200 endpoints on a 4-core, 8 GB server.
Classic & AppEngine Support
Works with both Dynatrace Classic extensions and AppEngine-based extensions.
Remote & Local extension
Can be deployed as Remote & Local extension in Activegate and Oneagent

How to Add the Extension to Your Dynatrace Environment

  1. Go to the Extension-Github repository
    Download the extension from the repository.
    Certificates folder showing ca.pem
  2. Download the Root Certificate
    Go to your certificates folder and download ca.pem. This certificate is required so the extension can securely communicate with Dynatrace.
    Certificates folder showing ca.pem
  3. Open Dynatrace → Credential Vault
    Store the necessary ca.pem in Dynatrace's Credential Vault so the extension can authenticate securely.
    Dynatrace Credential Vault
  4. Navigate to Extensions
    Classic: Upload the extension in the Classic Extensions area.
    Classic extension page AppEngine: Deploy it within AppEngine Extension if you're using the AppEngine. AppEngine extension page
  5. Configure the Extension
    Add endpoint entries (host and port), set check intervals and timeouts.
    Classic: Classic extension configuration AppEngine:AppEngine configuration
  6. Verify Extension Data
    Check your Dynatrace Data explorer or custom dashboard to confirm that availability metrics are being received and graphed correctly.
    Verify Dynatrace extension data in dashboards