generated from B1NARY-GR0UP/.github
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
1191c93
commit 3da50eb
Showing
17 changed files
with
313 additions
and
2,869 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
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,59 @@ | ||
![OPENALYSIS](./images/OPENALYSIS.png) | ||
|
||
OPENALYSIS 是一款对 GitHub 开源社区的数据进行可视化和分析的工具。 | ||
|
||
[![Go Report Card](https://goreportcard.com/badge/github.com/B1NARY-GR0UP/openalysis)](https://goreportcard.com/report/github.com/B1NARY-GR0UP/openalysis) | ||
|
||
## 概览 | ||
|
||
OPENALYSIS 只做了三件事: | ||
|
||
1. 设置定时任务通过 GitHub API ([REST API](https://docs.github.com/en/rest?apiVersion=2022-11-28) 和 [GraphQL API](https://docs.github.com/en/graphql)) 获取配置的组织或者仓库的数据; | ||
2. 将获取的数据整理并存储在 [MySQL](https://www.mysql.com/) 数据库中; | ||
3. 通过 [Grafana](https://grafana.com/grafana/) 查询数据库并将数据可视化为图表等形式; | ||
|
||
OPENALYSIS 提供了: | ||
|
||
- 一系列动态的 Grafana Dashboard 来对配置的组织,仓库,贡献者等不同维度的数据进行可视化和分析; | ||
- 一个命令行工具来快速启动和重启定时任务; | ||
- 一系列 API 来配置和使用这个工具; | ||
|
||
OPENALYSIS 可以让您对您所管理的或所在的开源社区的整体数据有一个概览,我们希望 OPENALYSIS 可以帮助您更好的对开源社区进行建设和发展。 | ||
|
||
## 部署 | ||
|
||
|
||
|
||
## 使用 | ||
|
||
|
||
|
||
## Dashboard Effect Display | ||
|
||
![example-1](./images/example-1.png) | ||
|
||
![example-2](./images/example-2.png) | ||
|
||
![example-3](./images/example-3.png) | ||
|
||
![example-3](./images/example-4.png) | ||
|
||
## 博客 | ||
|
||
- [如何对开源社区的数据进行可视化分析](https://juejin.cn/post/7359882185362948135) | ||
|
||
## 致谢 | ||
|
||
Sincere appreciation to the [CloudWeGo](https://github.com/cloudwego) community, without whose help this project would not have been possible. | ||
|
||
## 许可证 | ||
|
||
OPENALYSIS is distributed under the [Apache License 2.0](./LICENSE). The licenses of third party dependencies of OPENALYSIS are explained [here](./licenses). | ||
|
||
## 生态 | ||
|
||
<p align="center"> | ||
<img src="https://github.com/justlorain/justlorain/blob/main/images/BINARY-WEB-ECO.png" alt="BINARY-WEB-ECO"/> | ||
<br/><br/> | ||
OPENALYSIS is a Subproject of the <a href="https://github.com/B1NARY-GR0UP">BINARY WEB ECOLOGY</a> | ||
</p> |
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
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
File renamed without changes.
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,32 @@ | ||
# How to deploy? | ||
|
||
## Step 1: Create GitHub Token | ||
|
||
Create a [fine-grained personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token). | ||
|
||
## Step 2: Prepare Your Configuration File | ||
|
||
Check [How to prepare config file?](./how-to-prepare-config-file.md) for detail. | ||
|
||
## Step 3: Prepare MySQL | ||
|
||
Use [init.sql](../storage/sql/init.sql) to init tables. | ||
|
||
## Step 4: Prepare Grafana | ||
|
||
1. Add OPENALYSIS MySQL Datasource | ||
|
||
![add-mysql-datasource](../images/ttl-add-mysql-datasource.png) | ||
|
||
2. Import template in [template](../template) folder | ||
|
||
![import-dashboard-tmpl](../images/ttl-import-dashboard-tmpl.png) | ||
|
||
## Step 5: Start OPENALYSIS | ||
|
||
- Use command-line tool to start, check [How to use CMD tool?](../docs/how-to-use-cmd-tool.md) for detail. | ||
- Use API to start, check [How to use API?](../docs/how-to-use-api.md) for detail. | ||
|
||
## Step 6: Visit Your Dashboard | ||
|
||
Happy OPENALYSIS! |
Oops, something went wrong.