提交 c87b2f18 编写于 作者: C chris-sun-star

Merge branch 'log_alarm' of github.com:chris-sun-star/obagent into log_alarm

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
......@@ -40,3 +53,6 @@ configs:
- key: monagent.alertmanager.address
value: {alertmanager_address}
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.
先完成此消息的编辑!
想要评论请 注册