platforms:
- type: GCE
  launch_stage: GA
  install_documentation_url: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/third-party/hadoop
  agent_requirement:
    logs_minimum_supported_version:
      major: 2
      minor: 11
      patch: 0
    metrics_minimum_supported_version:
      major: 2
      minor: 11
      patch: 0
  detections:
  - characteristic_log:
      log_name_regex: hadoop
  - characteristic_metric:
      metric_type: workload.googleapis.com/hadoop.name_node.capacity.usage
  default_logs:
  - name: hadoop
    fields:
    - name: jsonPayload.message
      type: string
      description: Log message
    - name: jsonPayload.source
      type: string
      description: The source Java class of the log entry
    - name: jsonPayload.severity
      type: string
      description: Log entry level
    - name: severity
      type: string
      description: ''
  default_metrics:
  - name: workload.googleapis.com/hadoop.name_node.block.corrupt
    value_type: INT64
    kind: GAUGE
    labels:
    - node_name
  - name: workload.googleapis.com/hadoop.name_node.block.count
    value_type: INT64
    kind: GAUGE
    labels:
    - node_name
  - name: workload.googleapis.com/hadoop.name_node.block.missing
    value_type: INT64
    kind: GAUGE
    labels:
    - node_name
  - name: workload.googleapis.com/hadoop.name_node.capacity.limit
    value_type: INT64
    kind: GAUGE
    labels:
    - node_name
  - name: workload.googleapis.com/hadoop.name_node.capacity.usage
    value_type: INT64
    kind: GAUGE
    labels:
    - node_name
  - name: workload.googleapis.com/hadoop.name_node.data_node.count
    value_type: INT64
    kind: GAUGE
    labels:
    - node_name
    - state
  - name: workload.googleapis.com/hadoop.name_node.file.load
    value_type: INT64
    kind: GAUGE
    labels:
    - node_name
  - name: workload.googleapis.com/hadoop.name_node.volume.failed
    value_type: INT64
    kind: GAUGE
    labels:
    - node_name
