-
Notifications
You must be signed in to change notification settings - Fork 0
Fix : Monitoring module replication set metrics #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
merging main branch
…al - Now hardcoded to defaults in locals block
merging main branch
merging main branch
…ad of exporter ip.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes MongoDB replication set metrics in the Grafana dashboard by improving label extraction and increases scrape timeout to handle collection stats timeouts.
Key changes:
- Updated three Prometheus queries to use
label_replace()for extracting pod names frommember_idxlabels - Added
scrapeTimeoutconfiguration to the ServiceMonitor with a 30-second timeout (increased from default 10s)
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| modules/common/monitoring/mongo/1.0/mongo-dashboard.tf.json | Modified three Prometheus queries (PRIMARY members, ping time metrics, and SECONDARY members) to extract pod names using label_replace() and updated legend format to display pod names instead of member state and instance |
| modules/common/monitoring/mongo/1.0/main.tf | Added scrapeTimeout configuration with 30s timeout to ServiceMonitor and improved formatting alignment in the serviceMonitor block |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.