Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính41k · #6742

prometheus-configuration

Skill này làm gì

Công cụ này giúp bạn thiết lập Prometheus, một hệ thống thu thập và giám sát dữ liệu hiệu năng từ hạ tầng và ứng dụng. Nó đảm bảo bạn thấy được chuyện gì đang xảy ra và được cảnh báo khi có sự cố.

Khi nào nên dùng

  • ✓Khi bạn cần bắt đầu giám sát hệ thống.
  • ✓Khi bạn cấu hình cách thu thập dữ liệu hiệu năng.
  • ✓Khi bạn cần tạo các quy tắc cảnh báo khi có vấn đề.

Liên kết skill

https://github.com/wshobson/agents/blob/main/plugins/observability-monitoring/skills/prometheus-configuration/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/wshobson/agents/blob/main/plugins/observability-monitoring/skills/prometheus-configuration/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thiết lập Prometheus để thu thập chỉ số từ các máy chủ web của tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn cung cấp thông tin về dữ liệu cần thu thập và cách thu thập. Công cụ sắp xếp các thiết lập này để Prometheus có thể bắt đầu giám sát hệ thống của bạn tự động.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Prometheus Configuration

Complete guide to Prometheus setup, metric collection, scrape configuration, and recording rules.

Purpose

Configure Prometheus for comprehensive metric collection, alerting, and monitoring of infrastructure and applications.

When to Use

  • Set up Prometheus monitoring
  • Configure metric scraping
  • Create recording rules
  • Design alert rules
  • Implement service discovery

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

  1. Use consistent naming for metrics (prefix_name_unit)
  2. Set appropriate scrape intervals (15-60s typical)
  3. Use recording rules for expensive queries
  4. Implement high availability (multiple Prometheus instances)
  5. Configure retention based on storage capacity
  6. Use relabeling for metric cleanup
  7. Monitor Prometheus itself
  8. Implement federation for large deployments
  9. Use Thanos/Cortex for long-term storage
  10. Document custom metrics

Troubleshooting

Check scrape targets:

curl http://localhost:9090/api/v1/targets

Check configuration:

curl http://localhost:9090/api/v1/status/config

Test query:

curl 'http://localhost:9090/api/v1/query?query=up'

Related Skills

  • grafana-dashboards - For visualization
  • slo-implementation - For SLO monitoring
  • distributed-tracing - For request tracing
Câu hỏi thường gặp

“Metrics” là gì?

Metrics giống như dấu hiệu sinh tồn của hệ thống. Chúng đo những thứ như mức dùng CPU, bộ nhớ hoặc số yêu cầu mà máy chủ nhận được.

“Scraping” là gì?

Scraping là quá trình Prometheus đi đến các hệ thống của bạn và “thu thập” các chỉ số mà chúng báo cáo.

“Recording rules” và “alerting rules” là gì?

Recording rules giúp tính trước các chỉ số được dùng thường xuyên. Alerting rules định nghĩa các điều kiện mà khi xảy ra sẽ kích hoạt cảnh báo.

Chi tiết

Mô tả gốc của tác giả

Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems.

repo: wshobson/agents

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6742
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự