id: kubelet-metrics

info:
  name: Kubelet Metrics
  author: sharath
  severity: info
  description: Scans for kubelet metrics
  metadata:
    max-request: 1
  tags: tech,k8s,kubernetes,devops,kubelet

http:
  - method: GET
    path:
      - "{{BaseURL}}/metrics"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "# HELP "
          - "# TYPE "
        condition: and

      - type: regex
        part: header
        regex:
          - "text/plain"

      - type: status
        status:
          - 200

# digest: 4a0a0047304502206304fdefa549420a95e8e8416fa7bbda5e97a730ad45bc39d1f08514ea297377022100b996ee8165fd474d604f554a5ec3768980c2b5c63c8b6edf432767ba64f8778f:922c64590222798bb761d5b6d8e72950
