Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/grafana-agent
Path: blob/main/component/prometheus/operator/servicemonitors/servicemonitors.go
5371 views
1
package servicemonitors
2
3
import (
4
"github.com/grafana/agent/component"
5
"github.com/grafana/agent/component/prometheus/operator"
6
"github.com/grafana/agent/component/prometheus/operator/common"
7
)
8
9
func init() {
10
component.Register(component.Registration{
11
Name: "prometheus.operator.servicemonitors",
12
Args: operator.Arguments{},
13
14
Build: func(opts component.Options, args component.Arguments) (component.Component, error) {
15
return common.New(opts, args, common.KindServiceMonitor)
16
},
17
})
18
}
19
20