|
22 | 22 | Name: "http_requests_total", |
23 | 23 | Help: "Count of all http requests", |
24 | 24 | }) |
| 25 | + promBatches = prometheus.NewCounter( |
| 26 | + prometheus.CounterOpts{ |
| 27 | + Name: "incoming_prometheus_batches_total", |
| 28 | + Help: "Count of incoming prometheus batches (to be broken into individual metrics)", |
| 29 | + }) |
| 30 | + serializeTotal = prometheus.NewCounter( |
| 31 | + prometheus.CounterOpts{ |
| 32 | + Name: "serialized_total", |
| 33 | + Help: "Count of all serialization requests", |
| 34 | + }) |
| 35 | + serializeFailed = prometheus.NewCounter( |
| 36 | + prometheus.CounterOpts{ |
| 37 | + Name: "serialized_failed_total", |
| 38 | + Help: "Count of all serialization failures", |
| 39 | + }) |
| 40 | + objectsFiltered = prometheus.NewCounter( |
| 41 | + prometheus.CounterOpts{ |
| 42 | + Name: "objects_filtered_total", |
| 43 | + Help: "Count of all filter attempts", |
| 44 | + }) |
| 45 | + objectsWritten = prometheus.NewCounter( |
| 46 | + prometheus.CounterOpts{ |
| 47 | + Name: "objects_written_total", |
| 48 | + Help: "Count of all objects written to Kafka", |
| 49 | + }) |
| 50 | + objectsFailed = prometheus.NewCounter( |
| 51 | + prometheus.CounterOpts{ |
| 52 | + Name: "objects_failed_total", |
| 53 | + Help: "Count of all objects write failures to Kafka", |
| 54 | + }) |
25 | 55 | ) |
26 | 56 |
|
27 | 57 | func init() { |
28 | 58 | prometheus.MustRegister(httpRequestsTotal) |
| 59 | + prometheus.MustRegister(promBatches) |
| 60 | + prometheus.MustRegister(serializeTotal) |
| 61 | + prometheus.MustRegister(serializeFailed) |
| 62 | + prometheus.MustRegister(objectsFiltered) |
| 63 | + prometheus.MustRegister(objectsFailed) |
| 64 | + prometheus.MustRegister(objectsWritten) |
29 | 65 | } |
0 commit comments