Skip to content

Commit

Permalink
Merge branch 'host-labels' of github.com:adnull/mongodb_exporter_mt i…
Browse files Browse the repository at this point in the history
…nto host-labels
  • Loading branch information
adnull committed Aug 30, 2024
2 parents 55d00bf + fcf57eb commit 95ff992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ type Opts struct {

URI string

Check failure on line 82 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (mongo:4.4)

other declaration of URI

Check failure on line 82 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (mongo:5.0)

other declaration of URI

Check failure on line 82 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (percona/percona-server-mongodb:4.4)

other declaration of URI

Check failure on line 82 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (percona/percona-server-mongodb:5.0)

other declaration of URI
NodeName string

Check failure on line 83 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (mongo:4.4)

other declaration of NodeName

Check failure on line 83 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (mongo:5.0)

other declaration of NodeName

Check failure on line 83 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (percona/percona-server-mongodb:4.4)

other declaration of NodeName

Check failure on line 83 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (percona/percona-server-mongodb:5.0)

other declaration of NodeName
URI string

Check failure on line 84 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Lint Check

[golangci-lint] reported by reviewdog 🐶 URI redeclared Raw Output: exporter/exporter.go:84:2: URI redeclared

Check failure on line 84 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Lint Check

[golangci-lint] reported by reviewdog 🐶 URI redeclared Raw Output: exporter/exporter.go:84:2: URI redeclared

Check failure on line 84 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Lint Check

URI redeclared

Check failure on line 84 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Lint Check

URI redeclared

Check failure on line 84 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (mongo:4.4)

URI redeclared

Check failure on line 84 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (mongo:5.0)

URI redeclared

Check failure on line 84 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (percona/percona-server-mongodb:4.4)

URI redeclared

Check failure on line 84 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (percona/percona-server-mongodb:5.0)

URI redeclared
NodeName string

Check failure on line 85 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Lint Check

[golangci-lint] reported by reviewdog 🐶 NodeName redeclared Raw Output: exporter/exporter.go:85:2: NodeName redeclared

Check failure on line 85 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Lint Check

[golangci-lint] reported by reviewdog 🐶 NodeName redeclared Raw Output: exporter/exporter.go:85:2: NodeName redeclared

Check failure on line 85 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Lint Check

NodeName redeclared

Check failure on line 85 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Lint Check

NodeName redeclared

Check failure on line 85 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (mongo:4.4)

NodeName redeclared

Check failure on line 85 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (mongo:5.0)

NodeName redeclared

Check failure on line 85 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (percona/percona-server-mongodb:4.4)

NodeName redeclared

Check failure on line 85 in exporter/exporter.go

View workflow job for this annotation

GitHub Actions / Build (percona/percona-server-mongodb:5.0)

NodeName redeclared
}

var (
Expand Down
3 changes: 1 addition & 2 deletions exporter/v1_compatibility_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@ func TestAddLocksMetrics(t *testing.T) {
err = json.Unmarshal(buf, &m)
assert.NoError(t, err)

var metrics []prometheus.Metric
logger := logrus.New()
logger.SetLevel(logrus.DebugLevel)
metrics = locksMetrics(logger.WithField("component", "test"), m)
metrics := locksMetrics(logger.WithField("component", "test"), m)

desc := make([]string, 0, len(metrics))
for _, metric := range metrics {
Expand Down

0 comments on commit 95ff992

Please sign in to comment.