monitor_ob_log.yaml 1.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
errorLogInput: &errorLogInput
  plugin: errorLogInput
  config:
    timeout: 10s
    pluginConfig:
      expireTime: 300s
      collectDelay: 1s
      logServiceConfig:
        rootservice:
          logConfig:
            logDir: ${monagent.ob.install.path}/log
            logFileName: rootservice.log.wf
        election:
          logConfig:
            logDir: ${monagent.ob.install.path}/log
            logFileName: election.log.wf
        observer:
          logConfig:
            logDir: ${monagent.ob.install.path}/log
            logFileName: observer.log.wf


retagProcessor: &retagProcessor
  plugin: retagProcessor
  config:
    timout: 10s
    pluginConfig:
      newTags:
        app: OB
        svr_ip: ${monagent.host.ip}
        obzone: ${monagent.ob.zone.name}
        ob_cluster_id: ${monagent.ob.cluster.id}
        ob_cluster_name: ${monagent.ob.cluster.name}

alertmanagerOutput: &alertmanagerOutput
  plugin: alertmanagerOutput
  config:
    timout: 10s
    pluginConfig:
      address: ${monagent.alertmanager.address}
      batchCount: 100
      httpTimeout: 10s
      retryTimes: 3

modules:
  - module: monitor.ob.log
    moduleType: monagent.pipeline
    process: monagent
    config:
      name: monitor.ob.log
      status: ${monagent.pipeline.ob.log.status}
      pipelines:
        - name: node_info
          config:
            scheduleStrategy: periodic
            period: 5s
          structure:
            inputs:
              - <<: *errorLogInput
            processors:
              - <<: *retagProcessor
            output:
              <<: *alertmanagerOutput