fork of indigo with slightly nicer lexgen
at main 871 B view raw
1package visual 2 3import ( 4 "github.com/prometheus/client_golang/prometheus" 5 "github.com/prometheus/client_golang/prometheus/promauto" 6) 7 8var hiveAPIDuration = promauto.NewHistogram(prometheus.HistogramOpts{ 9 Name: "automod_hive_api_duration_sec", 10 Help: "Duration of Hive image auto-labeling API calls", 11}) 12 13var hiveAPICount = promauto.NewCounterVec(prometheus.CounterOpts{ 14 Name: "automod_hive_api_count", 15 Help: "Number of Hive image auto-labeling API calls, by HTTP status code", 16}, []string{"status"}) 17 18var abyssAPIDuration = promauto.NewHistogram(prometheus.HistogramOpts{ 19 Name: "automod_abyss_api_duration_sec", 20 Help: "Duration of abyss image scanning API call", 21}) 22 23var abyssAPICount = promauto.NewCounterVec(prometheus.CounterOpts{ 24 Name: "automod_abyss_api_count", 25 Help: "Number of abyss image scanning API calls, by HTTP status code", 26}, []string{"status"})