Skip to content

Commit f9d13bb

Browse files
committed
make buckets default
1 parent da91f55 commit f9d13bb

3 files changed

Lines changed: 10 additions & 20 deletions

File tree

OpenFlow/src/DatabaseConnection.ts

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ export class DatabaseConnection {
5252
public static mongodb_query = new client.Histogram({
5353
name: 'openflow_mongodb_query_seconds',
5454
help: 'Duration for mongodb queries microseconds',
55-
labelNames: ['collection'],
56-
buckets: [0.01, 0.1, 0.3, 0.5, 0.7, 1, 3, 5, 7, 10, 50]
55+
labelNames: ['collection']
5756
})
5857
public static mongodb_query_count = new client.Counter({
5958
name: 'openflow_mongodb_query_count',
@@ -63,8 +62,7 @@ export class DatabaseConnection {
6362
public static mongodb_aggregate = new client.Histogram({
6463
name: 'openflow_mongodb_aggregate_seconds',
6564
help: 'Duration for mongodb queries microseconds',
66-
labelNames: ['collection'],
67-
buckets: [0.01, 0.1, 0.3, 0.5, 0.7, 1, 3, 5, 7, 10, 50]
65+
labelNames: ['collection']
6866
})
6967
public static mongodb_aggregate_count = new client.Counter({
7068
name: 'openflow_mongodb_aggregate_count',
@@ -74,8 +72,7 @@ export class DatabaseConnection {
7472
public static mongodb_insert = new client.Histogram({
7573
name: 'openflow_mongodb_insert_seconds',
7674
help: 'Duration for mongodb inserts microseconds',
77-
labelNames: ['collection'],
78-
buckets: [0.01, 0.1, 0.3, 0.5, 0.7, 1, 3, 5, 7, 10, 50]
75+
labelNames: ['collection']
7976
})
8077
public static mongodb_insert_count = new client.Counter({
8178
name: 'openflow_mongodb_insert_count',
@@ -85,8 +82,7 @@ export class DatabaseConnection {
8582
public static mongodb_update = new client.Histogram({
8683
name: 'openflow_mongodb_update_seconds',
8784
help: 'Duration for mongodb updates microseconds',
88-
labelNames: ['collection'],
89-
buckets: [0.01, 0.1, 0.3, 0.5, 0.7, 1, 3, 5, 7, 10, 50]
85+
labelNames: ['collection']
9086
})
9187
public static mongodb_update_count = new client.Counter({
9288
name: 'openflow_mongodb_update_count',
@@ -96,8 +92,7 @@ export class DatabaseConnection {
9692
public static mongodb_replace = new client.Histogram({
9793
name: 'openflow_mongodb_replace_seconds',
9894
help: 'Duration for mongodb replaces microseconds',
99-
labelNames: ['collection'],
100-
buckets: [0.01, 0.1, 0.3, 0.5, 0.7, 1, 3, 5, 7, 10, 50]
95+
labelNames: ['collection']
10196
})
10297
public static mongodb_replace_count = new client.Counter({
10398
name: 'openflow_mongodb_replace_count',
@@ -107,8 +102,7 @@ export class DatabaseConnection {
107102
public static mongodb_delete = new client.Histogram({
108103
name: 'openflow_mongodb_delete_seconds',
109104
help: 'Duration for mongodb deletes microseconds',
110-
labelNames: ['collection'],
111-
buckets: [0.01, 0.1, 0.3, 0.5, 0.7, 1, 3, 5, 7, 10, 50]
105+
labelNames: ['collection']
112106
})
113107
public static mongodb_delete_count = new client.Counter({
114108
name: 'openflow_mongodb_delete_count',
@@ -118,8 +112,7 @@ export class DatabaseConnection {
118112
public static mongodb_deletemany = new client.Histogram({
119113
name: 'openflow_mongodb_deletemany_seconds',
120114
help: 'Duration for mongodb deletemanys microseconds',
121-
labelNames: ['collection'],
122-
buckets: [0.01, 0.1, 0.3, 0.5, 0.7, 1, 3, 5, 7, 10, 50]
115+
labelNames: ['collection']
123116
})
124117
public static mongodb_deletemany_count = new client.Counter({
125118
name: 'openflow_mongodb_deletemany_count',

OpenFlow/src/WebSocketServer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ export class WebSocketServer {
4545
public static websocket_messages = new client.Histogram({
4646
name: 'openflow_websocket_messages_duration_seconds',
4747
help: 'Duration for handling websocket requests in microseconds',
48-
labelNames: ['command'],
49-
buckets: [0.01, 0.1, 0.3, 0.5, 0.7, 1, 3, 5, 7, 10, 50]
48+
labelNames: ['command']
5049
})
5150
public static message_queue_count = new client.Gauge({
5251
name: 'openflow_message_queue_count',

OpenFlowNodeRED/src/WebServer.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ export class WebServer {
3535
public static openflow_nodered_node_duration = new client.Histogram({
3636
name: 'openflow_nodered_node_duration',
3737
help: 'Duration of each node call',
38-
labelNames: ["nodetype"],
39-
buckets: [0.01, 0.1, 0.3, 0.5, 0.7, 1, 3, 5, 7, 10, 50]
38+
labelNames: ["nodetype"]
4039
})
4140
public static openflow_nodered_nodeid_count = new client.Counter({
4241
name: 'openflow_nodered_nodeid_count',
@@ -46,8 +45,7 @@ export class WebServer {
4645
public static openflow_nodered_nodeid_duration = new client.Histogram({
4746
name: 'openflow_nodered_nodeid_duration',
4847
help: 'Duration of each node call',
49-
labelNames: ["nodetype", "nodeid"],
50-
buckets: [0.01, 0.1, 0.3, 0.5, 0.7, 1, 3, 5, 7, 10, 50]
48+
labelNames: ["nodetype", "nodeid"]
5149
})
5250
public static message_queue_count = new client.Gauge({
5351
name: 'openflow_message_queue_count',

0 commit comments

Comments
 (0)