Skip to content

Commit c3e1c28

Browse files
committed
Exclude server status histogram metrics
1 parent b077391 commit c3e1c28

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

exporter/serverstatus_collector.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,17 @@ func (d *serverStatusCollector) collect(ch chan<- prometheus.Metric) {
5757
logger := d.base.logger
5858
client := d.base.client
5959

60-
cmd := bson.D{{Key: "serverStatus", Value: "1"}}
60+
cmd := bson.D{
61+
{
62+
Key: "serverStatus", Value: "1",
63+
},
64+
{
65+
Key: "metrics", Value: bson.M{
66+
// TODO: PMM-9568 : Add support to handle histogram metrics
67+
"query": bson.M{"multiPlanner": bson.M{"histograms": false}},
68+
},
69+
},
70+
}
6171
res := client.Database("admin").RunCommand(d.ctx, cmd)
6272

6373
var m bson.M

0 commit comments

Comments
 (0)