未验证 提交 86981e09 编写于 作者: C chris-sun-star 提交者: GitHub

Merge pull request #19 from chris-sun-star/mysqld_exporter_config

Mysqld exporter config
configVersion: "2021-08-20T07:52:28.5443+08:00"
configs:
- key: monagent.mysql.monitor.user
value: mysql_monitor_user
valueType: string
- key: monagent.mysql.monitor.password
value: mysql_monitor_password
valueType: string
encrypted: true
- key: monagent.mysql.sql.port
value: 3306
valueType: int64
- key: monagent.mysql.host
value: 127.0.0.1
valueType: string
- key: monagent.ob.monitor.user
value: {monitor_user}
valueType: string
......@@ -31,3 +44,6 @@ configs:
- key: monagent.pipeline.node.status
value: {host_monitor_status}
valueType: string
- key: monagent.pipeline.mysql.status
value: inactive
valueType: string
mysqldInput: &mysqldInput
plugin: mysqldInput
config:
timeout: 10s
pluginConfig:
dsn: ${monagent.mysql.monitor.user}:${monagent.mysql.monitor.password}@(${monagent.mysql.host}:${monagent.mysql.sql.port})/
retagProcessor: &retagProcessor
plugin: retagProcessor
config:
timout: 10s
pluginConfig:
newTags:
app: MYSQL
svr_ip: ${monagent.host.ip}
prometheusExporter: &prometheusExporter
plugin: prometheusExporter
config:
timout: 10s
pluginConfig:
formatType: fmtText
modules:
- module: monitor.mysql
moduleType: monagent.pipeline
process: monagent
config:
name: monitor.mysql
status: ${monagent.pipeline.mysql.status}
pipelines:
- name: mysql_info
config:
scheduleStrategy: trigger
exposeUrl: /metrics/mysql
structure:
inputs:
- <<: *mysqldInput
processors:
- <<: *retagProcessor
exporter:
<<: *prometheusExporter
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册