ankraio/ankra-cli/ankra-observability
Claude Code and agent skill by ankraio/ankra-cli
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Deploy and wire observability on Ankra clusters - central metrics on an infrastructure (hub) cluster with spokes remote-writing to it (kube-prometheus-stack, Grafana, Tempo), logs (OpenSearch with Fluent Bit, or Loki), the cluster's metrics source (`spec.prometheus_metrics`) and log source (`spec.log_source`) that power Ankra's metrics pages, log history and AI, Ankra hosted logs (`ankra cluster logs-ship`), and reading it all with `ankra cluster metrics` and `ankra cluster top`. Use when the user wants monitoring, metrics, dashboards, logging, central observability across clusters, or to connect Prometheus, Grafana Cloud, VictoriaMetrics, Thanos, Loki, Elasticsearch or OpenSearch to Ankra.
Install
npx vskill@latest install ankraio/ankra-cli/ankra-observabilitySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ankraio/ankra-cli/ankra-observability.
Ankra Observability
Observability on Ankra is ordinary stacks of Helm addons, plus a metrics source and a log source on each cluster that Ankra's own metrics pages, log history, insights and AI read from.
Recommended path
- Golden path 3, the estate: one infrastructure (hub) cluster holds central Prometheus,
Alertmanager and Grafana (and a log store); development and production clusters are thin senders that ship metrics and logs to it. Start with the hub, then add one spoke.
- Every cluster gets a metrics source in its cluster YAML (
spec.prometheus_metrics) so Ankra and
its AI can read it; apply through GitOps (ankra-gitops, ankra-stacks-addons).
- Alertmanager and Ankra's own notifications go to the same on-call channel -
ankra-alerts-webhooks. - Just want logs for one app with nothing to run?
ankra cluster logs-ship enable(hosted logs). - Avoid: a full Prometheus + Grafana + Alertmanager on every cluster, plaintext Grafana or webhook
secrets in Git, and kubectl port-forward to reach Grafana - publish it behind an Ingress with TLS.
Hub: the central metrics stack
Pin versions; reference catalogue registries (prometheus-community, grafana) by registry_name + registry_url; let the CRDs addon own the CRDs:
The values that make it a hub: crds.enabled: false, prometheus.prometheusSpec.enableRemoteWriteReceiver: true, a default scrapeClass stamping cluster=<hub name> on its own scrapes, and Alertmanager group_by including cluster. Every rule then evaluates the spokes' series too, so spokes need no Alertmanager. Run Grafana (and Tempo for traces) as their own addons. Expose the receiver as one Ingress path (/api/v1/write) with TLS and an IP allow-list of the spokes' egress addresses - write-only, never readable from outside.
Spokes: senders only
On development and production, the same kube-prometheus-stack chart in agent mode, nothing else:
Logs follow the same shape: a log store on the hub (OpenSearch operator with Dashboards, or Loki) and a shipper (Fluent Bit, or Promtail for Loki) on each spoke, each spoke with its own write-only user. Retention policies live in Git, not in a UI.
Metrics source and log source
Ankra's metrics pages, insights and AI read the cluster's configured sources. Declare them in the cluster YAML; the next sync connects them:
- A spoke in agent mode holds no queryable data: point its
prometheus_metricsat a hub query
endpoint (an Ingress with basic auth) with credential_name and verify_ssl: true.
- Credentials never go in Git.
username,password,tokenorauth_schemeinside either
block is refused by name. Create the credential in the portal (Settings → Integrations) or with ankra credentials datasource create --name <name> (add --username <user> for basic auth), and reference it with credential_name. The token or password is never an argument: pipe it with --secret-stdin or let the command prompt for it. ankra credentials datasource list shows what exists, never a secret. Use read-only, index-scoped credentials.
- Removing a block does not disconnect the source; disconnect in Settings → Integrations.
- External Prometheus-compatible endpoints: self-hosted Prometheus, Grafana Cloud, Thanos Query,
VictoriaMetrics. Amazon Managed Prometheus, Google Cloud Managed Prometheus and Azure Monitor are not selectable yet.
Ankra hosted logs
No log store of your own: the cluster's agent ships every container's log lines to Ankra, kept 7 days, searchable from each application's log history. Off by default, per cluster, needs clusters.write. A connected log_source takes precedence for history.
An agent too old to follow the switch sends nothing - ankra cluster agent upgrade.
Verify
A spoke missing from count by (cluster) is an allow-list or cluster label problem; a 403 on remote write means the spoke's egress address changed. ankra cluster exec <pod> -n <ns> -- curl -s https://ifconfig.me reads it from inside the spoke.
Rules
- Hub receives, spokes send. One Prometheus and one Grafana for the estate.
- Namespace first, then the stack via
parents(kind+name, never shorthand). - Pin chart versions, and use a
reclaimPolicy: Retainstorage class for Prometheus and log
data; protect the hub's stateful stacks with ankra-backups.
- No plaintext secrets (Grafana admin password, Alertmanager webhook, shipper passwords) -
seal with ankra-sops-secrets and declare encrypted_paths.
- Right-size retention and resources; avoid unbounded storage defaults.
Related skills
ankra-stacks-addons/ankra-gitops- stack composition and the cluster YAML.ankra-alerts-webhooks- routing Ankra notifications to the same on-call channel.ankra-troubleshooting- the diagnosis workflow these metrics and logs feed.ankra-domains-dns- hostnames and TLS for Grafana and the ingest endpoints.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginternal/skills/embedded/skills/ankra-observability/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ankraio/ankra-cli/ankra-observability)