image:
  repository: sapcc/kubernetes-eventexporter
  tag: 0.2.0
  pullPolicy: IfNotPresent

resources:
  requests:
    cpu: 50m
    memory: 20Mi
  limits:
    cpu: 200m
    memory: 100Mi

metrics:
  port: "9102"
  config:
    config.yaml: |-
      metrics:
      - name: volume_mount_error_total
        event_matcher:
        - key: InvolvedObject.Kind
          expr: Pod
        - key: Reason
          expr: FailedAttachVolume
        - key: Type
          expr: Warning
        - key: Source.Component
          expr: attachdetach.*
        labels:
          node: Object.Spec.NodeName
      - name: volume_mount_success_total
        event_matcher:
        - key: InvolvedObject.Kind
          expr: Pod
        - key: Message
          expr: MountVolume.SetUp succeeded for volume .pvc-.*
        - key: Reason
          expr: SuccessfulMountVolume
        labels:
          node: Source.Host
image:
  repository: sapcc/kubernetes-eventexporter
  tag: 0.3.1
  pullPolicy: IfNotPresent

resources:
  requests:
    cpu: 50m
    memory: 20Mi
  limits:
    cpu: 200m
    memory: 100Mi

metrics:
  port: "9102"
  config:
    config.yaml: |-
      metrics:
      - name: volume_mount_error_total
        event_matcher:
        - key: InvolvedObject.Kind
          expr: Pod
        - key: Reason
          expr: (FailedAttachVolume|FailedMount)
        - key: Type
          expr: Warning
        - key: Source.Component
          expr: attachdetach.*
        labels:
          node: Object.Spec.NodeName
      - name: volume_mount_success_total
        event_matcher:
        - key: InvolvedObject.Kind
          expr: Pod
        - key: Message
          expr: MountVolume.SetUp succeeded for volume .pvc-.*
        - key: Reason
          expr: SuccessfulMountVolume
        labels:
          node: Source.Host
Fix attach volume event export on 1.7, update eventexporter to 0.3.1
Fix attach volume event export on 1.7, update eventexporter to 0.3.1
