metrics-graphana
Skill24k starsChanged 8 months agoMITView on GitHub
Query and manage Grafana dashboards and Prometheus metrics for Happy infrastructure. Covers grafanactl CLI usage, direct Prometheus queries through Grafana proxy, and dashboard-as-code workflows. Use when user asks about metrics, dashboards, monitoring, Grafana, Prometheus, or wants to add/modify panels.
- Reads credentials
- Installs packages
1 other project uses a version of this, 1 of them edited.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- Altman-conquer/agentrejoinedited, first seen Apr 7, 2026
Who's talking about slopus/happy
- A Hacker News story“Show HN: Happy Coder – End-to-End Encrypted Mobile Client for Claude Code”Hacker News · Aug 14, 2025 · 30 points
- slopus/happy-cli“feat: add OpenCode integration support”GitHub · Jan 7, 2026 · 17 reactions
- @koki.me“これ面白そう GitHub - slopus/happy: Mobile and Web client for Codex and Claude Code, with realtime voice, …”Bluesky · Jan 5, 2026 · 9 likes
- slopus/happy-cli“Support for Claude Code 2.0 and Sonnet 4.5”GitHub · Sep 29, 2025 · 4 reactions
- @tako-yaki-man.bsky.social“外出先からのスマホからでもクロードコードいじりたい依存者へ github.com/slopus/happy”Bluesky · Feb 24, 2026 · 3 likes
The biggest 5 of 58 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 58
Talked about on GitHub, Bluesky and Hacker News (58 times).
On GitHub · 50
- Jan 7, 2026feat: add OpenCode integration support — slopus/happy-cli17 reactions · 1 comment
- Sep 29, 2025Support for Claude Code 2.0 and Sonnet 4.5 — slopus/happy-cli4 reactions · 1 comment
- Jan 21, 2026docs: update self-hosting guide with Docker Compose and MinIO setup & enhance CLAUDE.md with project architecture — slopus/slopus.github.io3 reactions · 3 comments
- Aug 13, 2026Render agent-style TeX delimiters as math — happier-dev/happier1 reaction · 5 comments
- May 8, 2026feat: add happy to allowLargePackages — cnpm/unpkg-white-list1 reaction · 3 comments
45 more on GitHub
- Apr 29, 2026Proposal: surface tasks/todos as a first-class entity with cross-provider tracking — getpaseo/paseo1 reaction · 2 comments
- Feb 12, 2026Feature Request: Launching Without a Project / Supporting Multiple Projects — sijiaoh/pockode1 reaction · 3 comments
- Dec 17, 2025fix --resume --continue not working temporarily since 0.12.0 — slopus/happy-cli1 reaction · 1 comment
- Sep 1, 2025Add Happy Coder (open source native mobile app) to README.md — webfuse-com/awesome-claude1 reaction
- Aug 16, 2025Add support for happy to enable coding on mobile devices — RchGrav/claudebox1 reaction · 3 comments
- Nov 25, 2026agent-skills.github.slopus.happy: 1.1.6 → 0-unstable-2026-11-15 — sudosubin/agents.nix0 reactions
- Nov 3, 2026agent-skills.github.slopus.happy: 3 → 1.1.6 — sudosubin/agents.nix0 reactions
- Oct 21, 2026Open source alternatives to manage agents — pietroid/lunna0 reactions · 1 comment
- Oct 12, 2026RICE 5: See two or more sessions side by side — agentloops-dev/agent-loops0 reactions · 3 comments
- Oct 12, 2026Web page: install it as an app on a phone's home screen (Android included) — agentloops-dev/agent-loops0 reactions · 1 comment
- Oct 12, 2026Add Happy CLI harness detection — auron-labs/harness-detect0 reactions
- Oct 5, 2026chore(happy): drop the webapp mount once the app's server check is fixed — anthony-spruyt/spruyt-labs0 reactions · 1 comment
- Oct 4, 2026agent-skills.github.slopus.happy: init at 3 — sudosubin/agents.nix0 reactions
- Sep 28, 2026fix(cli): release stdin before handing terminal to local-mode child — tiann/hapi0 reactions · 1 comment
- Sep 14, 2026feat(happy): sync bot pictures as encrypted session avatars — slopus/happy-agent0 reactions · 1 comment
- Sep 9, 2026[upstream] Agy stream-JSON progress rendering — timmikk/happy0 reactions
- Sep 3, 2026[Bug] Responses→Chat 转换器将非 function 类型工具原样透传,导致 chat 上游必然 400 — QuantumNous/new-api0 reactions · 1 comment
- Aug 13, 2026Markdown: render agent-style TeX delimiters as math — happier-dev/happier0 reactions
- Aug 9, 2026The neighbors: tools that put a face on coding agents — alp82/curia0 reactions · 3 comments
- Aug 7, 2026Push notifications for agent events — tienan92it/kitterm0 reactions · 1 comment
- Jul 11, 2026happy-coder: deprecate as newer versions have non-FOSS dependency — Homebrew/homebrew-core0 reactions
- May 28, 2026[Link]: slopus/happy: Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully featured — tinylabscom/this-week-in-microvms0 reactions
- May 21, 2026[P2] fix: Progress panel 多 list 切换形同虚设 (upstream #1305) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P3] question: Better than Dispatch/RC? (upstream #1236) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P3] fix: /btw 在当前环境不可用 (upstream #1226) — kmmao/happy0 reactions · 2 comments
- May 21, 2026[P3] feat: Android 前台 Service 保持语音模式运行 (upstream #1238) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P3] feat: 支持自定义回答提交方式 (upstream #1243) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P3] feat: 允许 Happy Codex 接入已有 Codex app-server (upstream #1253) — kmmao/happy0 reactions · 2 comments
- May 21, 2026[P3] feat: 支持 Google Antigravity (agy) CLI (upstream #1313) — kmmao/happy0 reactions · 2 comments
- May 21, 2026[P2] feat: 添加 PIN / 生物识别 App 锁 (upstream #1262) — kmmao/happy0 reactions · 3 comments
- May 21, 2026[P2] feat: 接入缺失的 Claude Code CLI 子命令 (upstream #1266) — kmmao/happy0 reactions · 2 comments
- May 21, 2026[P2] feat: 移动端支持文件/图片上传 (upstream #1270) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: happy codex 未转发 sandbox 标志导致 bwrap 失败 (upstream #1246) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: zod v3/v4 peer dependency 冲突 (upstream #1265) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: Android alwaysShowContextSize 开关无效 (upstream #1274) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: 远程切回本地模式报 FKH onSessionRestored 错误 (upstream #1231) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: Web 浏览器缩放被强制设为 0.75 (upstream #1309) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: happy codex 终端挂起 (upstream #1261) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: chat title 不再自动创建 (upstream #1251) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: Codex 内存泄漏到新 session (upstream #1277) — kmmao/happy0 reactions · 1 comment
- May 12, 2026upstream: watch slopus/happy#1262 — app-level PIN/biometric lock — thenemal/happy-server0 reactions
- May 11, 2026Mobile/web appears frozen after overnight inactivity (stale client connection) — thenemal/happy-server0 reactions
- May 9, 2026Self-hosting docs are outdated and point to legacy `happy-server` setup? — slopus/slopus.github.io0 reactions
- Apr 17, 2026Add Claude Code Docker image with happy tool — ilteoood/docker-harnesses0 reactions · 1 comment
- Apr 12, 2026byobu/tmux session support for terminal sessions (project → tmux session, task → tmux window), helps allow remote ssh access — debuglebowski/slayzone0 reactions · 1 comment
On Bluesky · 7
- Jan 5, 2026これ面白そう GitHub - slopus/happy: Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully featured… — @koki.me9 likes and reposts · 1 reply
- Feb 24, 2026外出先からのスマホからでもクロードコードいじりたい依存者へ github.com/slopus/happy — @tako-yaki-man.bsky.social3 likes and reposts
- Oct 13, 2025📖 Happy — Editor markdown & catatan ringan, open-source & fokus kenyamanan pengguna ✍️ Real-time preview, tema, dukungan LaTeX & tabel 🔗… — @its-me-rhk.bsky.social3 likes and reposts
- Aug 8, 2026スマホやWebからClaude CodeなどのAIエージェントをリモート操作できるモバイルクライアントツールっぽい 移動中や外出先からもAIコーディングの続きができて便利そう yug1224 starred slopus/happy… — @yug1224.com2 likes and reposts
- Aug 8, 2026github.com/slopus/happy GitHub - slopus/happy: Mobile and Web client for Codex and Claude Code, with realtime voice, enc... — @technews4869.bsky.social1 likes and repost
2 more on Bluesky
- Aug 3, 2026📦 slopus / happy ⭐ 23,056 (+41) 🗒 TypeScript Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully… — @github-trending-js.bsky.social1 likes and repost
- Jan 14, 2026monitor your agents remotely: simple + free + quick: github.com/slopus/happy complex + powerful + paid: HOST=0.0.0.0 npx vibe-kanban ngrok… — @mikestaub.social1 likes and repost · 1 reply
On Hacker News · 1
- Aug 14, 2025Show HN: Happy Coder – End-to-End Encrypted Mobile Client for Claude Code30 points · 8 comments
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- Altman-conquer/agentrejoin★ 9399% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-browserSkill
- control-flowSkill
- devSkill
- maintainSkill
- office-hoursSkill
- releaseSkill
- sessionsSkill
- terminal-emulatorSkill
- agent-browserSkill
- terminal-emulatorSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
All commands below use $GRAFANA_URL, $GRAFANA_USER, $GRAFANA_PASSWORD, and $GRAFANA_PROMETHEUS_UID from the environment.
- Very specific: line 42
Ensure $HOME/go/bin is on your PATH.
- Distinctive: line 222
When adding panels to a dashboard JSON, follow this pattern:
- Very specific: line 223
Use the Prometheus datasource: {"type": "prometheus", "uid": "$GRAFANA_PROMETHEUS_UID"}
- Distinctive: line 233
Always pull before editing to get the latest state
- Very specific: line 234
Use --dry-run on push to preview changes
- Distinctive: line 237
When investigating metrics, start with instant queries for current state, then use range queries for trends
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Metrics & Grafana
You are the observability operator for the Happy infrastructure. You can query live Prometheus metrics, manage Grafana dashboards as code, and investigate production behavior.
Environment Variables
Credentials are stored in the repo root .env file (gitignored). Load them before running commands:
GRAFANA_URL=...
GRAFANA_USER=...
GRAFANA_PASSWORD=...
GRAFANA_PROMETHEUS_UID=...To load in shell:
set -a; source .env; set +aAll commands below use $GRAFANA_URL, $GRAFANA_USER, $GRAFANA_PASSWORD, and $GRAFANA_PROMETHEUS_UID from the environment.
Prerequisites
Install grafanactl
go install github.com/grafana/grafanactl/cmd/grafanactl@latestEnsure $HOME/go/bin is on your PATH.
Configure grafanactl
# Load env vars first
set -a; source .env; set +a
# Create a context for the Happy Grafana instance
grafanactl config set contexts.happy.grafana.server "$GRAFANA_URL"
grafanactl config set contexts.happy.grafana.user "$GRAFANA_USER"
grafanactl config set contexts.happy.grafana.password "$GRAFANA_PASSWORD"
grafanactl config set contexts.happy.grafana.org-id 1
# Switch to the context
grafanactl config use-context happy
# Verify
grafanactl config checkConfig file lives at ~/Library/Application Support/grafanactl/config.yaml (macOS) or ~/.config/grafanactl/config.yaml (Linux).
grafanactl CLI Reference
List resources
grafanactl resources list # List all resource types
grafanactl resources get dashboards # List all dashboards
grafanactl resources get folders # List all foldersPull dashboards (export to disk)
grafanactl resources pull dashboards -p ./resources -o json
grafanactl resources pull dashboards/DASHBOARD_ID -p ./resources -o jsonPush dashboards (deploy from disk)
# Push all dashboards from ./resources
grafanactl resources push dashboards -p ./resources
# Push a specific dashboard
grafanactl resources push dashboards/DASHBOARD_ID -p ./resources
# IMPORTANT: Use --omit-manager-fields to keep dashboards editable from the Grafana UI
grafanactl resources push dashboards -p ./resources --omit-manager-fields
# Dry run (no changes)
grafanactl resources push dashboards -p ./resources --dry-runWorkflow: Edit a dashboard
# 1. Pull current state
mkdir -p /tmp/grafana-work
grafanactl resources pull dashboards -p /tmp/grafana-work -o json
# 2. Edit the JSON files (add panels, modify queries, etc.)
# 3. Push back — always use --omit-manager-fields to avoid locking the UI
grafanactl resources push dashboards -p /tmp/grafana-work --omit-manager-fieldsWarning: Pushing without
--omit-manager-fieldsmarks the dashboard as "provisioned" and locks it from UI edits. Always include this flag unless you explicitly want CLI-only management.
Querying Prometheus Directly
You can query Prometheus through Grafana's datasource proxy API. This is useful for live investigation without touching the Grafana UI.
Instant query (current value)
curl -s -u "$GRAFANA_USER:$GRAFANA_PASSWORD" \
--data-urlencode 'query=YOUR_PROMQL_HERE' \
"$GRAFANA_URL/api/datasources/proxy/uid/$GRAFANA_PROMETHEUS_UID/api/v1/query" \
| python3 -m json.toolRange query (time series)
curl -s -u "$GRAFANA_USER:$GRAFANA_PASSWORD" \
--data-urlencode 'query=YOUR_PROMQL_HERE' \
--data-urlencode 'start=UNIX_TIMESTAMP' \
--data-urlencode 'end=UNIX_TIMESTAMP' \
--data-urlencode 'step=60' \
"$GRAFANA_URL/api/datasources/proxy/uid/$GRAFANA_PROMETHEUS_UID/api/v1/query_range" \
| python3 -m json.toolList all metric names
curl -s -u "$GRAFANA_USER:$GRAFANA_PASSWORD" \
"$GRAFANA_URL/api/datasources/proxy/uid/$GRAFANA_PROMETHEUS_UID/api/v1/label/__name__/values" \
| python3 -c "import json,sys; [print(n) for n in json.load(sys.stdin)['data']]"Filter metric names
# Find all RPC-related metrics
curl -s -u "$GRAFANA_USER:$GRAFANA_PASSWORD" \
"$GRAFANA_URL/api/datasources/proxy/uid/$GRAFANA_PROMETHEUS_UID/api/v1/label/__name__/values" \
| python3 -c "import json,sys; [print(n) for n in json.load(sys.stdin)['data'] if 'rpc' in n.lower()]"Key Metrics
Application metrics (handy-server)
| Metric | Type | Description |
rpc_calls_total | counter | RPC calls by method and result (success, not_available, target_disconnected, timeout) |
rpc_call_duration_seconds_bucket | histogram | RPC call duration by method |
rpc_lookup_retries_bucket | histogram | Number of retries per socket lookup by method |
rpc_fetchsockets_timeouts_total | counter | fetchSockets timeout count by context (lookup, presence) |
websocket_connections_total | gauge | Active WebSocket connections by type |
websocket_events_total | counter | WebSocket events by type |
http_requests_total | counter | HTTP requests by method, route, status |
http_request_duration_seconds_bucket | histogram | HTTP request duration by route |
session_cache_operations_total | counter | Session cache hits/misses by operation |
session_alive_events_total | counter | Session keepalive events |
machine_alive_events_total | counter | Machine keepalive events |
database_records_total | gauge | Record counts by table |
database_updates_skipped_total | counter | Skipped DB updates by type |
Useful PromQL queries
# RPC success rate by method
sum by(method) (rate(rpc_calls_total{result="success"}[5m]))
/ (sum by(method) (rate(rpc_calls_total[5m])))
# RPC failures by method and reason
sum by (method, result) (rate(rpc_calls_total{result!="success"}[5m]))
# RPC failures by type only
sum by (result) (rate(rpc_calls_total{result!="success"}[5m]))
# RPC P95 latency by method
histogram_quantile(0.95, sum by (method, le) (rate(rpc_call_duration_seconds_bucket[5m])))
# Socket lookup retry distribution (P95)
histogram_quantile(0.95, sum by (method, le) (rate(rpc_lookup_retries_bucket[5m])))
# fetchSockets timeout rate by context
sum by (context) (rate(rpc_fetchsockets_timeouts_total[5m]))
# HTTP error rate
sum(rate(http_requests_total{status=~"5.."}[5m])) / sum(rate(http_requests_total[5m]))
# Top routes by request rate
topk(10, sum by(method, route) (rate(http_requests_total[5m])))Dashboards
Happy Server Application Metrics
- ID:
470da978-91f7-4721-be2c-cc451bf074a2 - Tags: happy-server, application, websocket, http, database
- Panels: WebSocket connections, session cache, alive events, HTTP metrics, database stats, RPC metrics
Adding a panel
When adding panels to a dashboard JSON, follow this pattern:
- Use the Prometheus datasource:
{"type": "prometheus", "uid": "$GRAFANA_PROMETHEUS_UID"} - Pick the next available
id(check existing panels for max id) - Position with
gridPos:h= height (8 standard),w= width (12 half, 24 full),x= column (0 or 12),y= row - Common panel types:
stat,timeseries,piechart,bargauge,table - Set appropriate
unit:percentunit,ops,s,short,reqps
Tips
- Always pull before editing to get the latest state
- Use
--dry-runon push to preview changes - The
--omit-manager-fieldsflag is essential for hybrid CLI+UI workflows - Range queries need Unix timestamps — use
date +%sto get current time - When investigating metrics, start with instant queries for current state, then use range queries for trends
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

