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

[I] [Bug] Bug title promtool check: unknown metric type "info" [rocketmq]

liuxuzxx opened a new issue, #9317:
URL: https://github.com/apache/rocketmq/issues/9317

   ### Before Creating the Bug Report
   
   - [x] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions).
   
   - [x] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions)  of this repository and believe that this is not a duplicate.
   
   - [x] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
   
   
   ### Runtime platform environment
   
   RocketMQ version : 5.3.2
   Prometheus version: 2.36.2
   Prometheus metrics: http://172.16.1.11:5557/metrics
   
   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"
   
   ```
   
   ### RocketMQ version
   
   RocketMQ version : 5.3.2
   
   ### JDK Version
   
   OpenJDK:17
   
   ### Describe the Bug
   
   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"
   
   ```
   
   ### Steps to Reproduce
   
   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"
   
   ```
   
   ### What Did You Expect to See?
   
   ```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
   
   ......
   ```
   Promtheus support: counter、gauge、histogram、summary. not contain: "info" type
   
   ### What Did You See Instead?
   
   counter、gauge、histogram、summarycounter、gauge、histogram、summaryP
   
   ### Additional Context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Bug title promtool check: unknown metric type "info" [rocketmq]

Posted by "liuxuzxx (via GitHub)" <gi...@apache.org>.
liuxuzxx commented on issue #9317:
URL: https://github.com/apache/rocketmq/issues/9317#issuecomment-2782676225

   看到配置文件也是配置了如下的信息
   
   ```bash
   metricsExporterType=PROM
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Bug title promtool check: unknown metric type "info" [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9317:
URL: https://github.com/apache/rocketmq/issues/9317#issuecomment-4202987159

   This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Bug title promtool check: unknown metric type "info" [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #9317: [Bug] Bug title promtool check: unknown metric type "info"
URL: https://github.com/apache/rocketmq/issues/9317


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Bug title promtool check: unknown metric type "info" [rocketmq]

Posted by "liuxuzxx (via GitHub)" <gi...@apache.org>.
liuxuzxx commented on issue #9317:
URL: https://github.com/apache/rocketmq/issues/9317#issuecomment-2782605784

   但是官方网站在可观测性这章节说法如下:
   
   ```bash
   消息队列 RocketMQ 版定义的 Metrics 完全兼容开源 Prometheus 的标准,提供的 Metrics 的类型为 Counter、Gauge 和 Histogram。更多信息,请参见 [METRIC TYPES](https://prometheus.io/docs/concepts/metric_types/)。
   ```
   
   但是最前面两个指标,如果解析出来就是:info类型


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Bug title promtool check: unknown metric type "info" [rocketmq]

Posted by "liuxuzxx (via GitHub)" <gi...@apache.org>.
liuxuzxx commented on issue #9317:
URL: https://github.com/apache/rocketmq/issues/9317#issuecomment-2782582280

   When I passed a prometheus proxy_url, an error occurred: invalid metric type: "info"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Bug title promtool check: unknown metric type "info" [rocketmq]

Posted by "liuxuzxx (via GitHub)" <gi...@apache.org>.
liuxuzxx commented on issue #9317:
URL: https://github.com/apache/rocketmq/issues/9317#issuecomment-2782576544

   But when I use prometheus to collect directly, it is possible


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Bug title promtool check: unknown metric type "info" [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9317:
URL: https://github.com/apache/rocketmq/issues/9317#issuecomment-4230431187

   This issue was closed because it has been inactive for 3 days since being marked as stale.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org