From 63c27f9aeca1c4c11e0ddbbf5f73dcd49c2e6e56 Mon Sep 17 00:00:00 2001 From: wanghe Date: Fri, 8 Dec 2023 11:57:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=20Grafana=20(#691)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/grafana/10.2.2/data.yml | 10 ++++++++++ apps/grafana/10.2.2/docker-compose.yml | 18 ++++++++++++++++++ apps/grafana/README.md | 19 +++++++++++++++++++ apps/grafana/data.yml | 20 ++++++++++++++++++++ apps/grafana/logo.png | Bin 0 -> 4458 bytes 5 files changed, 67 insertions(+) create mode 100644 apps/grafana/10.2.2/data.yml create mode 100644 apps/grafana/10.2.2/docker-compose.yml create mode 100644 apps/grafana/README.md create mode 100644 apps/grafana/data.yml create mode 100644 apps/grafana/logo.png diff --git a/apps/grafana/10.2.2/data.yml b/apps/grafana/10.2.2/data.yml new file mode 100644 index 00000000..fd185de9 --- /dev/null +++ b/apps/grafana/10.2.2/data.yml @@ -0,0 +1,10 @@ +additionalProperties: + formFields: + - default: 3000 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number diff --git a/apps/grafana/10.2.2/docker-compose.yml b/apps/grafana/10.2.2/docker-compose.yml new file mode 100644 index 00000000..391cd62d --- /dev/null +++ b/apps/grafana/10.2.2/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3' +services: + grafana: + container_name: ${CONTAINER_NAME} + image: grafana/grafana:10.2.2 + restart: always + user: '0' + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:3000" + volumes: + - ./data:/var/lib/grafana + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true diff --git a/apps/grafana/README.md b/apps/grafana/README.md new file mode 100644 index 00000000..c8cdd2d4 --- /dev/null +++ b/apps/grafana/README.md @@ -0,0 +1,19 @@ +# 默认账户密码 + +``` +username:admin +password:admin +``` + +# Grafana + +**Grafana** 允许您查询、可视化、警报和了解您的指标,无论它们存储在何处。与您的团队创建、探索和共享仪表板,并培养数据驱动的文化。 + +## 主要功能: + +- **可视化**:快速、灵活的客户端图表,具有多种选项。面板插件提供了许多不同的方式来可视化指标和日志。 +- **动态仪表板**:使用显示为仪表板顶部下拉菜单的模板变量创建动态且可重用的仪表板。 +- **探索指标**:通过即席查询和动态钻取来探索数据。拆分视图并并排比较不同的时间范围、查询和数据源。 +- **探索日志**:体验从指标切换到带有保留标签过滤器的日志的魔力。快速搜索所有日志或实时流式传输它们。 +- **警报**:直观地定义最重要指标的警报规则。Grafana 将持续评估并向 Slack、PagerDuty、VictorOps、OpsGenie 等系统发送通知。 +- **混合数据源**:在同一个图表中混合不同的数据源!您可以为每个查询指定数据源。这甚至适用于自定义数据源。 \ No newline at end of file diff --git a/apps/grafana/data.yml b/apps/grafana/data.yml new file mode 100644 index 00000000..dd25b82c --- /dev/null +++ b/apps/grafana/data.yml @@ -0,0 +1,20 @@ +name: Grafana +tags: + - 实用工具 +title: 用于监控和可观察的开源平台 +type: 实用工具 +description: 用于监控和可观察的开源平台 +additionalProperties: + key: grafana + name: Grafana + tags: + - Tool + shortDescZh: 用于监控和可观察的开源平台 + shortDescEn: The open-source platform for monitoring and observability + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://grafana.com/ + github: https://github.com/grafana/grafana + document: https://grafana.com/docs/grafana \ No newline at end of file diff --git a/apps/grafana/logo.png b/apps/grafana/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..e6f7ea057756998ee2520580508af602b57e75b9 GIT binary patch literal 4458 zcmV-w5tZ(VP)d}; zC$1#hoOXgCJJVCuB26xkpPyw}mfiXI_>mv^kstYyANf0keJ~beNfZa{uYw)Kk>{m< z4{FJC7>3s*bJ$;k`GY$tVZMe*>T>$%+oNV~dPT?pI`pEy05$O(c~>QfntgZFV9-wL zg(K)NB(A@;Wq{vEuQQQce{1ox3C|LB`kj3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