@@ -158,7 +158,6 @@ type intermediateMetricMap struct {
158
158
columnMappings map [string ]ColumnMapping
159
159
master bool
160
160
cacheSeconds uint64
161
- runonserver string
162
161
}
163
162
164
163
// MetricMapNamespace groups metric maps under a shared set of labels.
@@ -167,7 +166,6 @@ type MetricMapNamespace struct {
167
166
columnMappings map [string ]MetricMap // Column mappings in this namespace
168
167
master bool // Call query only for master database
169
168
cacheSeconds uint64 // Number of seconds this metric namespace can be cached. 0 disables.
170
- runonserver string // Run the query on which server version
171
169
}
172
170
173
171
// MetricMap stores the prometheus metric description which a given column will
@@ -227,7 +225,6 @@ var builtinMetricMaps = map[string]intermediateMetricMap{
227
225
},
228
226
true ,
229
227
0 ,
230
- "" ,
231
228
},
232
229
"pg_stat_database" : {
233
230
map [string ]ColumnMapping {
@@ -253,7 +250,6 @@ var builtinMetricMaps = map[string]intermediateMetricMap{
253
250
},
254
251
true ,
255
252
0 ,
256
- "" ,
257
253
},
258
254
"pg_stat_database_conflicts" : {
259
255
map [string ]ColumnMapping {
@@ -267,7 +263,6 @@ var builtinMetricMaps = map[string]intermediateMetricMap{
267
263
},
268
264
true ,
269
265
0 ,
270
- "" ,
271
266
},
272
267
"pg_locks" : {
273
268
map [string ]ColumnMapping {
@@ -277,7 +272,6 @@ var builtinMetricMaps = map[string]intermediateMetricMap{
277
272
},
278
273
true ,
279
274
0 ,
280
- "" ,
281
275
},
282
276
"pg_stat_replication" : {
283
277
map [string ]ColumnMapping {
@@ -324,7 +318,6 @@ var builtinMetricMaps = map[string]intermediateMetricMap{
324
318
},
325
319
true ,
326
320
0 ,
327
- "" ,
328
321
},
329
322
"pg_replication_slots" : {
330
323
map [string ]ColumnMapping {
@@ -349,7 +342,6 @@ var builtinMetricMaps = map[string]intermediateMetricMap{
349
342
},
350
343
true ,
351
344
0 ,
352
- "" ,
353
345
},
354
346
"pg_stat_activity" : {
355
347
map [string ]ColumnMapping {
@@ -360,7 +352,6 @@ var builtinMetricMaps = map[string]intermediateMetricMap{
360
352
},
361
353
true ,
362
354
0 ,
363
- "" ,
364
355
},
365
356
}
366
357
@@ -543,7 +534,6 @@ func parseUserQueries(content []byte) (map[string]intermediateMetricMap, map[str
543
534
columnMappings : newMetricMap ,
544
535
master : specs .Master ,
545
536
cacheSeconds : specs .CacheSeconds ,
546
- runonserver : specs .RunOnServer ,
547
537
}
548
538
metricMaps [metric ] = metricMap
549
539
}
@@ -736,7 +726,7 @@ func makeDescMap(pgVersion semver.Version, serverLabels prometheus.Labels, metri
736
726
}
737
727
}
738
728
739
- metricMap [namespace ] = MetricMapNamespace {variableLabels , thisMap , intermediateMappings .master , intermediateMappings .cacheSeconds , intermediateMappings . runonserver }
729
+ metricMap [namespace ] = MetricMapNamespace {variableLabels , thisMap , intermediateMappings .master , intermediateMappings .cacheSeconds }
740
730
}
741
731
742
732
return metricMap
0 commit comments