
templates.golang.metrics.go.template Maven / Gradle / Ivy
The newest version!
package metrics
import (
"github.com/prometheus/client_golang/prometheus"
)
const (
SERVICE_NAME = "@service_name@"
DATABASE = "database"
)
var Metrics MetricWrapper
@declare_metrics@
func init() {
Metrics = &Helper{
SERVICE_NAME: SERVICE_NAME,
DATABASE: DATABASE,
}
@init_metrics@
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy