Skip to content

Commit

Permalink
fix /metrics matching
Browse files Browse the repository at this point in the history
  • Loading branch information
finkr committed Jul 27, 2019
1 parent 601ec14 commit 9c03820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vmware_exporter/vmware_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,9 +893,9 @@ def generate_latest_metrics(self, request):
self.config[section]['ignore_ssl'],
)
metrics = yield collector.collect()

# URI /metrics?section=default
if request.path = '/metrics' and section == 'default':
if request.path == b'/metrics' and section == 'default':
registry = REGISTRY
else:
registry = CollectorRegistry()
Expand Down

0 comments on commit 9c03820

Please sign in to comment.