Skip to content

Commit 004f767

Browse files
Yuki KIRIIdiscordianfish
Yuki KIRII
authored andcommitted
Fix ValueError (#7) (#8)
1 parent bb9ded7 commit 004f767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: check.d/prometheus.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ def process(self, endpoint, send_histograms_buckets=True, instance=None,
5858
else:
5959
format = format.upper()
6060

61-
content_type, data = self.poll(endpoint, headers=headers, pFormat=format)
61+
response = self.poll(endpoint, headers=headers, pFormat=format)
6262
for metric in filter(
6363
lambda m: filterMetric(m, drops, keeps),
64-
self.parse_metric_family(data, content_type)):
64+
self.parse_metric_family(response)):
6565
# Since dd-agent 5.21.0 according to https://github.com/DataDog/dd-agent/commit/e747b69
6666
if callable(getattr(self, '_submit', None)):
6767
self._submit(metric.name, metric, send_histograms_buckets,

0 commit comments

Comments
 (0)