MCPcopy Index your code
hub / github.com/clickvisual/clickvisual

github.com/clickvisual/clickvisual @v1.0.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.6 ↗ · + Follow
3,617 symbols 11,912 edges 652 files 534 documented · 15%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ClickVisual

Go Report Card Release go.dev reference GitHub license All Contributors

English | 中文

ClickVisual 是一个轻量级的基于浏览器的日志分析和查询平台,底层数据存储采用 ClickHouse。

文档

访问 https://clickvisual.net/ 查看最新文档。

日志查询演示

log-search

告警配置演示

log-search

DAG 工作流

log-search

可视化配置界面

log-search

特性

  • 提供了可视化的查询面板,可查询命中条数直方图和原始日志
  • 配置好需要计算比率的字段后,可查看字段不同值占比
  • 提供了可视化的 VS Code 风格配置中心,可以便捷地将 fluent-bit 配置同步到 Kubernetes 集群 ConfigMap 中
  • 支持 GitHub 和 GitLab 授权登录

架构

image

安装方法

  • Docker 方式运行
git clone https://github.com/clickvisual/clickvisual.git

# 国内可能需要配置 Docker Proxy,或者配置 image mirror
# 可参考这里:https://github.com/yeasy/docker_practice/blob/master/install/mirror.md
docker-compose up

# 打开浏览器访问 http://localhost:19001
# 默认登录用户名: clickvisual
# 默认登录密码: clickvisual
  • 本地运行
# 下载二进制 
# 获取最新版本
latest=$(curl -sL https://api.github.com/repos/clickvisual/clickvisual/releases/latest | grep  ".tag_name" | sed -E 's/.*"([^"]+)".*/\1/')

# MacOs 下下载
wget "https://github.com/clickvisual/clickvisual/releases/download/${latest}/clickvisual-${latest}-darwin-amd64.tar.gz" -O clickvisual-${latest}.tar.gz 

# Linux 下下载
wget "https://github.com/clickvisual/clickvisual/releases/download/${latest}/clickvisual-${latest}-linux-amd64.tar.gz" -O clickvisual-$(latest).tar.gz  

# 解压 tar.gz 包到 ./clickvisual 目录
mkdir -p ./clickvisual-${latest} && tar -zxvf clickvisual-${latest}.tar.gz -C ./clickvisual-${latest}

# 修改 config/default.toml 配置文件
# 执行 scripts/migration 下迁移脚本,创建数据库和表
# 启动 clickvisual
cd ./clickvisual-${latest} && ./clickvisual --config config/default.toml

# 打开浏览器访问 http://localhost:19001
# 默认登录用户名: clickvisual 
# 默认登录密码: clickvisual

文档贡献

如果你要参与 https://clickvisual.net 文档更新的活动
可以参考该文档 https://github.com/clickvisual/clickvisual/tree/master/docs

加入我们

加入我们,请在验证信息里添加 cv 关键字

感谢

伙伴

Extension points exported contracts — how you extend this code

PmsRuleController (Interface)
PmsRuleController ... [7 implementers]
api/internal/service/permission/rulefactory.go
Storer (Interface)
(no doc) [3 implementers]
api/core/i/storer.go
InitialStateType (Interface)
(no doc)
ui/src/app.tsx
IPusher (Interface)
(no doc) [6 implementers]
api/internal/service/alarm/pusher/interface.go
Reader (Interface)
(no doc) [3 implementers]
api/core/i/reader.go
CustomTree (Interface)
(no doc)
ui/src/components/CustomTree/index.tsx
Builder (Interface)
(no doc) [6 implementers]
api/internal/service/inquiry/factory/builder/builder.go
Switcher (Interface)
(no doc) [3 implementers]
api/core/i/switcher.go

Core symbols most depended-on inside this repo

Error
called by 869
api/internal/service/configure/syntax.go
JSONE
called by 682
api/internal/pkg/component/core/core.go
run
called by 273
api/internal/service/storage/storageworker/trace.go
String
called by 210
api/internal/service/storage/datasource.go
Handle
called by 177
api/internal/pkg/component/core/core.go
Uid
called by 175
api/internal/pkg/component/core/user.go
useRequest
called by 165
ui/src/hooks/useRequest/useRequest.tsx
JSONOK
called by 163
api/internal/pkg/component/core/core.go

Shape

Function 2,056
Method 815
Struct 438
Interface 236
Enum 47
TypeAlias 20
FuncType 5

Languages

Go58%
TypeScript42%

Modules by API surface

ui/public/luckysheet/js/plugin.js241 symbols
ui/src/services/dataLogs.ts67 symbols
api/internal/service/inquiry/clickhouse/clickhouse.go67 symbols
api/internal/service/inquiry/databend/databend.go57 symbols
api/internal/pkg/model/view/pandas.go51 symbols
ui/src/models/dataLogs.ts46 symbols
api/internal/pkg/model/view/pms.go46 symbols
api/internal/pkg/model/view/base.go45 symbols
api/internal/service/inquiry/local/local.go41 symbols
api/internal/service/inquiry/agent/agent.go41 symbols
api/internal/pkg/model/db/bigdata.go40 symbols
api/internal/service/inquiry/factory/factory.go37 symbols

For agents

$ claude mcp add clickvisual \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact