prometheus-monitoring by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill prometheus-monitoring实现全面的 Prometheus 监控基础设施,用于从应用程序和基础设施收集、存储和查询时间序列指标。
最小工作示例:
# /etc/prometheus/prometheus.yml
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
cluster: production
alerting:
alertmanagers:
- static_configs:
- targets: ["localhost:9093"]
rule_files:
- "/etc/prometheus/alert_rules.yml"
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: "node"
static_configs:
- targets: ["localhost:9100"]
- job_name: "api-service"
// ... (完整实现请参阅参考指南)
references/ 目录下的详细实现:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 指南 | 内容 |
|---|
| Prometheus 配置 | Prometheus 配置 |
| Node.js 指标实现 | Node.js 指标实现 |
| Python Prometheus 集成 | Python Prometheus 集成 |
| 告警规则 | 告警规则 |
| Docker Compose 设置 | Docker Compose 设置 |
每周安装次数
118
代码仓库
GitHub 星标数
116
首次出现
2026年1月21日
安全审计
已安装于
opencode99
gemini-cli93
codex91
claude-code89
cursor86
github-copilot78
Implement comprehensive Prometheus monitoring infrastructure for collecting, storing, and querying time-series metrics from applications and infrastructure.
Minimal working example:
# /etc/prometheus/prometheus.yml
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
cluster: production
alerting:
alertmanagers:
- static_configs:
- targets: ["localhost:9093"]
rule_files:
- "/etc/prometheus/alert_rules.yml"
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: "node"
static_configs:
- targets: ["localhost:9100"]
- job_name: "api-service"
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Prometheus Configuration | Prometheus Configuration |
| Node.js Metrics Implementation | Node.js Metrics Implementation |
| Python Prometheus Integration | Python Prometheus Integration |
| Alert Rules | Alert Rules |
| Docker Compose Setup | Docker Compose Setup |
Weekly Installs
118
Repository
GitHub Stars
116
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode99
gemini-cli93
codex91
claude-code89
cursor86
github-copilot78