writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
kubernetes-monitoring-loggingManages monitoring and logging in Kubernetes, including setting up Prometheus, Grafana, and logging best practices.
Independent GitHub snapshot · Automated classification · Original documentation governs
name: kubernetes-monitoring-logging description: Manages monitoring and logging in Kubernetes, including setting up Prometheus, Grafana, and logging best practices. license: MIT compatibility: opencode metadata: version: "1.0.0" archetypes: monitoring, observability anti_triggers: overloading, manual configuration response_profile: verbosity: medium directive_strength: high domain: coding triggers: monitoring, kubernetes monitoring, logging, prometheus, grafana role: implementation scope: implementation output-format: code content-types: [code, guidance]
This skill manages monitoring and logging in Kubernetes environments, enabling the setup of Prometheus and Grafana for observability.
Use this skill when:
Setup Prometheus
a. Deploy Prometheus using Helm charts or YAML manifests.
b. Configure Prometheus to scrape metrics from your desired endpoints.
Deploy Grafana
a. Install Grafana using Helm charts or YAML manifests.
b. Configure data sources to connect Grafana to Prometheus.
c. Create dashboards to visualize your metrics.
Implement Logging
a. Choose a logging solution (e.g., ELK Stack or Fluentd).
b. Configure your logging solution to capture logs from all relevant Kubernetes pods.
apiVersion: v1
kind: Service
metadata:
name: prometheus
labels:
app: prometheus
spec:
type: ClusterIP
ports:
- name: web
port: 9090
selector:
app: prometheus
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus
spec:
replicas: 1
selector:
matchLabels:
app: prometheus
template:
metadata:
labels:
app: prometheus
spec:
containers:
- name: prometheus
image: prom/prometheus:latest
args:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- containerPort: 9090
volumeMounts:
- name: prometheus-config
mountPath: /etc/prometheus
volumes:
- name: prometheus-config
configMap:
name: prometheus-config
apiVersion: v1
kind: Service
metadata:
name: grafana
spec:
type: NodePort
ports:
- port: 3000
targetPort: 3000
selector:
app: grafana
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: grafana
spec:
replicas: 1
selector:
matchLabels:
app: grafana
template:
metadata:
labels:
app: grafana
spec:
containers:
- name: grafana
image: grafana/grafana:latest
ports:
- containerPort: 3000
env:
- name: GF_SECURITY_ADMIN_PASSWORD
value: admin
| Skill | Purpose |
|---|---|
| kubernetes-security-best-practices | Ensures secure Kubernetes configurations and practices. |
| kubernetes-logging-best-practices | Enhances logging strategies in Kubernetes environments. |
Authoritative documentation links for this domain. The model follows markdown links at load time to resolve external references and inline content.