Done
Details
Assignee
UnassignedUnassignedReporter
shashank.sinhashashank.sinha(Deactivated)Priority
MediumComponents
Needs QA
YesNeeds Doc
YesFix versions
Story Points
3
Details
Details
Assignee
Unassigned
UnassignedReporter
shashank.sinha
shashank.sinha(Deactivated)Priority
Components
Needs QA
Yes
Needs Doc
Yes
Fix versions
Story Points
3
Smart Checklist
Smart Checklist
Smart Checklist
Created April 26, 2022 at 12:42 PM
Updated November 13, 2024 at 9:48 AM
Resolved August 5, 2022 at 9:00 AM
Requirement
Exporters which connect to Prometheus do not provide any metrics about collectors. Collector level information (such as time taken for scrape, number of metrics generated, number of unique labels generated, etc) is neither generated, nor stored anywhere.
We need to generate such metrics, like other metrics, per scrape by Prometheus.
Scope
We only target following exporters in this ticket:
MongoDB exporter
MySQL exporter
Postgres exporter
Any other exporter is out of scope for this ticket.
Acceptance Criteria
(Scope reduced for 2.29 release) - only mongodb_exporter supported.
Following metrics should be generated at exporter level:
Memory usage
File descriptors in use
Uptime
Total collector execution time
Exporter errors
Scrape rate
Service availability check
(Exporter level metrics are already in place before this change)
Following metrics should be generated at collector level :
Scrape rate
Total execution time
Suggested Implementation
We should create our own fork of Golang client library. This will allow us to reuse logic for metric generation across collectors. This would also allow us to upstream our changes.