Skip to content

[Bug] Bug title promtool check: unknown metric type "info" #9317

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

Open
3 tasks done
liuxuzxx opened this issue Apr 7, 2025 · 4 comments
Open
3 tasks done

[Bug] Bug title promtool check: unknown metric type "info" #9317

liuxuzxx opened this issue Apr 7, 2025 · 4 comments

Comments

@liuxuzxx
Copy link

liuxuzxx commented Apr 7, 2025

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • 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

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

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

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?

# 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

@liuxuzxx
Copy link
Author

liuxuzxx commented Apr 7, 2025

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

@liuxuzxx
Copy link
Author

liuxuzxx commented Apr 7, 2025

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

@liuxuzxx
Copy link
Author

liuxuzxx commented Apr 7, 2025

但是官方网站在可观测性这章节说法如下:

消息队列 RocketMQ 版定义的 Metrics 完全兼容开源 Prometheus 的标准,提供的 Metrics 的类型为 Counter、Gauge 和 Histogram。更多信息,请参见 [METRIC TYPES](https://prometheus.io/docs/concepts/metric_types/)。

但是最前面两个指标,如果解析出来就是:info类型

https://rocketmq.apache.org/zh/docs/observability/01metrics

Image

@liuxuzxx
Copy link
Author

liuxuzxx commented Apr 7, 2025

看到配置文件也是配置了如下的信息

metricsExporterType=PROM

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

No branches or pull requests

1 participant