[{
  "apiVersion": "influxdata.com/v2alpha1",
  "kind": "CheckThreshold",
  "metadata": {
    "name": "alarm-nsm-disk"
  },
  "spec": {
    "description": "Percent used space on the nsm partition of at least one node has exceeded the alarm threshold.",
    "every": "1m0s",
    "name": "NSM Disk High Usage",
    "query": "from(bucket: \"telegraf/so_short_term\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r[\"_measurement\"] == \"disk\")\n  |> filter(fn: (r) => r[\"path\"] == \"/nsm\")\n  |> filter(fn: (r) => r[\"_field\"] == \"used_percent\")\n  |> aggregateWindow(every: 1m, fn: max, createEmpty: false)\n  |> yield(name: \"max\")",
    "status": "active",
    "statusMessageTemplate": "Check: ${ r._check_name } is: ${ r._level }",
    "thresholds": [
      {
        "level": "CRIT",
        "type": "greater",
        "value": 95
      },
      {
        "level": "INFO",
        "type": "greater",
        "value": 85
      },
      {
        "level": "WARN",
        "type": "greater",
        "value": 90
      }
    ]
  }
}]