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

canal 性能指标采集 #828

Merged
merged 14 commits into from
Aug 10, 2018
Merged

canal 性能指标采集 #828

merged 14 commits into from
Aug 10, 2018

Conversation

lcybo
Copy link
Collaborator

@lcybo lcybo commented Aug 10, 2018

指标列表:
canal_instance_traffic_delay 与master的delay,单位毫秒,精度毫秒
canal_instance_transactions 接收的transaction数量
canal_instance_row_events 接收的rowdata entry数量
canal_instance_rows_counter 变更的行数
canal_instance instance列表
canal_instance_subscriptions instance订阅数量
canal_instance_publish_blocking_time parallel模式下pushlish阻塞时间,单位毫秒,精度纳秒
canal_instance_received_binlog_bytes 接收的binlog字节数
canal_instance_parser_mode parser是否parallel模式
canal_instance_client_packets client instances请求packets数量
canal_instance_client_bytes 向client instances发送字节数
canal_instance_client_empty_batches 向client instances发送空包数量
canal_instance_client_request_error client instances错误请求数量
canal_instance_client_request_latency 请求latency情况
canal_instance_sink_blocking_time sink线程put store的阻塞时间,单位毫秒,精度纳秒
canal_instance_store_produce_seq 生产entry的序号
canal_instance_store_consume_seq 消费entry的序号,与canal_instance_store_produce_seq配合使用
canal_instance_store store基本信息
canal_instance_store_produce_mem 生产的entry占用mem总量
canal_instance_store_consume_mem 消费的entry占用mem总量
待补充...
httpserver端口目前是11112
晚上和rds的提交撞车了,所以有些冲突文件merge。
protoc用的2.6.1版本。
后续会补充Prometheus表达式,可视化相关文档,test cases;将端口等参数可配置等等。

请review一下,谢谢。

@lcybo lcybo requested a review from agapple August 10, 2018 00:10
@agapple
Copy link
Member

agapple commented Aug 10, 2018

大赞!! 问一下 METRICS_OPTS 这个注释了, 目前监控信息的获取方式是JMX还是HTTP ?

@agapple agapple merged commit fb1126c into alibaba:master Aug 10, 2018
@agapple
Copy link
Member

agapple commented Aug 10, 2018

建议你把监控这块的指标的概念, 以及基于指标来定位问题的case能罗列一下, 后续大家都可以共享了

@agapple
Copy link
Member

agapple commented Aug 10, 2018

rds的提交比较大, 和我这边的一些提交也有撞车, 需要留意看看是否被覆盖.

这次RDS的提交, 主要为解决阿里云上RDS binlog被删的问题, 会自动衔接oss的binlog 和 mysql binlog. 有了这套机制, 以后对接各类云RDS基本无障碍了

@lcybo
Copy link
Collaborator Author

lcybo commented Aug 11, 2018

METRICS_OPTS 本来是用于-javaagent的,现在去掉了。
目前监控信息的获取方式是http:

  • job_name: 'canal'
    static_configs:
    • targets: ['localhost:11112'] //端口或其他配置后续会配置到文件里

指标的概念及case会连同表达式,写一个MD,再commit,包括一些develop guide和可视化的内容。

@wingerx
Copy link
Collaborator

wingerx commented Aug 13, 2018

赞赞赞

@karinemo1
Copy link

想问一下,配置变更后,这些指标会清空,这是正常的吗,在哪里处理的呀

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

Successfully merging this pull request may close these issues.

4 participants