mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
Fix linter issues
Signed-off-by: Paulin Todev <paulin.todev@gmail.com>
This commit is contained in:
parent
27bb57a37b
commit
d2e997030e
|
@ -41,7 +41,6 @@ type Ingress struct {
|
||||||
|
|
||||||
// NewIngress returns a new ingress discovery.
|
// NewIngress returns a new ingress discovery.
|
||||||
func NewIngress(l log.Logger, inf cache.SharedInformer, eventCount *prometheus.CounterVec) *Ingress {
|
func NewIngress(l log.Logger, inf cache.SharedInformer, eventCount *prometheus.CounterVec) *Ingress {
|
||||||
|
|
||||||
ingressAddCount := eventCount.WithLabelValues(RoleIngress.String(), MetricLabelRoleAdd)
|
ingressAddCount := eventCount.WithLabelValues(RoleIngress.String(), MetricLabelRoleAdd)
|
||||||
ingressUpdateCount := eventCount.WithLabelValues(RoleIngress.String(), MetricLabelRoleUpdate)
|
ingressUpdateCount := eventCount.WithLabelValues(RoleIngress.String(), MetricLabelRoleUpdate)
|
||||||
ingressDeleteCount := eventCount.WithLabelValues(RoleIngress.String(), MetricLabelRoleDelete)
|
ingressDeleteCount := eventCount.WithLabelValues(RoleIngress.String(), MetricLabelRoleDelete)
|
||||||
|
|
|
@ -367,7 +367,8 @@ func New(l log.Logger, reg prometheus.Registerer, conf *SDConfig) (*Discovery, e
|
||||||
RoleNode.String(),
|
RoleNode.String(),
|
||||||
RolePod.String(),
|
RolePod.String(),
|
||||||
RoleService.String(),
|
RoleService.String(),
|
||||||
RoleIngress.String()} {
|
RoleIngress.String(),
|
||||||
|
} {
|
||||||
for _, evt := range []string{
|
for _, evt := range []string{
|
||||||
MetricLabelRoleAdd,
|
MetricLabelRoleAdd,
|
||||||
MetricLabelRoleDelete,
|
MetricLabelRoleDelete,
|
||||||
|
|
Loading…
Reference in a new issue