/prometheus-manager

prometheus unified rules and alarms management platform

Primary LanguageTypeScriptMIT LicenseMIT

Prometheus-manager

prometheus unified rules and alarms management platform

Prometheus Prometheus

Architecture overview

Architecture overview

开发

# 克隆代码
git clone https://github.com/aide-cloud/prometheus-manager.git

# 进入项目目录
cd prometheus-manager

# 安装依赖
make init

# 启动服务
kratos run

创建 api

 kratos proto add api/<module-name>/<version>/<api-name>.proto

生成 api 文件

# 生成 api pb
make api

# 生成 service
kratos proto server api/<module-name>/<version>/<api-name>.proto -t apps/<server-app-name>/internal/service

# 生成 config
make config

Docker

# build
docker build -t <your-docker-image-name> .

# run
docker run --rm -p 8000:8000 -p 9000:9000 -v </path/to/your/configs>:/data/conf <your-docker-image-name>