Skip to content

External DNS metric does not work on datadog #20909

@tehlers320

Description

@tehlers320

This https://github.com/DataDog/integrations-core/blob/7.68.0/external_dns/datadog_checks/external_dns/metrics.py#L9 is emitted as an epoch (gauge)

This is how everybody appears to use the metric

apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  name: external-dns-cloudflare
spec:
  groups:
    - name: external-dns-cloudflare.rules
      rules:
        - alert: ExternalDNSCloudflareStale
          expr: |
            time() - external_dns_controller_last_sync_timestamp_seconds{job="external-dns-cloudflare"} > 60
          for: 5m
          annotations:
            summary: >-
              ExternalDNS ({{ $labels.job }}) has not synced successfully in the last five minutes
          labels:
            severity: critical

however datadog is not capable of using time()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions