Skip to content

Instantly share code, notes, and snippets.

@RandomCivil
Last active August 12, 2020 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RandomCivil/b8c6b5ba7ae5a132ac53fde9c118a7d5 to your computer and use it in GitHub Desktop.
Save RandomCivil/b8c6b5ba7ae5a132ac53fde9c118a7d5 to your computer and use it in GitHub Desktop.
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "Loki",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"limit": 100,
"name": "Annotations & Alerts",
"showIn": 0,
"target": {},
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 25,
"iteration": 1597245768171,
"links": [],
"panels": [
{
"datasource": "Loki",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"gridPos": {
"h": 20,
"w": 24,
"x": 0,
"y": 0
},
"id": 6,
"options": {
"showLabels": true,
"showTime": false,
"sortOrder": "Descending",
"wrapLogMessage": true
},
"pluginVersion": "7.1.3",
"targets": [
{
"expr": "{namespace=\"$namespace\",container=~\".*$container.*\",$search}$filter",
"legendFormat": "",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "${container}",
"type": "logs"
}
],
"schemaVersion": 26,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": null,
"current": {
"selected": false,
"text": "default",
"value": "default"
},
"datasource": "prometheus",
"definition": "label_values(container_memory_usage_bytes,container_label_io_kubernetes_pod_namespace)",
"hide": 0,
"includeAll": false,
"label": "namespace",
"multi": false,
"name": "namespace",
"options": [],
"query": "label_values(container_memory_usage_bytes,container_label_io_kubernetes_pod_namespace)",
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {
"selected": true,
"text": "openresty",
"value": "openresty"
},
"datasource": "prometheus",
"definition": "label_values(container_memory_usage_bytes{container_label_io_kubernetes_pod_namespace='$namespace'},container_label_io_kubernetes_container_name)",
"hide": 0,
"includeAll": false,
"label": "container",
"multi": false,
"name": "container",
"options": [],
"query": "label_values(container_memory_usage_bytes{container_label_io_kubernetes_pod_namespace='$namespace'},container_label_io_kubernetes_container_name)",
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
"selected": false,
"text": "stream=\"stdout\"",
"value": "stream=\"stdout\""
},
"hide": 0,
"label": "search",
"name": "search",
"options": [
{
"selected": true,
"text": "stream=\"stdout\"",
"value": "stream=\"stdout\""
}
],
"query": "stream=\"stdout\"",
"skipUrlSync": false,
"type": "textbox"
},
{
"current": {
"selected": false,
"text": "",
"value": ""
},
"hide": 0,
"label": "filter",
"name": "filter",
"options": [
{
"selected": true,
"text": "",
"value": ""
}
],
"query": "",
"skipUrlSync": false,
"type": "textbox"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "loki",
"uid": "nHAsi_VGz",
"version": 22
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment