mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
Updated Canal prometheus (markdown)
@@ -51,20 +51,6 @@ Canal server 性能指标监控基于prometheus的实现。
|
|||||||
|
|
||||||
详见:[prometheus/client_java](https://github.com/prometheus/client_java)
|
详见:[prometheus/client_java](https://github.com/prometheus/client_java)
|
||||||
|
|
||||||
|
|
||||||
## Quick start
|
|
||||||
|
|
||||||
1. 安装并部署对应平台的prometheus,参见[官方guide](https://prometheus.io/docs/introduction/first_steps/)
|
|
||||||
|
|
||||||
2. 配置prometheus.yml,添加canal的job,示例:
|
|
||||||
```
|
|
||||||
- job_name: 'canal'
|
|
||||||
static_configs:
|
|
||||||
- targets: ['localhost:11112'] //端口配置即为canal.properties中的canal.metrics.pull.port
|
|
||||||
```
|
|
||||||
|
|
||||||
3. 启动prometheus与canal server
|
|
||||||
|
|
||||||
## Prometheus expression 与相应 use case
|
## Prometheus expression 与相应 use case
|
||||||
_单表达式示例图为prometheus自带展示层工具,最终dashboard效果图请看grafana章节_
|
_单表达式示例图为prometheus自带展示层工具,最终dashboard效果图请看grafana章节_
|
||||||
|
|
||||||
@@ -189,6 +175,19 @@ canal_instance_store
|
|||||||
```
|
```
|
||||||
**通过labels展示状态信息。**
|
**通过labels展示状态信息。**
|
||||||
|
|
||||||
|
## Quick start
|
||||||
|
|
||||||
|
1. 安装并部署对应平台的prometheus,参见[官方guide](https://prometheus.io/docs/introduction/first_steps/)
|
||||||
|
|
||||||
|
2. 配置prometheus.yml,添加canal的job,示例:
|
||||||
|
```
|
||||||
|
- job_name: 'canal'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['localhost:11112'] //端口配置即为canal.properties中的canal.metrics.pull.port
|
||||||
|
```
|
||||||
|
|
||||||
|
3. 启动prometheus与canal server
|
||||||
|
|
||||||
|
|
||||||
## Grafana
|
## Grafana
|
||||||
施工准备中
|
施工准备中
|
||||||
Reference in New Issue
Block a user