Skip to content

[coredns] [coredns] Add coredns_health_request_failures_total metric#23871

Draft
mahipdeora25 wants to merge 1 commit into
masterfrom
fbo/02eb2b01-coredns-add-coredns-health-request-failu
Draft

[coredns] [coredns] Add coredns_health_request_failures_total metric#23871
mahipdeora25 wants to merge 1 commit into
masterfrom
fbo/02eb2b01-coredns-add-coredns-health-request-failu

Conversation

@mahipdeora25
Copy link
Copy Markdown
Contributor

Generated by FBO — DRAFT for human review

Closes FRAGENT-3502

Reality-check reasoning

In metrics.py, the health plugin section under DEFAULT_METRICS only maps coredns_health_request_duration_secondshealth_request_duration. There is no entry for coredns_health_request_failures_total in either DEFAULT_METRICS or NEW_METRICS. The metadata.csv (119 metrics) similarly contains no health_request_failures metric — only health-related entries visible are for request duration. The requested metric is clearly absent from the current codebase and would need to be added to both metrics.py and metadata.csv.

This PR was opened as a Draft. A human should review the diff,
re-run validators if needed, and mark Ready for Review.

@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented May 28, 2026

Validation Report

Validation Description Status
qa-label Validate the pull request declares whether it needs QA for the next Agent release

Run ddev validate all changed --fix to attempt to auto-fix supported validations.

Passed validations (20)
Validation Description Status
agent-reqs Verify check versions match the Agent requirements file
ci Validate CI configuration and code coverage settings
codeowners Validate every integration has a CODEOWNERS entry
config Validate default configuration files against spec.yaml
dep Verify dependency pins are consistent and Agent-compatible
http Validate integrations use the HTTP wrapper correctly
imports Validate check imports do not use deprecated modules
integration-style Validate check code style conventions
jmx-metrics Validate JMX metrics definition files and config
labeler Validate PR labeler config matches integration directories
legacy-signature Validate no integration uses the legacy Agent check signature
license-headers Validate Python files have proper license headers
licenses Validate third-party license attribution list
metadata Validate metadata.csv metric definitions
models Validate configuration data models match spec.yaml
openmetrics Validate OpenMetrics integrations disable the metric limit
package Validate Python package metadata and naming
readmes Validate README files have required sections
saved-views Validate saved view JSON file structure and fields
version Validate version consistency between package and changelog

View full run

@datadog-prod-us1-3
Copy link
Copy Markdown

datadog-prod-us1-3 Bot commented May 28, 2026

Pipelines  Tests  Code Coverage

Fix all issues with BitsAI

⚠️ Warnings

🚦 5 Pipeline jobs failed

PR | test / test (linux, ubuntu-22.04, coredns, CoreDNS (py3.13-1.8), py3.13-1.8) / CoreDNS (py3.13-1.8)-py3.13-1.8   View in Datadog   GitHub Actions

🔧 Fix in code (Fix with Cursor). 3 failed tests due to assertion errors on missing metrics: 'coredns.health_request_failures.count' in metadata and unasserted collected metrics.

PR | test / test-minimum-base-package (linux, ubuntu-22.04, coredns, CoreDNS (py3.13-1.8), py3.13-1.8) / minimum-base-package-CoreDNS (py3.13-1.8)-py3.13-1.8   View in Datadog   GitHub Actions

🔧 Fix in code (Fix with Cursor). 3 failed tests. AssertionError: Metadata assertion errors using metadata.csv: Expect `coredns.health_request_failures.count` to be in metadata.csv.

Check PR | run / Check PR changelog   View in Datadog   GitHub Actions

🛟 This job is unlikely to succeed on retry. Please review your pipeline configuration. Package "coredns" has changes that require a changelog. Please run `ddev release changelog new` to add it.

View all 5 failed jobs.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 94.41% (+7.03%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 78a3a01 | Docs | Datadog PR Page | Give us feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant