Advertisement
bm_rec

IDP grafana

Sep 21st, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.34 KB | None | 0 0
  1. {
  2.   "alert": {
  3.     "conditions": [
  4.       {
  5.         "evaluator": {
  6.           "params": [
  7.             5000
  8.           ],
  9.           "type": "gt"
  10.         },
  11.         "operator": {
  12.           "type": "and"
  13.         },
  14.         "query": {
  15.           "params": [
  16.             "A",
  17.             "5m",
  18.             "now"
  19.           ]
  20.         },
  21.         "reducer": {
  22.           "params": [],
  23.           "type": "max"
  24.         },
  25.         "type": "query"
  26.       },
  27.       {
  28.         "evaluator": {
  29.           "params": [
  30.             600
  31.           ],
  32.           "type": "gt"
  33.         },
  34.         "operator": {
  35.           "type": "or"
  36.         },
  37.         "query": {
  38.           "params": [
  39.             "B",
  40.             "5m",
  41.             "now"
  42.           ]
  43.         },
  44.         "reducer": {
  45.           "params": [],
  46.           "type": "max"
  47.         },
  48.         "type": "query"
  49.       }
  50.     ],
  51.     "executionErrorState": "alerting",
  52.     "frequency": "60s",
  53.     "handler": 1,
  54.     "message": "Количество переходов /idp/login/pwd/do за 5 минут достигло 5000 или 600 ошибочных.",
  55.     "name": "Requests /idp/login/pwd/do alert",
  56.     "noDataState": "alerting",
  57.     "notifications": []
  58.   },
  59.   "aliasColors": {
  60.     "408": "#6ed0e0",
  61.     "499": "#e5ac0e",
  62.     "502": "#890f02",
  63.     "Count": "#bf1b00",
  64.     "ERROR count": "#bf1b00"
  65.   },
  66.   "bars": false,
  67.   "dashLength": 10,
  68.   "dashes": false,
  69.   "datasource": "nlbext",
  70.   "fill": 1,
  71.   "gridPos": {
  72.     "h": 7,
  73.     "w": 24,
  74.     "x": 0,
  75.     "y": 0
  76.   },
  77.   "id": 2,
  78.   "legend": {
  79.     "avg": false,
  80.     "current": false,
  81.     "max": false,
  82.     "min": false,
  83.     "show": true,
  84.     "total": false,
  85.     "values": false
  86.   },
  87.   "lines": true,
  88.   "linewidth": 1,
  89.   "links": [],
  90.   "nullPointMode": "null",
  91.   "percentage": false,
  92.   "pointradius": 5,
  93.   "points": false,
  94.   "renderer": "flot",
  95.   "seriesOverrides": [
  96.     {
  97.       "alias": "Request count",
  98.       "yaxis": 1
  99.     }
  100.   ],
  101.   "spaceLength": 10,
  102.   "stack": false,
  103.   "steppedLine": false,
  104.   "targets": [
  105.     {
  106.       "alias": "Request count",
  107.       "bucketAggs": [
  108.         {
  109.           "field": "@timestamp",
  110.           "id": "2",
  111.           "settings": {
  112.             "interval": "auto",
  113.             "min_doc_count": 0,
  114.             "trimEdges": 0
  115.           },
  116.           "type": "date_histogram"
  117.         }
  118.       ],
  119.       "hide": false,
  120.       "metrics": [
  121.         {
  122.           "field": "select field",
  123.           "id": "1",
  124.           "type": "count"
  125.         }
  126.       ],
  127.       "query": "request_uri.keyword : \"/idp/login/pwd/do\"",
  128.       "refId": "A",
  129.       "timeField": "@timestamp"
  130.     },
  131.     {
  132.       "alias": "",
  133.       "bucketAggs": [
  134.         {
  135.           "fake": true,
  136.           "field": "status",
  137.           "id": "3",
  138.           "settings": {
  139.             "min_doc_count": 1,
  140.             "order": "desc",
  141.             "orderBy": "_term",
  142.             "size": "10"
  143.           },
  144.           "type": "terms"
  145.         },
  146.         {
  147.           "field": "@timestamp",
  148.           "id": "2",
  149.           "settings": {
  150.             "interval": "auto",
  151.             "min_doc_count": 0,
  152.             "trimEdges": 0
  153.           },
  154.           "type": "date_histogram"
  155.         }
  156.       ],
  157.       "hide": false,
  158.       "metrics": [
  159.         {
  160.           "field": "select field",
  161.           "id": "1",
  162.           "type": "count"
  163.         }
  164.       ],
  165.       "query": "request_uri.keyword : \"/idp/login/pwd/do\" AND status: [ 404 TO 526 ]",
  166.       "refId": "B",
  167.       "timeField": "@timestamp"
  168.     }
  169.   ],
  170.   "thresholds": [
  171.     {
  172.       "value": 5000,
  173.       "op": "gt",
  174.       "fill": true,
  175.       "line": true,
  176.       "colorMode": "critical"
  177.     }
  178.   ],
  179.   "timeFrom": null,
  180.   "timeShift": null,
  181.   "title": "Requests /idp/login/pwd/do",
  182.   "tooltip": {
  183.     "shared": true,
  184.     "sort": 0,
  185.     "value_type": "individual"
  186.   },
  187.   "type": "graph",
  188.   "xaxis": {
  189.     "buckets": null,
  190.     "mode": "time",
  191.     "name": null,
  192.     "show": true,
  193.     "values": []
  194.   },
  195.   "yaxes": [
  196.     {
  197.       "format": "short",
  198.       "label": null,
  199.       "logBase": 1,
  200.       "max": null,
  201.       "min": null,
  202.       "show": true
  203.     },
  204.     {
  205.       "format": "short",
  206.       "label": null,
  207.       "logBase": 1,
  208.       "max": null,
  209.       "min": null,
  210.       "show": true
  211.     }
  212.   ],
  213.   "yaxis": {
  214.     "align": false,
  215.     "alignLevel": null
  216.   }
  217. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement