Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

as long as the target is not in inventory #126

Merged
merged 1 commit into from
Oct 2, 2020
Merged

as long as the target is not in inventory #126

merged 1 commit into from
Oct 2, 2020

Conversation

richardtief
Copy link
Collaborator

Example error from vrops-exporter-vrops-vc-b-0-host

Traceback (most recent call last):
  File "/usr/lib/python3.8/wsgiref/handlers.py", line 137, in run
    self.result = application(self.environ, self.start_response)
  File "/usr/lib/python3.8/site-packages/prometheus_client/exposition.py", line 52, in prometheus_app
    status, header, output = _bake_output(registry, accept_header, params)
  File "/usr/lib/python3.8/site-packages/prometheus_client/exposition.py", line 40, in _bake_output
    output = encoder(registry)
  File "/usr/lib/python3.8/site-packages/prometheus_client/openmetrics/exposition.py", line 14, in generate_latest
    for metric in registry.collect():
  File "/usr/lib/python3.8/site-packages/prometheus_client/registry.py", line 82, in collect
    for metric in collector.collect():
  File "/vrops-exporter/collectors/HostSystemStatsCollector.py", line 24, in collect
    token = token[self.target]
AttributeError: 'HostSystemStatsCollector' object has no attribute 'target'

@viennaa viennaa merged commit 691cc01 into sapcc:master Oct 2, 2020
@richardtief richardtief deleted the fix_target_input branch December 28, 2020 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants