feat:添加grafana到测试

This commit is contained in:
okxlin 2023-07-06 20:20:54 +08:00
parent 9dba4343dd
commit cb8a1c1849
9 changed files with 145 additions and 0 deletions

View File

@ -0,0 +1,3 @@
CONTAINER_NAME="grafana"
PANEL_APP_PORT_HTTP="40038"
DATA_PATH="./data"

View File

@ -0,0 +1,17 @@
additionalProperties:
formFields:
- default: 40038
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text

View File

@ -0,0 +1,18 @@
version: '3'
services:
grafana:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:3000"
volumes:
- "${DATA_PATH}:/var/lib/grafana"
image: grafana/grafana:10.0.1
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

49
apps/grafana/README.md Normal file
View File

@ -0,0 +1,49 @@
![Grafana](https://raw.githubusercontent.com/grafana/grafana/main/docs/logo-horizontal.png)
The open-source platform for monitoring and observability
[![License](https://img.shields.io/github/license/grafana/grafana)](LICENSE)
[![Drone](https://drone.grafana.net/api/badges/grafana/grafana/status.svg)](https://drone.grafana.net/grafana/grafana)
[![Go Report Card](https://goreportcard.com/badge/github.com/grafana/grafana)](https://goreportcard.com/report/github.com/grafana/grafana)
Grafana allows you to query, visualize, alert on and understand your metrics no matter where they are stored. Create, explore, and share dashboards with your team and foster a data-driven culture:
- **Visualizations:** Fast and flexible client side graphs with a multitude of options. Panel plugins offer many different ways to visualize metrics and logs.
- **Dynamic Dashboards:** Create dynamic & reusable dashboards with template variables that appear as dropdowns at the top of the dashboard.
- **Explore Metrics:** Explore your data through ad-hoc queries and dynamic drilldown. Split view and compare different time ranges, queries and data sources side by side.
- **Explore Logs:** Experience the magic of switching from metrics to logs with preserved label filters. Quickly search through all your logs or streaming them live.
- **Alerting:** Visually define alert rules for your most important metrics. Grafana will continuously evaluate and send notifications to systems like Slack, PagerDuty, VictorOps, OpsGenie.
- **Mixed Data Sources:** Mix different data sources in the same graph! You can specify a data source on a per-query basis. This works for even custom datasources.
## Get started
- [Get Grafana](https://grafana.com/get)
- [Installation guides](https://grafana.com/docs/grafana/latest/setup-grafana/installation/)
Unsure if Grafana is for you? Watch Grafana in action on [play.grafana.org](https://play.grafana.org/)!
## Documentation
The Grafana documentation is available at [grafana.com/docs](https://grafana.com/docs/).
## Contributing
If you're interested in contributing to the Grafana project:
- Start by reading the [Contributing guide](https://github.com/grafana/grafana/blob/HEAD/CONTRIBUTING.md).
- Learn how to set up your local environment, in our [Developer guide](https://github.com/grafana/grafana/blob/HEAD/contribute/developer-guide.md).
- Explore our [beginner-friendly issues](https://github.com/grafana/grafana/issues?q=is%3Aopen+is%3Aissue+label%3A%22beginner+friendly%22).
- Look through our [style guide and Storybook](https://developers.grafana.com/ui/latest/index.html).
## Get involved
- Follow [@grafana on Twitter](https://twitter.com/grafana/).
- Read and subscribe to the [Grafana blog](https://grafana.com/blog/).
- If you have a specific question, check out our [discussion forums](https://community.grafana.com/).
- For general discussions, join us on the [official Slack](https://slack.grafana.com) team.
This project is tested with [BrowserStack](https://www.browserstack.com/)
## License
Grafana is distributed under [AGPL-3.0-only](LICENSE). For Apache-2.0 exceptions, see [LICENSING.md](https://github.com/grafana/grafana/blob/HEAD/LICENSING.md).

20
apps/grafana/data.yml.bak Normal file
View File

@ -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

View File

@ -0,0 +1,3 @@
CONTAINER_NAME="grafana"
PANEL_APP_PORT_HTTP="40038"
DATA_PATH="./data"

View File

@ -0,0 +1,17 @@
additionalProperties:
formFields:
- default: 40038
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text

View File

@ -0,0 +1,18 @@
version: '3'
services:
grafana:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:3000"
volumes:
- "${DATA_PATH}:/var/lib/grafana"
image: grafana/grafana:latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

BIN
apps/grafana/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB