platforms:
- type: GCE
  launch_stage: GA
  version: 1
  install_documentation_url: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/third-party/mssql
  agent_requirement:
    metrics_minimum_supported_version:
      major: 2
      minor: 10
      patch: 0
  detections:
  - characteristic_metric:
      metric_type: agent.googleapis.com/mssql/connections/user
  default_metrics:
  - name: agent.googleapis.com/mssql/connections/user
    value_type: DOUBLE
    kind: GAUGE
    labels: []
  - name: agent.googleapis.com/mssql/transaction_rate
    value_type: DOUBLE
    kind: GAUGE
    labels: []
  - name: agent.googleapis.com/mssql/write_transaction_rate
    value_type: DOUBLE
    kind: GAUGE
    labels: []
- type: GCE
  launch_stage: GA
  version: 2
  install_documentation_url: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/third-party/mssql
  agent_requirement:
    metrics_minimum_supported_version:
      major: 2
      minor: 18
      patch: 1
  detections:
  - characteristic_metric:
      metric_type: workload.googleapis.com/sqlserver.user.connection.count
  default_metrics:
  - name: workload.googleapis.com/sqlserver.user.connection.count
    value_type: INT64
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/sqlserver.lock.wait_time.avg
    value_type: DOUBLE
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/sqlserver.lock.wait.rate
    value_type: DOUBLE
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/sqlserver.batch.request.rate
    value_type: DOUBLE
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/sqlserver.batch.sql_compilation.rate
    value_type: DOUBLE
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/sqlserver.batch.sql_recompilation.rate
    value_type: DOUBLE
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/sqlserver.page.buffer_cache.hit_ratio
    value_type: DOUBLE
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/sqlserver.page.life_expectancy
    value_type: INT64
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/sqlserver.page.split.rate
    value_type: DOUBLE
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/sqlserver.page.lazy_write.rate
    value_type: DOUBLE
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/sqlserver.page.checkpoint.flush.rate
    value_type: DOUBLE
    kind: GAUGE
    labels: []
  - name: workload.googleapis.com/sqlserver.page.operation.rate
    value_type: DOUBLE
    kind: GAUGE
    labels:
    - type
  - name: workload.googleapis.com/sqlserver.transaction_log.growth.count
    value_type: INT64
    kind: CUMULATIVE
    labels:
    - database
  - name: workload.googleapis.com/sqlserver.transaction_log.shrink.count
    value_type: INT64
    kind: CUMULATIVE
    labels:
    - database
  - name: workload.googleapis.com/sqlserver.transaction_log.percent_used
    value_type: INT64
    kind: GAUGE
    labels:
    - database
  - name: workload.googleapis.com/sqlserver.transaction_log.flush.wait.rate
    value_type: DOUBLE
    kind: GAUGE
    labels:
    - database
  - name: workload.googleapis.com/sqlserver.transaction_log.flush.rate
    value_type: DOUBLE
    kind: GAUGE
    labels:
    - database
  - name: workload.googleapis.com/sqlserver.transaction_log.flush.data.rate
    value_type: DOUBLE
    kind: GAUGE
    labels:
    - database
  - name: workload.googleapis.com/sqlserver.transaction.rate
    value_type: DOUBLE
    kind: GAUGE
    labels:
    - database
  - name: workload.googleapis.com/sqlserver.transaction.write.rate
    value_type: DOUBLE
    kind: GAUGE
    labels:
    - database
