Skip to content

About

Splunk dashboards for keeping tabs on your AI coding companions' token appetites — OTel-aligned observability for Claude, Gemini, and friends

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

VisiCore App for AI Observability

Splunk App providing Dashboard Studio v2 dashboards for AI coding tool observability. Companion to VisiCore_TA_AI_Observability.

Architecture

Filesystem -> Cribl Edge -> Cribl Stream -> Splunk HEC -> Splunk Enterprise
   (JSON)      (packs)      (routing)       (port 8088)    (index=claude)

Dashboards

  • AI Overview (landing page) - Cross-provider single pane: Claude KPIs, Gemini/Copilot feed status, activity by provider. Providers without data show explicit "No data" status rows instead of empty panels.
  • Claude Code Overview - KPIs, token trends, cost, cache, model distribution, tool usage, top sessions
  • Token Usage - Token mix across input, output, cache read, cache creation; per-model and per-session
  • Cost Analysis - Lookup-driven spend by model, session, and project, with an Unpriced Messages KPI that surfaces models missing from the TA's pricing lookup
  • Tool Activity - Tool call patterns and file operations
  • Sessions - Session-level analysis with duration, project attribution, and drill-down filtering
  • AI Session Time Accounting - Where every second of a session went (TOOL_EXEC, SUBAGENT_WAIT, MODEL_ACTIVE, HUMAN_IDLE, SYSTEM_OVERHEAD); drill into one session by ID or leave it as * for a fleet-wide rollup
  • Cache Performance - Prompt caching efficiency and model-aware estimated savings

Dashboard conventions (Splunk 10.x Dashboard Studio)

  • Transforming base searches + ds.chain: every base data source ends in a transforming command (timechart/stats); derived panels are ds.chain data sources that extend the base. Chains never set their own queryParameters and stay within Splunk's documented limits (max 10 chains per base, one level).
  • Shared defaults block supplies the global time range to all base searches; filter tokens are consumed only in base searches.
  • All metric SPL routes through TA macros (claude_metric_events, extract_tools, ...). Zero inline pricing or token math — pricing lives only in the TA's ai_model_pricing.csv lookup. CI enforces this via scripts/validate_dashboards.py.
  • Packaging format: Dashboard Studio definitions ship as JSON inside <dashboard version="2"> XML CDATA under default/data/ui/views/. Standalone .json files are not loadable by Splunk app packaging — the XML wrapper with embedded JSON is the canonical on-disk format.
  • Cross-dashboard drilldowns via drilldown.linkToDashboard (e.g. session tables link into Sessions with the session pre-filtered).

Installation

Requires the companion TA (>= 0.2.0) installed first:

splunk install app VisiCore_TA_AI_Observability-*.tar.gz
splunk install app VisiCore_App_for_AI_Observability-*.tar.gz
splunk restart

Ensure indexes exist: claude, gemini (plus vscode/openai for Copilot/OpenAI feeds). Configure data inputs via the cc-edge Cribl packs. Index locations are configurable by overriding the TA's claude_index / gemini_index / copilot_index / openai_index macros in local/.

Usage

Navigate to the VisiCore app in Splunk Web. AI Overview is the landing page:

  1. AI Overview - Cross-provider status; start here to see which feeds are live
  2. Claude Code Overview - Summary of all Claude Code activity, with drilldowns into every detail page
  3. Token Usage - Drill into token consumption patterns (filter by model)
  4. Cost Analysis - Track spend by model, session, and project; watch the Unpriced Messages KPI
  5. Tool Activity - Monitor tool call patterns and file operations
  6. Sessions - Analyze individual coding sessions (filter by project or session ID)
  7. AI Session Time Accounting - See where a session's time went by category, or roll up the fleet
  8. Cache Performance - Evaluate prompt caching efficiency and savings

All dashboards share a global time range picker (default: last 7 days).

Validation

python3 scripts/validate_dashboards.py default/data/ui/views/*.xml

Checks CDATA JSON validity, data-source referential integrity, ds.chain resolution, and the no-inline-pricing guard. CI runs this plus Splunk AppInspect on every push.

Packaging

./scripts/package.sh

Produces a versioned tarball in build/.

Release Notes

0.3.0

  • New AI Session Time Accounting dashboard: TOOL_EXEC/SUBAGENT_WAIT/MODEL_ACTIVE/HUMAN_IDLE time accounting per session or fleet-wide, via the TA's claude_time_accounting_by_gap macro.

0.2.0

  • All six Claude dashboards rebuilt to Splunk 10.x Dashboard Studio best practices: transforming base searches with ds.chain post-processing (previously non-transforming bases with ds.search+extend), shared defaults block, null-safe KPI chains ending in | fields.
  • New AI Overview cross-provider landing dashboard with graceful no-data provider status.
  • Inline pricing math removed everywhere; cost flows through the TA's calculate_cost lookup macro, with new Unpriced Messages visibility on Cost Analysis.
  • Model/project filter inputs added (Token Usage, Cost Analysis, Cache Performance, Sessions); cross-dashboard drilldowns added.
  • CI added: AppInspect + dashboard structural validation.
  • Requires VisiCore_TA_AI_Observability >= 0.2.0 (canonical token field names, claude_metric_events macro).

References


Part of a larger ecosystem of ~40 repos — see how it all fits together.

About

Splunk dashboards for keeping tabs on your AI coding companions' token appetites — OTel-aligned observability for Claude, Gemini, and friends

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages