dnscrypt_proxy_build_info in prometheus export is malformed #3126
memoz
started this conversation in
Potential issues
Replies: 2 comments
-
|
Here's my workaround until this is fixed if anyone's interested: |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I believe this issue was already fixed 2 weeks ago in 95c695a and will be in the next release. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I tried scraping dnscrypt-proxy's prometheus export using telegraf, but it complained about:
[inputs.prometheus] Error in plugin: error reading metrics for "https://127.0.0.1:8080/metrics": decoding response failed: text format parsing error in line 3: unexpected end of label value "arm64"Upon closer inspection, this is the offending line:
dnscrypt_proxy_build_info{goarch="arm64" goos="linux" goversion="go1.26.0" version="2.1.15"} 1It's not following
label_pairs = label_pair { "," label_pair } [ "," ]syntax as shown here: https://prometheus.io/docs/instrumenting/exposition_formats/The correct output should be:
dnscrypt_proxy_build_info{goarch="arm64",goos="linux",goversion="go1.26.0",version="2.1.15"} 1.Beta Was this translation helpful? Give feedback.
All reactions