mirror of
https://github.com/foomo/contentfulproxy.git
synced 2025-10-16 12:25:37 +00:00
16 lines
346 B
Go
16 lines
346 B
Go
package metrics
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
func NewCounter(name string, help string) prometheus.Counter {
|
|
return promauto.NewCounter(prometheus.CounterOpts{
|
|
Namespace: "contentful",
|
|
Subsystem: "proxy",
|
|
Name: name,
|
|
Help: help,
|
|
})
|
|
}
|