Skip to content

Commit

Permalink
Add promlinter (#216)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Shishkin <me@teran.dev>
  • Loading branch information
teran authored Sep 2, 2024
1 parent 0ce9088 commit 12e1e8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ linters:
- nakedret
- nilnil
- noctx
- promlinter
- protogetter
- staticcheck
- testifylint
4 changes: 2 additions & 2 deletions exporter/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func New(repo metadata.Repository) (Service, error) {
containersTotal: prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Namespace: "archived",
Name: "containers_total",
Name: "containers_amount",
Help: "Total amount of containers",
},
[]string{},
Expand All @@ -58,7 +58,7 @@ func New(repo metadata.Repository) (Service, error) {
blobsTotal: prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Namespace: "archived",
Name: "blobs_total",
Name: "blobs_amount",
Help: "Total amount of blobs",
},
[]string{},
Expand Down

0 comments on commit 12e1e8c

Please sign in to comment.