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.
npx skills add talkops-ai/talkops-mcp --skill tuning-sampling-and-trace-derived-metricsgit clone --depth 1 https://github.com/talkops-ai/talkops-mcpWrote 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.
[](https://agentmods.dev/skills/talkops-ai/talkops-mcp/tuning-sampling-and-trace-derived-metrics)<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/tuning-sampling-and-trace-derived-metrics"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/tuning-sampling-and-trace-derived-metrics/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.
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/tuning-sampling-and-trace-derived-metrics"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/tuning-sampling-and-trace-derived-metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00175 | $0.01035 |
| Opus 5.5 | $0.00070 | $0.00414 |
| Sonnet 5.5 | $0.00035 | $0.00207 |
| Haiku 4.5 | $0.00017 | $0.00103 |
Grade A, and why
tuning-sampling-and-trace-derived-metrics 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.
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.
How it starts
The opening of the file, as written. The whole thing — 37 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tuning Sampling and Trace-Derived Metrics
Preconditions
- Read
otel://server/capabilitiesvia MCP resources (preferring MCP over rawkubectlcommands) to verify write permissions (allow_write) and enabledpipelinetoolset. - Read
otel://sampling/{namespace}/{collector},otel://spanmetrics/{namespace}/{collector},otel://collector/{namespace}/{name}, andotel://collector/{namespace}/{name}/configto inspect existing sampling policies, connector wiring, deployment mode (daemonset,deployment,statefulset), and replica count.
Sampling & Connector Workflow Checklist
- Step 1 — Wire Pre-Sampling Connectors (
spanmetrics&servicegraph) First:- Always compute RED metrics (
calls,duration) and service topology edges (service_graph_request_total) before tail sampling drops normal spans, or else derived request counts and error percentages become skewed. - Call
otel_configure_connectors(namespace,collector_name,connectors=["spanmetrics", "servicegraph"],connector_options={"dimensions": ["http.request.method", "http.response.status_code"]},dry_run=True). - Consult
references/spanmetrics-and-servicegraph.mdfor dimension cardinality limits and exemplar rules.
- Always compute RED metrics (
- Step 2 — Select Sampling Strategy & Size Tail-Sampler Memory:
- Consult
references/sampling-decision-matrix.mdto choose betweenprobabilistichead sampling andtailsampling. - Hard Constraint (
CFG_TAIL_SAMPLING_NO_TRACE_AFFINITY): Never configuretail_samplingon adaemonsetcollector or a multi-replicadeploymentwithout aloadbalancingexporter (routing_key: traceID) upstream. - Run
scripts/estimate_tail_sampling_capacity.py --spans-per-sec 20000 --avg-spans-per-trace 25 --decision-wait-sec 10to calculatenum_traces, memory MiB, and replica count.
- Consult
- Step 3 — Preview Connector & Sampling Mutations (
dry_run=True):- Call
otel_configure_sampling(namespace,collector_name,strategy="tail",sampling_options={"sample_rate": 0.10, "decision_wait": "10s", "num_traces": 50000, "has_load_balancing_exporter": True},dry_run=True) or runscripts/render_tail_sampling_policies.pyfor custom composite policies. - When asked to temporarily disable sampling (
strategy="none", 100% capture) during a live incident, warn about downstream Temporate_limited/ storage spikes, preview withotel_configure_sampling(..., strategy="none", dry_run=True), and explicitly recommend restoringtailsampling immediately once incident trace capture finishes. [GATE]Present the capacity calculation, connector wiring, and unified diff to the user for approval before applying.
- Call
- Step 4 — Apply & Verify Pipeline Health:
- Re-run
otel_configure_connectorsandotel_configure_samplingwithdry_run=False. - Verify via
otel_diagnose_collectorthat noCFG_CONNECTOR_LOOP,CFG_TAIL_SAMPLING_ON_DAEMONSET, orRT_MEMORY_PRESSUREfindings are reported.
- Re-run
What ships with it
4 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.
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.
- 11d ago First seen · 37 lines · 175 tokens per session scan A e3dfe24ef658
tuning-sampling-and-trace-derived-metrics is a skill published in the GitHub repository talkops-ai/talkops-mcp (4 stars, last pushed 12d ago), licensed Apache-2.0. It adds 175 tokens to every session and 1,035 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.
tuning-sampling-and-trace-derived-metrics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tuning-sampling-and-trace-derived-metricstalkops-ai/talkops-mcp | Skill | 4 | 12d ago | Apache-2.0 | A | 175 | Claude Code, Codex |
| argocdalivirgo/Major-AI-Skills | Skill | 6 | yesterday | MIT | A | 42 | Claude Code |
| airdrop-hunting-guidenirholas/three.ws | Skill | 287 | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| opik-diagnosecomet-ml/opik-mcp | Skill | 227 | 4d ago | Apache-2.0 | A | 187 | Claude Code |
| ue-mcp-epic-routingdb-lyon/ue-mcp | Skill | 526 | today | MIT | A | 81 | Claude Code, Codex |
| qa-knowledgegriddynamics/rosetta | Skill | 382 | 5d ago | Apache-2.0 | A | 32 | Claude Code, Codex |
| x-use-reviewihuzaifashoukat/x-use | Skill | 187 | 7d ago | MIT | A | 56 | Claude Code |