-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
4,684 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dependencies: | ||
- name: grafana | ||
repository: https://grafana.github.io/helm-charts | ||
version: 8.5.8 | ||
digest: sha256:b179fe8efb2cf11a027a8c49ee1cba728dab1be054f625c92fc9fdfffd0f1ab5 | ||
generated: "2024-10-26T14:46:51.314884+08:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ apiVersion: v2 | |
name: greptimedb-cluster | ||
description: A Helm chart for deploying GreptimeDB cluster in Kubernetes. | ||
type: application | ||
version: 0.2.23 | ||
version: 0.2.24 | ||
appVersion: 0.9.5 | ||
home: https://github.com/GreptimeTeam/greptimedb | ||
sources: | ||
|
@@ -17,3 +17,9 @@ maintainers: | |
- name: zyy17 | ||
email: [email protected] | ||
url: https://github.com/zyy17 | ||
|
||
dependencies: | ||
- name: grafana | ||
version: "8.5.8" | ||
repository: https://grafana.github.io/helm-charts | ||
condition: grafana.enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
293 changes: 293 additions & 0 deletions
293
charts/greptimedb-cluster/dashboards/greptimedb-cluster-logs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,293 @@ | ||
{ | ||
"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, | ||
"id": 2, | ||
"links": [], | ||
"panels": [ | ||
{ | ||
"datasource": { | ||
"default": false, | ||
"type": "mysql", | ||
"uid": "${datasource}" | ||
}, | ||
"gridPos": { | ||
"h": 20, | ||
"w": 24, | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"id": 1, | ||
"options": { | ||
"dedupStrategy": "none", | ||
"enableLogDetails": true, | ||
"prettifyLogMessage": false, | ||
"showCommonLabels": false, | ||
"showLabels": false, | ||
"showTime": true, | ||
"sortOrder": "Descending", | ||
"wrapLogMessage": false | ||
}, | ||
"targets": [ | ||
{ | ||
"dataset": "greptime_private", | ||
"datasource": { | ||
"type": "mysql", | ||
"uid": "${datasource}" | ||
}, | ||
"editorMode": "code", | ||
"format": "table", | ||
"rawQuery": true, | ||
"rawSql": "SELECT `timestamp`, CONCAT('[', `level`, ']', ' ', `target`, ' ', `message`),\n `role`,\n `pod`,\n `pod_ip`,\n `namespace`,\n `cluster`,\n `err`,\n `file`,\n `module_path`\nFROM\n `_gt_logs`\nWHERE\n (\n \"$level\" = \"'all'\"\n OR `level` IN ($level)\n ) \n AND (\n \"$role\" = \"'all'\"\n OR `role` IN ($role)\n )\n AND (\n \"$pods\" = \"'all'\"\n OR `pod` IN ($pods)\n )\n AND (\n \"$search\" = \"\"\n OR MATCHES(`message`, \"$search\")\n )\n AND $__timeFilter(`timestamp`)\nORDER BY\n `timestamp`\nLIMIT $limit;\n", | ||
"refId": "A", | ||
"sql": { | ||
"columns": [ | ||
{ | ||
"parameters": [], | ||
"type": "function" | ||
} | ||
], | ||
"groupBy": [ | ||
{ | ||
"property": { | ||
"type": "string" | ||
}, | ||
"type": "groupBy" | ||
} | ||
], | ||
"limit": 50 | ||
} | ||
} | ||
], | ||
"title": "Logs", | ||
"type": "logs" | ||
} | ||
], | ||
"schemaVersion": 39, | ||
"tags": [], | ||
"templating": { | ||
"list": [ | ||
{ | ||
"current": { | ||
"selected": false, | ||
"text": "greptimedb-cluster-logs", | ||
"value": "ddxce12e8bl6oe" | ||
}, | ||
"hide": 0, | ||
"includeAll": false, | ||
"multi": false, | ||
"name": "datasource", | ||
"options": [], | ||
"query": "mysql", | ||
"queryValue": "", | ||
"refresh": 1, | ||
"regex": "", | ||
"skipUrlSync": false, | ||
"type": "datasource" | ||
}, | ||
{ | ||
"allValue": "'all'", | ||
"current": { | ||
"selected": true, | ||
"text": [ | ||
"All" | ||
], | ||
"value": [ | ||
"$__all" | ||
] | ||
}, | ||
"hide": 0, | ||
"includeAll": true, | ||
"label": "level", | ||
"multi": true, | ||
"name": "level", | ||
"options": [ | ||
{ | ||
"selected": true, | ||
"text": "All", | ||
"value": "$__all" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "INFO", | ||
"value": "INFO" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "ERROR", | ||
"value": "ERROR" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "WARN", | ||
"value": "WARN" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "DEBUG", | ||
"value": "DEBUG" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "TRACE", | ||
"value": "TRACE" | ||
} | ||
], | ||
"query": "INFO,ERROR,WARN,DEBUG,TRACE", | ||
"queryValue": "", | ||
"skipUrlSync": false, | ||
"type": "custom" | ||
}, | ||
{ | ||
"allValue": "'all'", | ||
"current": { | ||
"selected": true, | ||
"text": [ | ||
"All" | ||
], | ||
"value": [ | ||
"$__all" | ||
] | ||
}, | ||
"hide": 0, | ||
"includeAll": true, | ||
"label": "role", | ||
"multi": true, | ||
"name": "role", | ||
"options": [ | ||
{ | ||
"selected": true, | ||
"text": "All", | ||
"value": "$__all" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "datanode", | ||
"value": "datanode" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "frontend", | ||
"value": "frontend" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "meta", | ||
"value": "meta" | ||
} | ||
], | ||
"query": "datanode,frontend,meta", | ||
"queryValue": "", | ||
"skipUrlSync": false, | ||
"type": "custom" | ||
}, | ||
{ | ||
"allValue": "'all'", | ||
"current": { | ||
"selected": true, | ||
"text": [ | ||
"All" | ||
], | ||
"value": [ | ||
"$__all" | ||
] | ||
}, | ||
"datasource": { | ||
"type": "mysql", | ||
"uid": "${datasource}" | ||
}, | ||
"definition": "SELECT DISTINCT pod FROM _gt_logs WHERE (\"$role\" = \"'all'\" OR `role` IN ($role))", | ||
"hide": 0, | ||
"includeAll": true, | ||
"multi": true, | ||
"name": "pods", | ||
"options": [], | ||
"query": "SELECT DISTINCT pod FROM _gt_logs WHERE (\"$role\" = \"'all'\" OR `role` IN ($role))", | ||
"refresh": 1, | ||
"regex": "", | ||
"skipUrlSync": false, | ||
"sort": 0, | ||
"type": "query" | ||
}, | ||
{ | ||
"current": { | ||
"selected": true, | ||
"text": "1000", | ||
"value": "1000" | ||
}, | ||
"hide": 0, | ||
"includeAll": false, | ||
"label": "limit", | ||
"multi": false, | ||
"name": "limit", | ||
"options": [ | ||
{ | ||
"selected": true, | ||
"text": "1000", | ||
"value": "1000" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "3000", | ||
"value": "3000" | ||
}, | ||
{ | ||
"selected": false, | ||
"text": "5000", | ||
"value": "5000" | ||
} | ||
], | ||
"query": "1000,3000,5000", | ||
"queryValue": "", | ||
"skipUrlSync": false, | ||
"type": "custom" | ||
}, | ||
{ | ||
"current": { | ||
"selected": false, | ||
"text": "", | ||
"value": "" | ||
}, | ||
"hide": 0, | ||
"label": "search", | ||
"name": "search", | ||
"options": [ | ||
{ | ||
"selected": true, | ||
"text": "", | ||
"value": "" | ||
} | ||
], | ||
"query": "", | ||
"skipUrlSync": false, | ||
"type": "textbox" | ||
} | ||
] | ||
}, | ||
"time": { | ||
"from": "now-6h", | ||
"to": "now" | ||
}, | ||
"timepicker": {}, | ||
"timezone": "browser", | ||
"title": "GreptimeDB Cluster Logs", | ||
"uid": "edx5veo4rd3wge", | ||
"version": 4, | ||
"weekStart": "" | ||
} |
Oops, something went wrong.