Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ 增加 Metric 服务 #666

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions docker/docker-compose_metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
services:
nonebot:
image: felinae98/nonebot-bison
volumes:
- ./nonebot-data:/data
environment:
TZ: Asia/Shanghai
HOST: 0.0.0.0
# SUPERUSERS: '["<your QQ>"]'
BISON_CONFIG_PATH: /data
# BISON_OUTER_URL: 'http://<your server ip>:8080/bison'
BISON_FILTER_LOG: "true"
BISON_USE_PIC: "false" # 如果需要将文字转为图片发送请改为true
ports:
- 8080:8080

prometheus:
image: prom/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090

grafana:
image: grafana/grafana
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_PASSWORD=nonebot-bison
volumes:
- ./grafana-dashboard.json:/etc/grafana/provisioning/dashboards/dashboard.json
- ./grafana-dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml
- ./grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml

volumes:
prometheus_data: {}
grafana_data: {}
Loading
Loading