Uploaded image for project: 'OpenShift Monitoring'
  1. OpenShift Monitoring
  2. MON-2903

On/Off switch of systemd Collector in Node Exporter

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • MON Sprint 237, MON Sprint 239

      We will add a section for "systemd" Collector in "nodeExporter.collectors" section in CMO configmap. 

      It has a boolean field "enabled", the default value is false.

      apiVersion: v1
      kind: ConfigMap
      metadata: 
        name: cluster-monitoring-config
        namespace: openshift-monitoring
      data: 
      
        config.yaml: |
      
          nodeExporter: 
            collectors: 
              # enablea collector which is disabled by default
              systemd: 
                enabled: true
      

       

      To avoid too many metrics are scraped from systemd units, the collector should collect metrics on selected units only. We put regex patterns of the units to collect in the list `collectors.systemd.units`.
       
       

      apiVersion: v1
      kind: ConfigMap
      metadata: 
        name: cluster-monitoring-config
        namespace: openshift-monitoring
      data: 
        config.yaml: |    
          nodeExporter: 
            collectors: 
              # enable a collector which is disabled by default
              systemd: 
                enabled: true
                units: 
                - iscsi-init.*
                - sshd.service
      

       

       

      refer to: https://issues.redhat.com/browse/OBSDA-214

              hasun@redhat.com Haoyu Sun
              hasun@redhat.com Haoyu Sun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: