prometheus-configuration
Fungsinya
Tool ini membantu Anda mengatur Prometheus, sebuah sistem untuk memantau performa dan kesehatan sistem komputer serta aplikasi. Tool ini memandu Anda mengonfigurasi cara mengumpulkan data (metrics) dan membuat aturan untuk memberi peringatan saat terjadi masalah.
Kapan dipakai
- βSaat Anda perlu memasang Prometheus untuk pertama kali.
- βSaat Anda ingin menentukan data apa saja yang harus dikumpulkan oleh sistem monitoring Anda.
- βSaat Anda perlu membuat alert agar mendapat notifikasi ketika ada masalah.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/prometheus-configuration/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBagaimana cara mengonfigurasi Prometheus untuk memantau web server saya?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Tool ini menyediakan contoh file konfigurasi dan perintah untuk memasang Prometheus. Anda mengedit file tersebut agar Prometheus tahu di mana mencari data dan cara membacanya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Supporting material availability
This catalog copy contains the inline guidance below, but does not include the following supporting paths. They are external prerequisites, not bundled files:
<support-root>/assets/prometheus.yml.template<support-root>/references/scrape-configs.md<support-root>/references/recording-rules.md<support-root>/scripts/validate-prometheus.sh
Ask for the original supporting material or an existing installation before using a step that depends on these paths; this catalog does not identify a verified download source for them. Resolve each path relative to that installation, inspect its contents, and verify any applicable license and execution prerequisites. Do not run a command or claim a referenced procedure was followed until its required file exists. Do not fabricate the missing scripts or treat an unrelated file with the same name as equivalent. Independent steps fully documented here can proceed within the userβs authorized scope; report any dependent step as unavailable.
Prometheus Configuration
Complete guide to Prometheus setup, metric collection, scrape configuration, and recording rules.
Do not use this skill when
- The task is unrelated to prometheus configuration
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
Purpose
Configure Prometheus for comprehensive metric collection, alerting, and monitoring of infrastructure and applications.
Use this skill when
- Set up Prometheus monitoring
- Configure metric scraping
- Create recording rules
- Design alert rules
- Implement service discovery
Prometheus Architecture
ββββββββββββββββ
β Applications β β Instrumented with client libraries
ββββββββ¬ββββββββ
β /metrics endpoint
β
ββββββββββββββββ
β Prometheus β β Scrapes metrics periodically
β Server β
ββββββββ¬ββββββββ
β
βββ AlertManager (alerts)
βββ Grafana (visualization)
βββ Long-term storage (Thanos/Cortex)
Installation
Kubernetes with Helm
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
version: '3.8'
services:
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=30d'
volumes:
prometheus-data:
Configuration File
prometheus.yml:
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
cluster: 'production'
region: 'us-west-2'
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
- alertmanager:9093
# Load rules files
rule_files:
- /etc/prometheus/rules/*.yml
# Scrape configurations
scrape_configs:
# Prometheus itself
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
# Node exporters
- job_name: 'node-exporter'
static_configs:
- targets:
- 'node1:9100'
- 'node2:9100'
- 'node3:9100'
relabel_configs:
- source_labels: [__address__]
target_label: instance
regex: '([^:]+)(:[0-9]+)?'
replacement: '${1}'
# Kubernetes pods with annotations
- job_name: 'kubernetes-pods'
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
action: keep
regex: true
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
action: replace
target_label: __metrics_path__
regex: (.+)
- source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
action: replace
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
- source_labels: [__meta_kubernetes_namespace]
action: replace
β¦
Pertanyaan umum
Apa itu 'metrics'?
Metrics adalah data numerik yang menggambarkan performa sistem, seperti penggunaan CPU, memori, atau jumlah request.
Apa itu 'scraping'?
'Scraping' adalah istilah untuk proses Prometheus mengumpulkan metrics dari sebuah target, misalnya server.
Apa itu 'recording rules'?
Ini adalah aturan yang menghitung terlebih dahulu metrics yang kompleks atau sering dipakai, sehingga Prometheus bisa menjalankan query lebih cepat di kemudian hari.
Detail
Deskripsi asli dari pembuat
Complete guide to Prometheus setup, metric collection, scrape configuration, and recording rules.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #5521
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
tavily
394kMembantu agent Anda mencari di web dengan Tavily dan mengambil teks dari halaman web tertentu, dengan opsi kedalaman, domain, dan tanggal.
blogwatcher
394kMemungkinkan agent Anda mengikuti blog dan feed RSS atau Atom, memeriksanya untuk artikel baru, dan menandai artikel yang sudah Anda baca.
data-scraper-agent
280kMembantu agent mengumpulkan data otomatis dari sumber publik. Bisa dijadwalkan, memperkaya informasi, dan menyimpan hasil. Berguna untuk memantau data online.