mapping-tempo-topology-and-alerts

mapping-tempo-topology-and-alerts is a skill for Claude Code, Codex from talkops-ai/talkops-mcp. It costs 179 tokens per session (1,404 once invoked), scanned A, original, Apache-2.0.

A service-topology and alerting workflow for Grafana Tempo, a system that stores distributed request traces. It maps which services call each other and creates Prometheus rules for service-level objective alerts.

In plain words
What is it for?
Use it to inspect upstream and downstream dependencies, find coupling bottlenecks, and generate alert rules from span metrics and service graphs.
Why use it?
It helps reveal the likely impact of maintenance and identify tightly connected or failing services without manually piecing together trace data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect upstream and downstream dependencies, find coupling bottlenecks, and generate alert rules from span metrics and service graphs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/talkops-ai/talkops-mcp/mapping-tempo-topology-and-alerts
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add talkops-ai/talkops-mcp --skill mapping-tempo-topology-and-alerts
Clone the repo
git clone --depth 1 https://github.com/talkops-ai/talkops-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mapping-tempo-topology-and-alerts

README.md
[![agentmods](https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/mapping-tempo-topology-and-alerts/github.svg)](https://agentmods.dev/skills/talkops-ai/talkops-mcp/mapping-tempo-topology-and-alerts)
Your own site
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/mapping-tempo-topology-and-alerts"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/mapping-tempo-topology-and-alerts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mapping-tempo-topology-and-alerts

Your own site · 80×15
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/mapping-tempo-topology-and-alerts"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/mapping-tempo-topology-and-alerts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 179 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,404 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00179 $0.01404
Opus 5.5 $0.00072 $0.00562
Sonnet 5.5 $0.00036 $0.00281
Haiku 4.5 $0.00018 $0.00140

Measured 11d ago against content hash eb5a3e471d99, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mapping-tempo-topology-and-alerts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate_spanmetrics_prometheus_rule.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/tempo-mcp-server/skills/mapping-tempo-topology-and-alerts/SKILL.md · 35 lines

How it starts

The opening of the file, as written. The whole thing — 35 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mapping Tempo Topology and Alerts

Preconditions

  • Read tempo://server/capabilities and tempo://deployment/overview (and commands/setup-monitoring.md when invoked via /setup-monitoring) via MCP resources first to discover exact configured backend_id values (e.g. backend_id="default"—never pass a Kubernetes namespace like "observability" as backend_id!) and active metrics_generator.processors (service-graphs, span-metrics, local-blocks).
  • Preserve strict tenant (X-Scope-OrgID) isolation on multi-tenant Tempo backends so staging/chaos traffic never contaminates production topology maps.

Topology & Alerting Workflow Checklist

  • Step 1 — Discover Service Dependency Graph: Call tempo_get_service_dependencies(backend_id=..., since=..., service=..., sample_traces=..., tenant=...) using a verified backend_id from tempo://server/capabilities ("default"). Always pass service="<target_service>" explicitly when mapping a specific service's pre-maintenance blast radius (or service=None only for cluster-wide call graphs).
  • Step 2 — Report & Interpret All Three Discovery Tiers (source_used): Always state source_used and, whenever source_used != "prometheus", explicitly explain the full 3-tier topology discovery hierarchy (prometheus -> traceql_metrics_plus_trace_dag -> traceql_search):
    • prometheus (Tier 1): Precomputed traces_service_graph_request_total and traces_service_graph_request_failed_total series across 100% of ingested spans.
    • traceql_metrics_plus_trace_dag (Tier 2): Combines TraceQL Metrics rate() (local-blocks) with parent-child service DAG edges extracted from sampled OTLP traces.
    • traceql_search (Tier 3): Sampled trace parent-child DAG fallback when Prometheus service-graphs and local-blocks are unavailable (warn that low-QPS or conditional edges such as email or quote may be missed unless sample_traces is raised up to 50 or service-graphs + remote_write is enabled).
  • Step 3 — Assess Blast Radius, Unpaired Spans & High-Risk Edges:
    • Consult service-graph-and-spanmetrics.md to flag High-Coupling Bottlenecks (>= 3 distinct upstream client callers with call_rate >= 10.0 req/s) and Failing Dependency Edges (error_rate / call_rate >= 0.02), drilling into degraded downstream services with tempo_analyze_service_red(..., group_by="span:name").
    • Whenever traces_service_graph_unpaired_spans_total is elevated, always address both root causes: (1) uninstrumented datastores/external endpoints (postgresql, valkey-cart) that emit no SPAN_KIND_SERVER spans—configure peer_attributes (server.address, db.system, db.name, net.peer.name, peer.service) under metrics_generator.processor.service_graphs to materialize virtual nodes—and (2) internal application microservices (quote, email, etc.) missing SERVER spans due to disabled OTel instrumentation (otel.enabled=false) or stripped W3C traceparent headers.
  • Step 4 — Measure Target Service RED Baseline & Verify Metric Naming:
    • Call tempo_analyze_service_red on the target service to calibrate alert thresholds against observed request rate, error ratio, and p99 latency.
    • Distinguish Tempo metrics-generator series (traces_spanmetrics_calls_total, traces_spanmetrics_latency_bucket in seconds, retaining span_kind="SPAN_KIND_SERVER" and status_code="STATUS_CODE_ERROR" in Tempo span-metrics PrometheusRule expressions—do not strip span_kind="SPAN_KIND_SERVER" if non-Tempo eBPF/OBI metrics share the same name) from OpenTelemetry Collector spanmetrics connector series (traces_span_metrics_calls_total, traces_span_metrics_duration_milliseconds_bucket in milliseconds) to prevent dead alerts or 1000x unit bugs, and always explicitly recommend verifying exact active metric names and bucket units in the target Prometheus instance before deploying any PrometheusRule.
  • Step 5 — Generate Prometheus Alerting Rules: [GATE]
    • If --slo <pct> (e.g. /setup-monitoring ... --slo 99.9 --signals traces) or explicit error/latency thresholds ARE provided in the request, immediately execute scripts/generate_spanmetrics_prometheus_rule.py (calibrated to the SLO error budget / observed p99 baseline) and output the rendered monitoring.coreos.com/v1 PrometheusRule YAML manifest (confirming only before applying live to Kubernetes).
    • If neither --slo nor explicit error/latency thresholds were specified, propose calibrated --error-ratio and --p99-seconds values from the observed RED baseline and confirm target namespace and thresholds with the operator first.

Read the full file on GitHub · 35 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 35 lines · 179 tokens per session scan A eb5a3e471d99

Subscribe to this mod's changes

mapping-tempo-topology-and-alerts is a skill published in the GitHub repository talkops-ai/talkops-mcp (4 stars, last pushed 12d ago), licensed Apache-2.0. It adds 179 tokens to every session and 1,404 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-18.

Related

mapping-tempo-topology-and-alerts compared with skills from other repositories

mapping-tempo-topology-and-alerts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mapping-tempo-topology-and-alertstalkops-ai/talkops-mcpSkill412d agoApache-2.0A179Claude Code, Codex
agentcore-investigationawslabs/mcpSkill10.0k2d agoApache-2.0A52Claude Code, Codex
auditing-terraform-infrastructure-for-securityxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A59Claude Code, Codex
gcp-triagenirholas/three.wsSkill287yesterdayApache-2.0A93Claude Code
ssh-incidentbvisible/mcp-ssh-managerSkill554yesterdayMITA46Claude Code, Codex
deploy-runbooknirholas/three.wsSkill287yesterdayApache-2.0A38Claude Code
huawei-cloud-waf-aad-rule-managementhuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A338Claude Code