W

prometheus-configuration

作者 wshobson

設定 Prometheus 以強化基礎架構與應用程式的指標收集、警報與監控。非常適合建立可觀察性與監控解決方案的團隊。

Stars0
收藏0
評論0
加入時間2026年3月28日
分類監控
安裝指令
npx skills add https://github.com/wshobson/agents --skill prometheus-configuration
總覽

概覽

什麼是 prometheus-configuration?

prometheus-configuration 技能提供一套結構化的方法,協助您設定 Prometheus,以全面收集、儲存並監控基礎架構與應用程式的指標。此技能專為需要使用 Prometheus 實現可靠可觀察性與警報的 DevOps 團隊、SRE 及開發者設計。

誰適合使用此技能?

  • 首次部署 Prometheus 的團隊
  • 正在標準化使用 Prometheus 進行監控的組織
  • 需要設定指標抓取、記錄規則與警報的使用者
  • 希望自動化或文件化 Prometheus 設定的人員

解決的問題

  • 簡化 Prometheus 的安裝與配置流程
  • 提供清晰的指標抓取與警報規則指導
  • 協助確保監控與可觀察性的最佳實踐

使用說明

安裝步驟

1. 將技能新增至您的 Agent

使用以下指令安裝 prometheus-configuration:

npx skills add https://github.com/wshobson/agents --skill prometheus-configuration

2. 檢視重要檔案

安裝完成後,先閱讀 SKILL.md 以獲得高階概覽。欲深入設定與客製化,請參考:

  • README.md(若有)
  • AGENTS.md
  • metadata.json
  • 任何 rules/resources/references/scripts/ 目錄

3. 適應您的環境

根據您的基礎架構調整提供的設定與工作流程,無論您是在 Kubernetes、Docker Compose 或其他環境執行 Prometheus。

範例安裝方式

使用 Helm 在 Kubernetes 部署

可透過官方 Helm chart 在 Kubernetes 上部署 Prometheus:

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install prometheus prometheus-community/kube-prometheus-stack \
  --namespace monitoring \
  --create-namespace \
  --set prometheus.prometheusSpec.retention=30d \
  --set prometheus.prometheusSpec.storageVolumeSize=50Gi

Docker Compose

適用於本地或小型環境,使用 Docker Compose 搭配 prometheus.yml 配置檔。請參考倉庫中的範例配置。

最佳實踐

  • 始終檢視並調整抓取設定與警報規則,以符合您的服務需求。
  • 根據需要整合 AlertManager 進行警報管理,並使用 Grafana 進行視覺化。
  • 利用服務發現功能自動管理目標。

常見問題

prometheus-configuration 是做什麼的?

此技能引導您設定 Prometheus,包含指標收集、儲存與監控,並設定抓取目標、記錄規則與警報。

什麼時候應該使用 prometheus-configuration?

當您需要在環境中建立或標準化 Prometheus 監控,尤其是想要一個可重複且有文件記錄的設定流程時,建議使用此技能。

prometheus-configuration 可以搭配 Kubernetes 或 Docker 使用嗎?

可以,此技能提供 Kubernetes(使用 Helm)與 Docker Compose 的設定指導。請依您的部署平台調整配置。

哪裡可以找到更多細節或範例配置?

請打開技能目錄中的 Files 標籤,檢視所有可用檔案,包括範例規則、參考資料與輔助腳本,以進行進階客製化。

評分與評論

尚無評分
分享你的評論
登入後即可為這項技能評分並留言。
G
0/10000
最新評論
儲存中...