You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the place of "xxxxxxx" there is a very long list of all replicas.
i.e. mongodb_dbstats_raw_mongodb_name_of_replica_one_portnumber_mongodb_name_of_replica_one_portnumber_mongodb_name_of_replica_two_portnumber_mongodb_name_of_replica_three_portnumber_mongodb_name_of_replica_four_portnumber_mongodb_name_of_replica_five_portnumber_mongodb_name_of_replica_six_portnumber_mongodb_name_of_replica_seven_portnumber_mongodb_name_of_replica_eight_portnumber_mongodb_name_of_replica_nine_portnumber_mongodb_name_of_replica_ten_portnumber_totalFreeStorageSize
To Reproduce
set up mongodb sharded cluster with many mongos instances
run mongodb_exporter
Expected behavior
replicas names shouldn't be used in metric names (it's very dangerous for prometheus/victoriametrics name index - especially when replicas are in k8s, and have POD names with big cardinality)
If it's necessary, names should be added as labels.
The text was updated successfully, but these errors were encountered:
Describe the bug
my mongodb_exporter produces prometheus metrics with very long names (name)
in the place of "xxxxxxx" there is a very long list of all replicas.
i.e.
mongodb_dbstats_raw_mongodb_name_of_replica_one_portnumber_mongodb_name_of_replica_one_portnumber_mongodb_name_of_replica_two_portnumber_mongodb_name_of_replica_three_portnumber_mongodb_name_of_replica_four_portnumber_mongodb_name_of_replica_five_portnumber_mongodb_name_of_replica_six_portnumber_mongodb_name_of_replica_seven_portnumber_mongodb_name_of_replica_eight_portnumber_mongodb_name_of_replica_nine_portnumber_mongodb_name_of_replica_ten_portnumber_totalFreeStorageSize
To Reproduce
Expected behavior
replicas names shouldn't be used in metric names (it's very dangerous for prometheus/victoriametrics name index - especially when replicas are in k8s, and have POD names with big cardinality)
If it's necessary, names should be added as labels.
The text was updated successfully, but these errors were encountered: