
observability-monitoring
Observability plugin that bundles Prometheus, Grafana, tracing, and SLO setup under one multi-agent workflow.
- version
- 1.2.1
- GitHub stars
- 126
What it does
- Adds 2 commands (
/monitor-setup,/slo-implement) and 4 skills:distributed-tracing,grafana-dashboards,prometheus-configuration, andslo-implementation - Covers metrics collection, log aggregation, Jaeger or Tempo tracing, and dashboards for Python, Node.js, and Go services
- Provides error budget calculation and burn rate alerts, with SLI selection and governance processes built into
slo-implement - Designed for teams standing up a production monitoring stack or adopting SLO practices across services
Metrics collection, logging infrastructure, distributed tracing, SLO implementation, and monitoring dashboards
Add marketplace
/plugin marketplace add HermeticOrmus/LibreUIUX-Claude-CodeRun it inside Claude Code once, then install the plugin below.
Install
/plugin install observability-monitoring@libreuiuxRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceDistributed Tracing
Implement distributed tracing with Jaeger and Tempo for request flow visibility across microservices.
Purpose
Track requests across distributed systems to understand latency, dependencies, and failure points.
When to Use
- Debug latency issues
- Understand service dependencies
- Identify bottlenecks
- Trace error propagation
- Analyze request paths
Distributed Tracing Concepts
Trace Structure
Trace (Request ID: abc123)
↓
Span (frontend) [100ms]
↓
Span (api-gateway) [80ms]
├→ Span (auth-service) [10ms]
└→ Span (user-service) [60ms]
└→ Span (database) [40ms]
Key Components
- Trace - End-to-end request journey
- Span - Single operation within a trace
- Context - Metadata propagated between services
- Tags - Key-value pairs for filtering
- Logs - Timestamped events within a span
Jaeger Setup
Kubernetes Deployment
# Deploy Jaeger Operator
kubectl create namespace observability
kubectl create -f https://github.com/jaegertracing/jaeger-operator/releases/download/v1.51.0/jaeger-operator.yaml -n observability
# Deploy Jaeger instance
kubectl apply -f - <<EOF
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
name: jaeger
namespace: observability
spec:
strategy: production
storage:
type: elasticsearch
options:
es:
server-urls: http://elasticsearch:9200
ingress:
enabled: true
EOF
Docker Compose
version: '3.8'
services:
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686" # UI
- "14268:14268" # Collector
- "14250:14250" # gRPC
- "9411:9411" # Zipkin
environment:
- COLLECTOR_ZIPKIN_HOST_PORT=:9411
Reference: See references/jaeger-setup.md
Application Instrumentation
OpenTelemetry (Recommended)
Python (Flask)
from opentelemetry import trace
from opentelemetry.exporter.jaeger.thrift import JaegerExporter
from opentelemetry.sdk.resources import SERVICE_NAME, Resource
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.instrumentation.flask import FlaskInstrumentor
from flask import Flask
# Initialize tracer
resource = Resource(attributes={SERVICE_NAME: "my-service"})
provider = TracerProvider(resource=resource)
processor = BatchSpanProcessor(JaegerExporter(
agent_host_name="jaeger",
agent_port=6831,
))
provider.add_span_processor(processor)
trace.set_tracer_provider(provider)
# Instrument Flask
app = Flask(__name__)
FlaskInstrumentor().instrument_app(app)
@app.route('/api/users')
def get_users():
tracer = trace.get_tracer(__name__)
with tracer.start_as_current_span("get_users") as span:
span.set_attribute("user.count", 100)
# Business logic
users = fetch_users_from_db()
return {"users": users}
def fetch_users_from_db():
tracer = trace.get_tracer(__name__)
with tracer.start_as_current_span("database_query") as span:
span.set_attribute("db.system", "postgresql")
span.set_attribute("db.statement", "SELECT * FROM users")
# Database query
return query_database()
Node.js (Express)
const { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');
const { JaegerExporter } = require('@opentelemetry/exporter-jaeger');
const { BatchSpanProcessor } = require('@opentelemetry/sdk-trace-base');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');
const { HttpInstrumentation } = require('@opentelemetry/instrumentation-http');
const { ExpressInstrumentation } = require('@opentelemetry/instrumentation-express');
// Initialize tracer
const provider = new NodeTracerProvider({
resource: { attributes: { 'service.name': 'my-service' } }
});
const exporter = new JaegerExporter({
endpoint: 'http://jaeger:14268/api/traces'
});
provider.addSpanProcessor(new BatchSpanProcessor(exporter));
provider.register();
// Instrument libraries
registerInstrumentations({
instrumentations: [
new HttpInstrumentation(),
new ExpressInstrumentation(),
],
});
const express = require('express');
const app = express();
app.get('/api/users', async (req, res) => {
const tracer = trace.getTracer('my-service');
const span = tracer.startSpan('get_users');
try {
const users = await fetchUsers();
span.setAttributes({ 'user.count': users.length });
res.json({ users });
} finally {
span.end();
}
});
Go
package main
import (
"context"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/exporters/jaeger"
"go.opentelemetry.io/otel/sdk/resource"
sdktrace "go.opentelemetry.io/otel/sdk/trace"
semconv "go.opentelemetry.io/otel/semconv/v1.4.0"
)
func initTracer() (*sdktrace.TracerProvider, error) {
exporter, err := jaeger.New(jaeger.WithCollectorEndpoint(
jaeger.WithEndpoint("http://jaeger:14268/api/traces"),
))
if err != nil {
return nil, err
}
tp := sdktrace.NewTracerProvider(
sdktrace.WithBatcher(exporter),
sdktrace.WithResource(resource.NewWithAttributes(
semconv.SchemaURL,
semconv.ServiceNameKey.String("my-service"),
)),
)
otel.SetTracerProvider(tp)
return tp, nil
}
func getUsers(ctx context.Context) ([]User, error) {
tracer := otel.Tracer("my-service")
ctx, span := tracer.Start(ctx, "get_users")
defer span.End()
span.SetAttributes(attribute.String("user.filter", "active"))
users, err := fetchUsersFromDB(ctx)
if err != nil {
span.RecordError(err)
return nil, err
}
span.SetAttributes(attribute.Int("user.count", len(users)))
return users, nil
}
Reference: See references/instrumentation.md
Context Propagation
HTTP Headers
traceparent: 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01
tracestate: congo=t61rcWkgMzE
Propagation in HTTP Requests
Python
from opentelemetry.propagate import inject
headers = {}
inject(headers) # Injects trace context
response = requests.get('http://downstream-service/api', headers=headers)
Node.js
const { propagation } = require('@opentelemetry/api');
const headers = {};
propagation.inject(context.active(), headers);
axios.get('http://downstream-service/api', { headers });
Tempo Setup (Grafana)
Kubernetes Deployment
apiVersion: v1
kind: ConfigMap
metadata:
name: tempo-config
data:
tempo.yaml: |
server:
http_listen_port: 3200
distributor:
receivers:
jaeger:
protocols:
thrift_http:
grpc:
otlp:
protocols:
http:
grpc:
storage:
trace:
backend: s3
s3:
bucket: tempo-traces
endpoint: s3.amazonaws.com
querier:
frontend_worker:
frontend_address: tempo-query-frontend:9095
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tempo
spec:
replicas: 1
template:
spec:
containers:
- name: tempo
image: grafana/tempo:latest
args:
- -config.file=/etc/tempo/tempo.yaml
volumeMounts:
- name: config
mountPath: /etc/tempo
volumes:
- name: config
configMap:
name: tempo-config
Reference: See assets/jaeger-config.yaml.template
Sampling Strategies
Probabilistic Sampling
# Sample 1% of traces
sampler:
type: probabilistic
param: 0.01
Rate Limiting Sampling
# Sample max 100 traces per second
sampler:
type: ratelimiting
param: 100
Adaptive Sampling
from opentelemetry.sdk.trace.sampling import ParentBased, TraceIdRatioBased
# Sample based on trace ID (deterministic)
sampler = ParentBased(root=TraceIdRatioBased(0.01))
Trace Analysis
Finding Slow Requests
Jaeger Query:
service=my-service
duration > 1s
Finding Errors
Jaeger Query:
service=my-service
error=true
tags.http.status_code >= 500
Service Dependency Graph
Jaeger automatically generates service dependency graphs showing:
- Service relationships
- Request rates
- Error rates
- Average latencies
Best Practices
- Sample appropriately (1-10% in production)
- Add meaningful tags (user_id, request_id)
- Propagate context across all service boundaries
- Log exceptions in spans
- Use consistent naming for operations
- Monitor tracing overhead (<1% CPU impact)
- Set up alerts for trace errors
- Implement distributed context (baggage)
- Use span events for important milestones
- Document instrumentation standards
Integration with Logging
Correlated Logs
import logging
from opentelemetry import trace
logger = logging.getLogger(__name__)
def process_request():
span = trace.get_current_span()
trace_id = span.get_span_context().trace_id
logger.info(
"Processing request",
extra={"trace_id": format(trace_id, '032x')}
)
Troubleshooting
No traces appearing:
- Check collector endpoint
- Verify network connectivity
- Check sampling configuration
- Review application logs
High latency overhead:
- Reduce sampling rate
- Use batch span processor
- Check exporter configuration
Reference Files
references/jaeger-setup.md- Jaeger installationreferences/instrumentation.md- Instrumentation patternsassets/jaeger-config.yaml.template- Jaeger configuration
Related Skills
prometheus-configuration- For metricsgrafana-dashboards- For visualizationslo-implementation- For latency SLOs
Readme
Observability & Monitoring
Production observability stack with Prometheus, Grafana, distributed tracing, SLO frameworks, and infrastructure monitoring.
Overview
This plugin provides a complete observability and monitoring toolkit spanning metrics collection, visualization, distributed tracing, SLI/SLO frameworks, database optimization, and network engineering. Four specialized agents handle different infrastructure domains, two multi-agent commands orchestrate complex setups, and four skills provide detailed configuration guidance for the core observability tools.
Contents
Agents
| Agent | Description |
|---|---|
| database-optimizer | Database performance tuning, query optimization, advanced indexing (B-tree, GIN, BRIN), N+1 resolution, multi-tier caching, partitioning, and cloud database optimization across PostgreSQL, MySQL, MongoDB, and DynamoDB. |
| network-engineer | Cloud networking (AWS VPC, Azure VNet, GCP), load balancing, DNS, SSL/TLS, service mesh, zero-trust architecture, CDN optimization, and network troubleshooting. |
| observability-engineer | Production monitoring with Prometheus, Grafana, OpenTelemetry, Jaeger/Tempo, log aggregation (ELK, Loki), alerting, and SLI/SLO implementation. |
| performance-engineer | Application profiling, load testing (k6, JMeter, Gatling), multi-tier caching, Core Web Vitals, serverless optimization, and chaos engineering. |
Commands
| Command | Description |
|---|---|
| monitor-setup | Multi-agent workflow to deploy a full monitoring stack: Prometheus metrics, Grafana dashboards, OpenTelemetry tracing, Fluentd log aggregation, alerting rules, and SLO implementation. |
| slo-implement | SLO implementation command covering framework design, SLI selection, error budget calculation, burn rate alerts, reporting dashboards, and governance processes. |
Skills
| Skill | Description |
|---|---|
| distributed-tracing | Set up Jaeger or Grafana Tempo with OpenTelemetry instrumentation for Python, Node.js, and Go services including context propagation and sampling strategies. |
| grafana-dashboards | Build Grafana dashboards using RED and USE methods with panel types, template variables, provisioning as code, and alerting integration. |
| prometheus-configuration | Configure Prometheus scrape targets, recording rules, alerting rules, federation, and long-term storage with Thanos or Cortex. |
| slo-implementation | Define SLIs, set SLO targets, calculate error budgets, implement burn rate alerts, and build SLO dashboards with governance workflows. |
Usage
- Greenfield monitoring: Use the monitor-setup command to deploy the full observability stack in one coordinated workflow.
- SLO adoption: The slo-implement command walks through the entire SLO lifecycle from SLI selection to error budget governance.
- Database issues: The database-optimizer agent handles query analysis, indexing strategy, and caching architecture.
- Network problems: The network-engineer agent troubleshoots connectivity, configures load balancers, and designs secure network topologies.
- Individual tool setup: Use the dedicated skills for Prometheus, Grafana, or tracing configuration.
Related Plugins
- kubernetes-operations -- Kubernetes workloads that feed metrics into the observability stack.
- performance-testing-review -- Load testing that generates the traffic monitored by this plugin.
- security-scanning -- Security monitoring and SIEM integration.
Details
- Marketplace
- HermeticOrmus/LibreUIUX-Claude-Code
- Source
- plugins/observability-monitoring
- Author
- Seth Hobson
- Category
- Operations
- License
- MIT
- Keywords
- observability, monitoring, metrics, logging, tracing, slo, prometheus, grafana
- Listed since
- Apr 7, 2026
More from HermeticOrmus/LibreUIUX-Claude-Code
All 71- payment-processingv1.2.1
- performance-testing-reviewv1.2.0
- python-developmentv1.2.1
- quantitative-tradingv1.2.0
- security-compliancev1.2.0
- security-scanningv1.2.2
- seo-analysis-monitoringv1.2.0
- seo-content-creationv1.2.0
- seo-technical-optimizationv1.2.0
- shell-scriptingv1.2.1
- systems-programmingv1.2.0
- tdd-workflowsv1.2.1
- team-collaborationv1.2.0
- unit-testingv1.2.0
- vibe-codingv1.0.0
- web-scriptingv1.2.0
- accessibility-compliancev1.2.0
- agent-orchestrationv1.2.0
- api-scaffoldingv1.2.1
- api-testing-observabilityv1.2.0
- application-performancev1.2.1
- archetypal-alchemyv1.0.0
- arm-cortex-microcontrollersv1.2.0
- backend-api-securityv1.2.0
Similar to observability-monitoring
More DevOps & Cloud
observabilityPlugingreyhaven-ai/claude-code-config31 starsProduction observability tools for monitoring, SLO implementation, alerting, and performance tracking. Includes monitoring setup, SLO configuration, distributed
devops-observability-srePluginmarslanalvi/SkillsStack5 starsMonitoring, tracing, logging, SLOs, incident response and on-call
distributed-debuggingPluginHermeticOrmus/LibreUIUX-Claude-Code126 starsDistributed system tracing and debugging across microservices
observability-guidelinesSkillmindrally/skills822 installsGuidelines for observability in distributed systems covering OpenTelemetry tracing, metrics, and structured logs.
openobserve-skillsPluginfcakyon/claude-codex-settings1.2K starsSearch logs, metrics, and traces and build OpenObserve dashboards via curl.
golang-observabilitySkillsamber/cc-skills-golang42K installsAlways-on Go observability: structured logs, metrics, tracing, profiling, and RUM for production services.