[AI-6669] NiFi - Add log pipeline and log integration assets#23302
[AI-6669] NiFi - Add log pipeline and log integration assets#23302
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files🚀 New features to boost your workflow:
|
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 2ada410 | Docs | Datadog PR Page | Give us feedback! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fe87384749
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if self.instance.get('username') and self.instance.get('password'): | ||
| self.http.options['auth'] = None |
There was a problem hiding this comment.
Preserve configured HTTP auth when credentials are supplied
This condition unconditionally disables RequestsWrapper auth whenever username and password are set, and the API client then forces token auth via /access/token. In deployments that use auth_type credentials for a reverse proxy (for example basic/digest in front of NiFi), the check will stop sending configured HTTP auth and fail before scraping metrics if the token endpoint is not available through that proxy. The token-auth path should be gated by an explicit mode instead of keying only on presence of credentials.
Useful? React with 👍 / 👎.
Rebased onto master now that the AI-6668 implementation is merged. This PR completes the integration tile by adding assets the implementation PR deliberately left out of scope. Adds: - `manifest.json` with metrics, events, logs, dashboard, saved views - `assets/dashboards/nifi_overview.json` overview dashboard - `assets/dataflows.yaml` declaring nifi-metrics, nifi-events, nifi-logs - `assets/logs/nifi.yaml` pipeline with nested sub-pipelines for app logs and Combined Log Format request logs - `assets/logs/nifi_tests.yaml` with 5 pipeline test cases - `assets/saved_views/` for error logs and HTTP access logs - `images/IMAGES_README.md` media gallery guide - Log config entries in `spec.yaml` and `conf.yaml.example` for all four NiFi log files (app, user, bootstrap, request) - README log collection section with multiline stack trace guidance Drops the earlier `service_checks.json` and its manifest reference — the check only emits the `nifi.can_connect` gauge, not a service check, so the README already documents connectivity there.
a263bc6 to
0630394
Compare
Monitor Template Quality Assessment52 monitors analyzed across 9 integrations.
Monitors with missing sections
|
- Fix GC widget query to use `sum:...as_rate()` for correct rate semantics on the monotonic_count metric (was `avg:` which misrepresents the rate). - Expand the overview dashboard to cover cluster health, bytes queued, processor status breakdown, and top connections by backpressure, so the dashboard reflects the full scope the check advertises. - Fix the error-logs saved view query: include `warning` status so 4xx HTTP request logs (tagged `status:warning` by the pipeline) surface too.
Review from janine-c is dismissed. Related teams and files:
- documentation
- nifi/assets/dashboards/nifi_overview.json
- nifi/assets/saved_views/nifi_errors.json
- Add missing standard attribute facets (URL host/port/scheme, useragent browser/device/os families) and fix sort order - Update request log test expectations to match actual pipeline user-agent parser output - Add changelog entry for PR #23302
Resolve dependency lockfile conflicts by taking master's versions.
These assets belong in Developer Platform, not integrations-core.
Validation ReportAll 20 validations passed. Show details
|
…DataDog#23531) * Revert "[AI-6669] NiFi - Add log pipeline and log integration assets (DataDog#23302)" This reverts commit 2dd1b78. * Add changelog entry for NiFi log pipeline revert * Revert "Add changelog entry for NiFi log pipeline revert" This reverts commit 3643b91.
Jira: AI-6669
Epic: AI-6662
Parent PR: #23110 (AI-6668 - NiFi Agent Integration)
Why
The NiFi Agent integration (PR #23110) includes metrics, events, and a basic log pipeline. This PR completes the log integration by adding test samples for CI validation, an enhanced pipeline for all NiFi log types, saved views, and required metadata.
Summary
nifi.yaml): Restructured into nested sub-pipelines — one for application logs (nifi-app.log, nifi-user.log, nifi-bootstrap.log) and one for HTTP request logs (nifi-request.log, Combined Log Format). Request log parsing uses the same grok patterns as the Apache/Nginx integrations.nifi_tests.yaml): 5 test cases covering INFO/ERROR/WARN app logs and GET 200/POST 404 request logs, withlog_type:requesttag routing.spec.yaml,conf.yaml.example): Added all 4 NiFi log file paths withlog_type:requesttag on the request log entry.source:nifi status:(error OR warn)) and access logs view (source:nifi log_type:request).dataflows.yaml): Declaresnifi-metricsandnifi-logsdata types.logs.sourceand saved view references.Test plan
ddev validate config -s nifipassesddev validate models -s nifipassesddev test -fs nifipasses (formatting)assets/logs/files