Giter Site home page Giter Site logo

liuymcn / rocketmq-exporter-go Goto Github PK

View Code? Open in Web Editor NEW
17.0 1.0 6.0 280 KB

An application of Rocketmq exporter for Prometheus which purely developed by golang

License: Apache License 2.0

Dockerfile 0.07% Go 99.93%
metric promethus promethus-exporter rocketmq rocketmq-metric

rocketmq-exporter-go's People

Contributors

liuymcn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rocketmq-exporter-go's Issues

这个是否可以支持acl配置的方式

部分使用adminExt.cli的接口请求会报此错误
level=error msg="CollectTopicOffset ExamineTopicStats " err="CODE: 1 DESC: org.apache.rocketmq.acl.common.AclException: No accessKey is configure
d, org.apache.rocketmq.acl.plain.PlainPermissionManager.validate(PlainPermissionManager.java:404)"

不能识别域名

不能失败域名
docker run -it --rm -p 9999:9999 lucas987/rocketmq-exporter-go:v0.1.1 --rocketmq.nameserver="rocketmq-prod.ddplatform.svc.cluster.local:9876"
INFO[0000] Fly listenAddress=":9999" metricsPath=/metrics opts="{[rocketmq-prod.ddplatform.svc.cluster.local:9876] 100}"
FATA[0000] create Exporter err="IP addr error"

使用报错

rocketmq集群版本:v4.9.3
使用报错如下图:
image
麻烦帮忙处理下,谢谢

panic: runtime error: index out of range [1] with length 1

docker run -it --rm -p 9999:9999 lucas987/rocketmq-exporter-go:v0.1.1 --rocketmq.nameserver="10.244.111.153:9876"
INFO[0000] Fly listenAddress=":9999" metricsPath=/metrics opts="{[10.244.111.153:9876] 100}"
INFO[0001] sending heartbeat, but no producer and no consumer
panic: runtime error: index out of range [1] with length 1

goroutine 421 [running]:
github.com/rocketmq-exporter-go/admin.newPutTps({0x0?, 0x40004ac420?})
F:/github/rocketmq-exporter-go/admin/admin_ext_query_broker_runtime_info.go:210 +0xe8
github.com/rocketmq-exporter-go/admin.newBrokerRuntimeInfo({0x4000147b00?})
F:/github/rocketmq-exporter-go/admin/admin_ext_query_broker_runtime_info.go:146 +0x830
github.com/rocketmq-exporter-go/admin.(*adminExt).QueryBrokerRuntimeInfo(0x4000225880, {0x78fed0, 0x4000132000}, {0x400014d488, 0x13})
F:/github/rocketmq-exporter-go/admin/admin_ext_query_broker_runtime_info.go:42 +0x15c
github.com/rocketmq-exporter-go/exporter.(*RocketmqExporter).CollectBrokerRuntimeInfo(0x4000173180, 0x40000d00c0?, 0x400012d090)
F:/github/rocketmq-exporter-go/exporter/metric_collect_broker_runtime_info.go:17 +0x88
github.com/rocketmq-exporter-go/exporter.(*RocketmqExporter).collect.func6(0x1?)
F:/github/rocketmq-exporter-go/exporter/collect.go:134 +0x6c
github.com/rocketmq-exporter-go/exporter.(*RocketmqExporter).collect.func7(0x400012e360?)
F:/github/rocketmq-exporter-go/exporter/collect.go:144 +0x5c
created by github.com/rocketmq-exporter-go/exporter.(*RocketmqExporter).collect
F:/github/rocketmq-exporter-go/exporter/collect.go:152 +0x530

连接拿不到消费者和生产者

./rocketmq-exporter-go --rocketmq.nameserver=10.5.20.34:9876 --web.listen-address=:9998
INFO[0000] Fly listenAddress=":9998" metricsPath=/metrics opts="{[10.5.20.34:9876] 100}"
INFO[0001] sending heartbeat, but no producer and no consumer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.