Skip to content
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

[Question] 有提供metrics监控接口吗?能否通过prometheus的json_exporter实现监控指标数据的转换 #1656

Closed
1 task done
huangcaiyun opened this issue Nov 16, 2021 · 5 comments · Fixed by #2286
Labels

Comments

@huangcaiyun
Copy link

Problem Type (问题类型)

others (please edit later)

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题

Environment (环境信息)

  • Server Version: v0.11.2
  • Backend: RocksDB x nodes, HDD or SSD

Your Question (问题描述)

在prometheus的环境下,访问ip:18080/metrics ,得到的页面结果如下:
d9536287313c814f99335d29b2460c1
9e5b3b1cdaf38e1b1a451cec022adc5

出现这个错误的原因是因为prometheus无法转化metrics的数据导致的吗?目前有没有提供exporter来解决数据转换的问题呢?

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

@imbajin imbajin changed the title hugegraph有提供metrics监控接口吗?能通过prometheus的json_exporter实现监控指标数据的转换吗? [Question] 有提供metrics监控接口吗?能否通过prometheus的json_exporter实现监控指标数据的转换 Nov 16, 2021
@imbajin
Copy link
Member

imbajin commented Nov 16, 2021

是的, 原本的 metrics 格式是自定义的, 如果需要对接 prometheus 的接口使用, 可以参考一个测试的 exporter 接口实现.

社区正式版后续会集成进来. 也欢迎你基于 beta 版重构一下提交 PR

PS: prometheus 官方的 client 的 api 可以直接使用么, 这个不太清楚. 你也可以参考看看

@huangcaiyun
Copy link
Author

这个exporter是实现了promethues的接口吗?这个是你们在新版本中集成进来测试的代码?

@imbajin
Copy link
Member

imbajin commented Nov 18, 2021

这个exporter是实现了promethues的接口吗?这个是你们在新版本中集成进来测试的代码?

细节我没看, 你可以简单看看, 应该是做了个适配转换. 可以确认它是可用的, 也是先做个测试看看效果

@jiayouchongmingniao
Copy link

@github-actions
Copy link

Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants