Add MongoDB OpenTelemetry content pack - #17825
Conversation
Adds dashboards, alerting rule templates, and SLO templates for monitoring MongoDB via the OpenTelemetry mongodbreceiver.
✅ Vale Linting ResultsNo issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
|
|
I ran Results
Upgrade and post-upgrade compile succeeded with 0.4.0. Suggested commands: uvx --from kb-dashboard-cli==0.4.0 kb-dashboard upgrade --input-dir packages/mongodb_otel/_dev/shared --write
uvx --from kb-dashboard-cli==0.4.0 kb-dashboard compile --input-dir packages/mongodb_otel/_dev/shared --output-dir packages/mongodb_otel/kibana/dashboard --format elastic-integrations |
These issues aren't addressed yet |
Apologies for the delay. Now I have address the issues. PTAL. |
| "schedule": { | ||
| "interval": "5m" | ||
| }, | ||
| "params": { |
There was a problem hiding this comment.
🟠 High alerting_rule_template/mongodb_otel-high-session-count.json:14
The params object for .es-query with esqlQuery searchType is missing required fields (size, threshold, thresholdComparator, termField, termSize, excludeHitsFromPreviousRun) that all other OTel integration alerting templates consistently include. Without threshold and thresholdComparator, the rule cannot determine when to fire alerts — it will likely fail to load or not trigger as expected. The standard pattern for ESQL queries with inline filtering is threshold: [0] and thresholdComparator: ">" so the alert fires when any rows are returned.
🤖 Copy this AI Prompt to have your agent fix this:
In file packages/mongodb_otel/kibana/alerting_rule_template/mongodb_otel-high-session-count.json around line 14:
The `params` object for `.es-query` with `esqlQuery` searchType is missing required fields (`size`, `threshold`, `thresholdComparator`, `termField`, `termSize`, `excludeHitsFromPreviousRun`) that all other OTel integration alerting templates consistently include. Without `threshold` and `thresholdComparator`, the rule cannot determine when to fire alerts — it will likely fail to load or not trigger as expected. The standard pattern for ESQL queries with inline filtering is `threshold: [0]` and `thresholdComparator: ">"` so the alert fires when any rows are returned.
💚 Build Succeeded
History
cc @shmsr |
|
Package mongodb_otel - 0.1.0 containing this change is available at https://epr.elastic.co/package/mongodb_otel/0.1.0/ |
Summary
mongodb_otelcontent pack (type:content) with Kibana dashboards, alerting rule templates, and SLO templates for monitoring MongoDB via the OpenTelemetrymongodbreceiver.metrics-mongodbreceiver.otel-*data stream — no optional receiver metrics need to be enabled.Dashboards
[MongoDB OTel] Overview
Operation throughput, average latency, WiredTiger cache hit ratio, and connection status.
[MongoDB OTel] Operations
Operation rate by type, operation time trends, global lock contention, and network I/O.
[MongoDB OTel] Capacity
Connection utilization, memory usage, storage and index sizes by database, and cursor/session counts.
Alert rules
SLO templates
Test plan
elastic-package buildsucceeds forpackages/mongodb_otelelastic-package validatepasses (format version, manifest, dashboards)mongodbreceiverdata