You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by "liuxuzxx (via GitHub)" <gi...@apache.org> on 2025/04/07 08:52:40 UTC

[D] prometheus use proxy url: invalid metric type "info" [rocketmq]

GitHub user liuxuzxx created a discussion: prometheus use proxy url: invalid metric type "info"

RocketMQ Version: 5.3.2

When using prometheus to directly obtain rocketmq 5 indicators, everything is normal, but when configuring proxy_url, the following error occurs: invalid metric type "info"

I saw the monitoring data spit out by rocketmq as follows:

```bash
# TYPE target info
# HELP target Target metadata
target_info{} 1
# TYPE otel_scope_info info
# HELP otel_scope_info Scope metadata
otel_scope_info{otel_scope_name="broker-meter"} 1
......omitted
```

I looked at the source code of prometheus and found that it would parse #TYPE and then see that it was "info", so it reported an error.

I used curl to request RocketMQ's /metrics directly or through the proxy --proxy xxxx http://xxxxx:5557/metrics. I carefully compared the message. Except for the header, there was no difference in the entire http response body.




GitHub link: https://github.com/apache/rocketmq/discussions/9315

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org


Re: [D] prometheus use proxy url: invalid metric type "info" [rocketmq]

Posted by "liuxuzxx (via GitHub)" <gi...@apache.org>.
GitHub user liuxuzxx added a comment to the discussion: prometheus use proxy url: invalid metric type "info"

When I use the promtool tool to detect the indicators of RocketMQ 5, the results are as follows

```bash
 linux > curl -s http://172.16.1.11:5557/metrics | ./promtool check metrics          
error while linting: text format parsing error in line 1: unknown metric type "info"
```

GitHub link: https://github.com/apache/rocketmq/discussions/9315#discussioncomment-12748227

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org