Skip to content

Commit

Permalink
Rename instance to tenant to avoid clash with Prom (grafana#164)
Browse files Browse the repository at this point in the history
Signed-off-by: Goutham Veeramachaneni <[email protected]>
  • Loading branch information
gouthamve authored and tomwilkie committed Dec 19, 2018
1 parent 8609fca commit 9b67d6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pkg/distributor/distributor.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ var (
bytesIngested = promauto.NewCounterVec(prometheus.CounterOpts{
Namespace: "loki",
Name: "distributor_bytes_received_total",
Help: "The total number of uncompressed bytes received per instance",
}, []string{"instance"})
Help: "The total number of uncompressed bytes received per tenant",
}, []string{"tenant"})
linesIngested = promauto.NewCounterVec(prometheus.CounterOpts{
Namespace: "loki",
Name: "distributor_lines_received_total",
Help: "The total number of lines received per instance",
}, []string{"instance"})
Help: "The total number of lines received per tenant",
}, []string{"tenant"})
)

// Config for a Distributor.
Expand Down
8 changes: 4 additions & 4 deletions pkg/ingester/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ var (
streamsCreatedTotal = promauto.NewCounterVec(prometheus.CounterOpts{
Namespace: "loki",
Name: "ingester_streams_created_total",
Help: "The total number of streams created per instance in the ingester.",
}, []string{"instance"})
Help: "The total number of streams created per tenant.",
}, []string{"tenant"})
streamsRemovedTotal = promauto.NewCounterVec(prometheus.CounterOpts{
Namespace: "loki",
Name: "ingester_streams_removed_total",
Help: "The total number of streams removed per instance by the ingester.",
}, []string{"instance"})
Help: "The total number of streams removed per tenant.",
}, []string{"tenant"})
)

type instance struct {
Expand Down

0 comments on commit 9b67d6c

Please sign in to comment.