Canal - Prometheus monitoring

 

 

1. Install the deployment of Prometheus

Installation Reference: https://www.cnblogs.com/caoweixiong/p/12111035.html   

Configuration prometheus.yml, adding the canal job, examples:

- job_name: ' Canal ' 
    static_configs:
     - Targets: [ ' localhost: 11112 ' ] // port configuration is the one in canal.metrics.pull.port canal.properties

  

 

2. Start Canal server and Prometheus

  

 

3. Install the deployment start Grafana

Installation and deployment Reference: https://www.cnblogs.com/caoweixiong/p/12111243.html

Use the default configuration

 

  

4. Configuration Prometheus Datasource

  • Landed

address:http://localhost:3000/  默认登录账号与密码为: admin/admin

 

    

  • Configuration data source

 

 

  •  Import Template

Download the template: the Canal / conf / metrics / Canal_instances_tmpl.json

   

  • View

Into the dashboard 'Canal instances', in 'datasource' drop-down box just configured prometheus datasource, then 'destination' drop-down box you can switch the instance (if not appear on the list of instances refresh the page)

 

  • Modify the display

Modified to display the last 30 minutes:

Guess you like

Origin www.cnblogs.com/caoweixiong/p/12111296.html