raman01211/sre-observability-platform
GitHub: raman01211/sre-observability-platform
面向 Kubernetes 的全栈 SRE 可观测性平台,整合指标、日志、追踪与 APM,通过 SLO 驱动告警和自动化事件响应帮助团队快速定位和解决系统问题。
Stars: 0 | Forks: 0
# SRE 可观测性平台






针对 Kubernetes 工作负载的全栈可观测性实现,具备 SLO 驱动的告警、分布式链路追踪和实时仪表盘。
[](https://github.com/raman01211/sre-observability-platform)
## 快速开始
```
# 前提条件:Docker 和 docker-compose
# 启动完整的 observability stack
make up
# 打开 Grafana dashboard
make dashboard
# 触发测试告警
make alert-test
# 查看日志
make logs
# 停止所有服务
make down
```
### URL
| 服务 | URL |
|---------|-----|
| Grafana | http://localhost:3000 |
| Prometheus | http://localhost:9090 |
| Alertmanager | http://localhost:9093 |
| 示例应用 | http://localhost:8000 |
**默认 Grafana 凭证:** `admin` / `admin`
## 前置条件
- [Docker](https://docs.docker.com/get-docker/)
- [Docker Compose](https://docs.docker.com/compose/install/) (v2+)
## 组件
- **指标**:Prometheus(抓取 + 记录规则) -> Grafana(仪表盘 + 告警)
- **日志**:Fluentd/Logstash -> Elasticsearch -> Kibana(ELK Stack)
- **追踪**:OpenTelemetry Collector -> Jaeger/Tempo -> Grafana
- **APM**:Dynatrace 用于应用性能监控
- **告警**:Alertmanager -> PagerDuty,包含基于 SLO 的告警规则
## 功能
- SLO/SLI 定义和错误预算跟踪,具备燃尽率告警功能
- 使用 Thanos/Prometheus 联邦进行多集群监控
- 结合 runbook 和 PagerDuty 值班排班的自动化事件响应
- 为工程团队和管理层提供实时仪表盘
- 成本可视性和 FinOps 仪表盘
- 将日志与追踪和指标进行关联,以加速根因分析
## 架构
```
Applications -> OpenTelemetry SDK/Agent
|-> Prometheus/Grafana (Metrics)
|-> ELK Stack (Logs)
|-> Jaeger/Tempo (Traces)
|-> Dynatrace (APM)
Alertmanager -> PagerDuty -> On-Call Engineer
```
## 技术栈
| 类别 | 技术 |
|----------|-----------|
| 指标 | Prometheus, Thanos, Grafana |
| 日志 | Elasticsearch, Logstash, Kibana (ELK) |
| 追踪 | OpenTelemetry, Jaeger, Tempo |
| APM | Dynatrace, Application Insights |
| 告警 | Alertmanager, PagerDuty |
| Kubernetes | AKS/EKS, Helm, Kustomize |
## 快速安装
```
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add elastic https://helm.elastic.co
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts
helm upgrade --install kube-prometheus-stack prometheus-community/kube-prometheus-stack --namespace monitoring --create-namespace
```
*更多内容请访问 [ramansrivastava.dev](https://ramansrivastava.dev) | [github.com/raman01211](https://github.com/raman01211)*
标签:API集成, ELK Stack, GET参数, Grafana, OpenTelemetry, SRE, 偏差过滤, 内容过滤, 可观测性, 告警自动化, 子域名突变, 用户代理, 自定义请求头, 请求拦截, 越狱测试, 逆向工具