porting all github actions from bluesky-social/indigo to tangled CI
at main 2.3 kB view raw
1package querycheck 2 3import ( 4 "github.com/prometheus/client_golang/prometheus" 5 "github.com/prometheus/client_golang/prometheus/promauto" 6) 7 8var execCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 9 Name: "querycheck_exec_total", 10 Help: "total number of executions since starting the querycheck", 11}, []string{"query"}) 12 13var execDurationCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 14 Name: "querycheck_exec_duration_ms_total", 15 Help: "total ms spent executing the query since starting the querycheck", 16}, []string{"query"}) 17 18var errorCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 19 Name: "querycheck_errors_total", 20 Help: "number of errors encountered since starting the querycheck", 21}, []string{"query"}) 22 23var blocksHitCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 24 Name: "querycheck_blocks_hit_total", 25 Help: "blocks hit total since starting the querycheck", 26}, []string{"query"}) 27 28var blocksReadCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 29 Name: "querycheck_blocks_read_total", 30 Help: "blocks read total since starting the querycheck", 31}, []string{"query"}) 32 33var blocksWrittenCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 34 Name: "querycheck_blocks_written_total", 35 Help: "blocks written total since starting the querycheck", 36}, []string{"query"}) 37 38var blocksDirtyCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 39 Name: "querycheck_blocks_dirty_total", 40 Help: "blocks dirty total since starting the querycheck", 41}, []string{"query"}) 42 43var ioReadTimeCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 44 Name: "querycheck_io_read_ms_total", 45 Help: "io read time (in ms) total since starting the querycheck", 46}, []string{"query"}) 47 48var ioWriteTimeCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 49 Name: "querycheck_io_write_ms_total", 50 Help: "io write time (in ms) total since starting the querycheck", 51}, []string{"query"}) 52 53var tempWrittenBlocksCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 54 Name: "querycheck_temp_written_blocks_total", 55 Help: "temp written blocks total since starting the querycheck", 56}, []string{"query"}) 57 58var planNodeCounter = promauto.NewCounterVec(prometheus.CounterOpts{ 59 Name: "querycheck_plan_node_count_total", 60 Help: "plan node count total since starting the querycheck", 61}, []string{"query", "node_type"})