Skip to content

Commit

Permalink
Merge pull request #18 from nalabelle/patch-1
Browse files Browse the repository at this point in the history
allow empty string ("") namespace
  • Loading branch information
janfuhrer authored May 24, 2024
2 parents 3e1db39 + b05451e commit 27fd939
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,6 @@ func (e *Exporter) getDatastoreMetric(datastore Datastore, ch chan<- prometheus.

// for each namespace collect metrics
for _, namespace := range response.Data {
// if namespace is empty skip
if namespace.Namespace == "" {
continue
}

err := e.getNamespaceMetric(datastore.Store, namespace.Namespace, ch)
if err != nil {
return err
Expand Down

0 comments on commit 27fd939

Please sign in to comment.