Skip to content

More useful metrics from --collector.dbstats  #386

@rnovikovP

Description

@rnovikovP

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions