platforms:
- type: GCE
  launch_stage: GA
  install_documentation_url: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/third-party/kafka
  agent_requirement:
    logs_minimum_supported_version:
      major: 2
      minor: 10
      patch: 0
    metrics_minimum_supported_version:
      major: 2
      minor: 10
      patch: 0
  detections:
  - characteristic_log:
      log_name_regex: kafka
  - characteristic_metric:
      metric_type: workload.googleapis.com/kafka.message.count
  default_logs:
  - name: kafka
    fields:
    - name: jsonPayload.message
      type: string
      description: Log message, including detailed stacktrace where provided
    - name: jsonPayload.source
      type: string
      description: Module and/or thread where the log originated.
    - name: jsonPayload.logger
      type: string
      description: Name of the logger where the log originated.
    - name: jsonPayload.level
      type: string
      description: Log entry level
    - name: severity
      type: string
      description: ''
  default_metrics:
  - name: workload.googleapis.com/kafka.isr.operation.count
    value_type: INT64
    kind: CUMULATIVE
    labels:
    - operation
  - name: workload.googleapis.com/kafka.message.count
    value_type: INT64
    kind: CUMULATIVE
    labels: []
  - name: workload.googleapis.com/kafka.network.io
    value_type: INT64
    kind: CUMULATIVE
    labels:
    - state
  - name: workload.googleapis.com/kafka.partition.count
    value_type: INT64
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/kafka.partition.offline
    value_type: INT64
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/kafka.partition.under_replicated
    value_type: INT64
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/kafka.purgatory.size
    value_type: INT64
    kind: GAUGE
    labels:
    - type
  - name: workload.googleapis.com/kafka.request.count
    value_type: INT64
    kind: CUMULATIVE
    labels:
    - type
  - name: workload.googleapis.com/kafka.request.failed
    value_type: INT64
    kind: CUMULATIVE
    labels:
    - type
  - name: workload.googleapis.com/kafka.request.time.total
    value_type: INT64
    kind: CUMULATIVE
    labels:
    - type
