clickhouse-ops

wjinan 25a6be4dbc opt: ck:增加grafana dashboard 10 months ago
code 25a6be4dbc opt: ck:增加grafana dashboard 10 months ago
config c3e96895f9 opt: todo: 填写监控所必须的信息。 10 months ago
.gitignore f36e8a6a05 新建仓库 10 months ago
README.md 25a6be4dbc opt: ck:增加grafana dashboard 10 months ago
packageExporters.sh 11157b5c87 修改sh脚本的可执行权限 10 months ago
packageMonitor.sh 11157b5c87 修改sh脚本的可执行权限 10 months ago
testAlert.sh 11157b5c87 修改sh脚本的可执行权限 10 months ago

README.md

#端口号 Monitor: port:

  • prometheus: 9990
  • alertmanager: 9993
  • dingtalk: 9994
  • prometheusAlert: 9995
  • grafana: 3000

Exporter: port:

  • node_exporter: 9100
  • blackbox_exporter: 9115
  • postgres_exporter: 9187
  • jmx_exporter: 自定义

Clickhouse: /etc/clickhouse-server/config.xml 打开以下设置

 <prometheus>
      <endpoint>/metrics</endpoint>
      <port>9363</port>
      <metrics>true</metrics>
      <events>true</events>
      <asynchronous_metrics>true</asynchronous_metrics>
      <status_info>true</status_info>
 </prometheus>

Grafana:

Dashboards:
    id: 14192
使用方法:
    1:启动grafana后,登录localhost:3000,默认账号密码都为admin,登录后可设置密码
    2:导入dashboard:在Dashboard的import下点击Upload Json file,选择grafana/dashboards/14192_rev4.json,所有配置选择默认即可(若Name重名,修改为任意名字)
    3. 导入成功后即可看到ck数据指标。