-
Notifications
You must be signed in to change notification settings - Fork 450
Description
Is your feature request related to a problem? Please describe.
As for now, flag --collector.dbstats exposes metrics in a way - they're not easy for users as to create a dashboard with this data you need to extract DB name from metrics name. This also makes metrics names unpredictable.
Example:
mongodb_dbstats_testdb_fsUsedSize{cl_id="611fa5e6165e2964515910a7",cl_role="shardsvr",rs_nm="rs1",rs_state="1" } 1.3
Describe the solution you'd like
Have separate labels for DB names so the Dashboard designer or other person can do aggregation by data and an easy way to present them.
Example:
mongodb_dbstats_fsUsedSize{db_name="testdb", cl_id="611fa5e6165e2964515910a7",cl_role="shardsvr",rs_nm="rs1",rs_state="1" } 1.3
Describe alternatives you've considered
Do nothing, and have minimal abilities to work with metrics for DB.
Additional context
Metrics and Label naming from Prometheus