Untitled conversation
- User
{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "links": [], "panels": [ { "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "fillOpacity": 80, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineWidth": 1, "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 9, "w": 18, "x": 0, "y": 0 }, "id": 1, "options": { "barRadius": 0, "barWidth": 0.97, "fullHighlight": false, "groupWidth": 0.7, "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "orientation": "auto", "showValue": "auto", "stacking": "none", "tooltip": { "maxHeight": 600, "mode": "single", "sort": "none" }, "xTickLabelRotation": 0, "xTickLabelSpacing": 0 }, "targets": [ { "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "editorMode": "code", "expr": "sum by (attack_type) (\r\n count_over_time({type="attack"}[undefinedjob", container=~"container\"} |~ \"(?i)searchable_pattern"", "hide": false, "queryType": "range", "refId": "B" } ], "title": "Search Result", "type": "logs" } ], "refresh": "1m", "schemaVersion": 39, "tags": [ "loki", "docker" ], "templating": { "list": [ { "allValue": ".", "current": { "selected": false, "text": "containerlogs", "value": "containerlogs" }, "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "definition": "", "hide": 0, "includeAll": false, "label": "Job", "multi": false, "name": "job", "options": [], "query": { "label": "job", "refId": "LokiVariableQueryEditor-VariableQuery", "stream": "{job=~".+"}", "type": 1 }, "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": ".", "current": { "selected": false, "text": "All", "value": "__all" }, "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "definition": "", "hide": 0, "includeAll": true, "label": "Container", "multi": false, "name": "container", "options": [], "query": { "label": "container", "refId": "LokiVariableQueryEditor-VariableQuery", "stream": "{job=\"job"}", "type": 1 }, "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { "current": { "selected": true, "text": "", "value": "" }, "hide": 0, "label": "Search (case insensitive)", "name": "searchable_pattern", "options": [ { "selected": true, "text": "", "value": "" } ], "query": "", "skipUrlSync": false, "type": "textbox" } ] }, "time": { "from": "now-1h", "to": "now" }, "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "Container Log Search", "uid": "7ecZpUkRk", "version": 4, "weekStart": "" }
- Assistant