Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanualsi committed Nov 18, 2024
1 parent edb32d8 commit 1eb1735
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/pattern/aggregation/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/prometheus/client_golang/prometheus/promauto"
)

type AggregationMetrics struct {
type Metrics struct {
chunks *prometheus.GaugeVec
samples *prometheus.CounterVec

Expand All @@ -23,8 +23,8 @@ type AggregationMetrics struct {
writeTimeout *prometheus.CounterVec
}

func NewMetrics(r prometheus.Registerer, metricsNamespace string) *AggregationMetrics {
return &AggregationMetrics{
func NewMetrics(r prometheus.Registerer, metricsNamespace string) *Metrics {
return &Metrics{
chunks: promauto.With(r).NewGaugeVec(prometheus.GaugeOpts{
Namespace: metricsNamespace,
Subsystem: "pattern_ingester",
Expand Down
2 changes: 1 addition & 1 deletion pkg/pattern/aggregation/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type Push struct {

entries entries

metrics *AggregationMetrics
metrics *Metrics
}

type entry struct {
Expand Down

0 comments on commit 1eb1735

Please sign in to comment.