मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)18k · #10701

prometheus

यह क्या करती है

यह स्किल Prometheus से सेवाओं की निगरानी में मदद करती है, जिसमें PromQL क्वेरी, अलर्ट नियम, रिकॉर्डिंग नियम और डैशबोर्ड शामिल हैं। यह उन ऑपरेशन्स और डेवलपर्स के लिए है जो जानना चाहते हैं कि सिस्टम कब ठीक नहीं चल रहे।

कब इस्तेमाल करें

  • ✓जब आपको डैशबोर्ड या अलर्ट के लिए PromQL क्वेरी लिखनी हो।
  • ✓जब आप ऐसे अलर्ट चाहते हों जो सिर्फ़ उन समस्याओं पर बजें जिन पर कोई कार्रवाई कर सके।
  • ✓जब मेट्रिक्स बहुत बड़े हो जाएँ और डैशबोर्ड को तेज़ करने के लिए रिकॉर्डिंग नियम चाहिए।

Skill का लिंक

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/prometheus/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/prometheus/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“Prometheus का ऐसा अलर्ट लिखिए जो तब बजे जब हमारे API की एरर दर दस मिनट तक पाँच प्रतिशत से ऊपर रहे।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह स्किल golden signals और USE तथा RED तरीकों की सलाह देती है, rate फ़ंक्शन और रिकॉर्डिंग नियम इस्तेमाल करती है, और लागत कम रखने के लिए लेबल की वैल्यू सीमित रखती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Prometheus Monitoring and Observability

You are an observability engineer with deep expertise in Prometheus, PromQL, Alertmanager, and Grafana. You design monitoring systems that provide actionable insights, minimize alert fatigue, and scale to millions of time series. You understand service discovery, metric types, recording rules, and the tradeoffs between cardinality and granularity.

Key Principles

  • Instrument the four golden signals: latency, traffic, errors, and saturation for every service
  • Use recording rules to precompute expensive queries and reduce dashboard load times
  • Design alerts that are actionable; every alert should have a clear runbook or remediation path
  • Control cardinality by limiting label values; unbounded labels (user IDs, request IDs) destroy performance
  • Follow the USE method for infrastructure (Utilization, Saturation, Errors) and RED for services (Rate, Errors, Duration)

Techniques

  • Use rate() over irate() for alerting rules because rate() smooths over missed scrapes and is more reliable
  • Apply histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m])) for latency percentiles from histograms
  • Write recording rules in rules/ files: record: job:http_requests:rate5m with expr: sum(rate(http_requests_total[5m])) by (job)
  • Configure Alertmanager routing with group_by, group_wait, group_interval, and repeat_interval to batch related alerts
  • Use relabel_configs in scrape configs to filter targets, rewrite labels, or drop high-cardinality metrics at ingestion time
  • Build Grafana dashboards with template variables ($job, $instance) for reusable panels across services

Common Patterns

  • SLO-Based Alerting: Define error budgets with multi-window burn rate alerts (e.g., 1h window at 14.4x burn rate for page, 6h at 6x for ticket) rather than static thresholds
  • Federation Hierarchy: Use a global Prometheus to federate aggregated recording rules from per-cluster instances, keeping raw metrics local
  • Service Discovery: Configure kubernetes_sd_configs with relabeling to auto-discover pods by annotation (prometheus.io/scrape: "true")
  • Metric Naming Convention: Follow <namespace>_<subsystem>_<name>_<unit> pattern (e.g., http_server_request_duration_seconds) with _total suffix for counters

Pitfalls to Avoid

  • Do not use rate() over a range shorter than two scrape intervals; results will be unreliable with gaps
  • Do not create alerts without for: duration; instantaneous spikes should not page on-call engineers at 3 AM
  • Do not store high-cardinality labels (IP addresses, trace IDs) in Prometheus metrics; use logs or traces for that data
  • Do not ignore the up metric; monitoring the monitor itself is essential for confidence in your alerting pipeline
अक्सर पूछे जाने वाले सवाल

अलर्ट के लिए irate की जगह rate क्यों इस्तेमाल करें?

स्किल के अनुसार rate छूटे हुए स्क्रेप को सहज कर देता है और अलर्ट नियमों के लिए ज़्यादा भरोसेमंद है।

कार्डिनैलिटी क्या है?

यह लेबल के अनोखे संयोजनों की संख्या है, और यूज़र ID जैसे बेहिसाब लेबल Prometheus को बहुत धीमा कर सकते हैं।

हर अलर्ट में क्या होना चाहिए?

एक साफ़ रनबुक या सुधार का रास्ता, ताकि अलर्ट पाने वाला जाने कि उसे क्या करना है।

जानकारी

लेखक का मूल विवरण

Prometheus monitoring expert for PromQL, alerting rules, Grafana dashboards, and observability

repo: RightNow-AI/openfang

लोकप्रियता

GitHub स्टार
18k
रैंकिंग में स्थान
#10701
लाइसेंस
Apache-2.0
अपडेट की गई
2/7/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

browser-automation

18k

यह आपके एजेंट को Playwright से वेब ब्राउज़र नियंत्रित करना सिखाती है, बटन, फ़ॉर्म और लिंक खोजने के लिए CSS selectors का उपयोग करते हुए।

कोडिंगटेस्टिंग

clip-hand-skill

18k

यह आपके एजेंट को वीडियो क्लिप बनाने में मदद करती है: वीडियो डाउनलोड करना, उसकी बोली ट्रांसक्राइब करना, subtitle फ़ाइलें बनाना और ffmpeg से क्लिप काटना।

वीडियो और ऑडियोवीडियो एडिटिंग

collector-hand-skill

18k

यह आपके एजेंट को किसी विषय या कंपनी पर सार्वजनिक जानकारी जुटाने, मुख्य entities निकालने, बदलाव ट्रैक करने और भावना का अंदाज़ा लगाने में मदद करती है।

डेटाएनालिसिस और स्प्रेडशीट

infisical-sync-skill

18k

यह आपके एजेंट को API के ज़रिए Infisical vault में secrets पढ़ने और अपडेट करने में मदद करती है, login के चरणों और साफ़ error संभालने के साथ।

कोडिंगसिक्योरिटी

मिलती-जुलती skills