mirror of
https://github.com/hanzoai/traces.git
synced 2026-11-02 12:18:48 +00:00
* Remove Loki deps from Vulture Signed-off-by: Daniel González Lopes <[email protected]> * Remove unneeded interation code Signed-off-by: Daniel González Lopes <[email protected]> * Change docs Signed-off-by: Daniel González Lopes <[email protected]> * Add two endpoints and refactor configs Signed-off-by: Daniel González Lopes <[email protected]> * Fix deps Signed-off-by: Daniel González Lopes <[email protected]> * Add missing error checks Signed-off-by: Daniel González Lopes <[email protected]> * Use time-based approach for seed generation Signed-off-by: Daniel González Lopes <[email protected]> * Clean Signed-off-by: Daniel González Lopes <[email protected]> * Bump default backoff duration Signed-off-by: Daniel González Lopes <[email protected]> * Create beefy traces Signed-off-by: Daniel González Lopes <[email protected]> * Randomize strings Signed-off-by: Daniel González Lopes <[email protected]> * Add change to changelog Signed-off-by: Daniel González Lopes <[email protected]> * Fix vendor Signed-off-by: Daniel González Lopes <[email protected]> * Address review comments Signed-off-by: Daniel González Lopes <[email protected]> * Move out of loop Signed-off-by: Daniel González Lopes <[email protected]> * From slot to interval + split tickers Signed-off-by: Daniel González Lopes <[email protected]> * Fix deps Signed-off-by: Daniel González Lopes <[email protected]> * Fix deps2 Signed-off-by: Daniel González Lopes <[email protected]> * Fix things? Signed-off-by: Daniel González Lopes <[email protected]> * Fix things Signed-off-by: Daniel González Lopes <[email protected]> * Fix things Signed-off-by: Daniel González Lopes <[email protected]> * Remove explicit Signed-off-by: Daniel González Lopes <[email protected]> * Fix deps Signed-off-by: Daniel González Lopes <[email protected]>
44 lines
1.1 KiB
Go
44 lines
1.1 KiB
Go
package main
|
|
|
|
import "github.com/prometheus/client_golang/prometheus"
|
|
|
|
const (
|
|
namespace = "tempo_vulture"
|
|
)
|
|
|
|
var (
|
|
// metricsErrorTotal is a prometheus counter that indicates the total number of unexpected errors encountered.
|
|
metricErrorTotal = prometheus.NewCounter(
|
|
prometheus.CounterOpts{
|
|
Namespace: namespace,
|
|
Name: "error_total",
|
|
Help: "tempo vulture errors",
|
|
},
|
|
)
|
|
|
|
// metricTracesInspected is a prometheus gauge that indicates the number traces inspected.
|
|
metricTracesInspected = prometheus.NewCounter(
|
|
prometheus.CounterOpts{
|
|
Namespace: namespace,
|
|
Name: "trace_total",
|
|
Help: "total number of traces inspected by tempo vulture",
|
|
},
|
|
)
|
|
|
|
// metricTracesErrors is a prometheus gauge that indicates the number issues with traces.
|
|
metricTracesErrors = prometheus.NewCounterVec(
|
|
prometheus.CounterOpts{
|
|
Namespace: namespace,
|
|
Name: "trace_error_total",
|
|
Help: "total number of issues with traces",
|
|
},
|
|
[]string{"error"},
|
|
)
|
|
)
|
|
|
|
func init() {
|
|
prometheus.MustRegister(metricErrorTotal)
|
|
prometheus.MustRegister(metricTracesInspected)
|
|
prometheus.MustRegister(metricTracesErrors)
|
|
}
|