metrics: move Subsystem to constants
This commit is contained in:
		| @@ -6,18 +6,18 @@ import ( | ||||
| 	"github.com/prometheus/client_golang/prometheus/promauto" | ||||
| ) | ||||
|  | ||||
| const promSubsystem = "record" | ||||
|  | ||||
| var ( | ||||
| 	promRecordDroppedTooLarge = promauto.NewCounterVec(prom.CounterOpts{ | ||||
| 		Namespace: globals.PrometheusPrefix, | ||||
| 		// Subsystem: "record", | ||||
| 		Name: "dropped_lines", // "dropped", | ||||
| 		Help: "Records dropped due to being too large", | ||||
| 		Namespace: globals.PrometheusPrefix, // Subsystem: promSubsystem, | ||||
| 		Name:      "dropped_lines",          // "dropped", | ||||
| 		Help:      "Records dropped due to being too large", | ||||
| 	}, []string{"filename"}) | ||||
|  | ||||
| 	promRecordPrefixParsingErr = promauto.NewCounterVec(prom.CounterOpts{ | ||||
| 		Namespace: globals.PrometheusPrefix, | ||||
| 		Subsystem: "record", | ||||
| 		Name:      "parsing_errors", | ||||
| 		Help:      "Errors while parsing log line prefixes", | ||||
| 		Namespace: globals.PrometheusPrefix, Subsystem: promSubsystem, | ||||
| 		Name: "parsing_errors", | ||||
| 		Help: "Errors while parsing log line prefixes", | ||||
| 	}, []string{"filename"}) | ||||
| ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user