/auplc:monitor-aup-learning-cloudfrom auplc
Wires AUP Learning Cloud into Prometheus+Grafana monitoring: enables ServiceMonitor, metrics token, dashboards, and alerts. Use to monitor the Hub, scrape /hub/metrics, or debug DOWN/Unauthorized targets.
Ships in auplc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn on Hub observability: have the chart create the monitoring objects
(ServiceMonitor, authenticated token secret, Grafana dashboard ConfigMaps,
alert rules, metrics NetworkPolicy) and make a Prometheus Operator stack
scrape /hub/metrics so dashboards and alerts light up.
Enable the monitoring.* block in a values overlay and re-apply with Helm. The
full value reference, the kube-prometheus-stack install, and troubleshooting are
in reference.md.
helm + kubectl.kube-prometheus-stack (reference) or an existing
Prometheus Operator + Grafana you can point at the jupyterhub namespace.release: <monitoring.releaseLabel> on ServiceMonitor/PrometheusRule, and it must
match what the operator selects.| Situation | Action |
|---|---|
| No monitoring stack yet | Install kube-prometheus-stack as release monitoring in namespace monitoring; keep releaseLabel: monitoring |
| Existing Prometheus Operator + Grafana | Set monitoring.releaseLabel to the operator's selector; confirm it watches monitoring ns and can scrape jupyterhub |
Ensure a stack exists. Confirm Prometheus Operator + Grafana are running (install kube-prometheus-stack if not — see reference).
Enable monitoring values in the overlay. Recommended production shape:
monitoring:
enabled: true
namespace: monitoring
releaseLabel: monitoring
hubMetrics:
enabled: true
allowUnauthenticatedScrape: false
serviceMonitor:
enabled: true
interval: 15s
authorization:
enabled: true
type: Bearer
hubServiceName: prometheus-metrics
secret: { create: true, name: "", key: token }
grafana:
dashboard: { enabled: true }
prometheusRule:
enabled: true
Keep releaseLabel honest. It must equal the operator's rule/monitor
selector or nothing gets scraped.
Pre-flight the render. helm template jupyterhub ./runtime/chart -f runtime/values.yaml -f <overlay> must succeed (the chart validates that
hubServiceName exists under hub.services with a matching read:metrics
role).
Apply.
helm upgrade --install jupyterhub ./runtime/chart -n jupyterhub \
-f runtime/values.yaml -f <overlay>
Verify the objects and the live target:
skills/monitor-aup-learning-cloud/scripts/verify_monitoring.sh
It checks the ServiceMonitor, token secret, dashboard ConfigMap, and
metrics NetworkPolicy, then port-forwards Prometheus and confirms the
hub target is UP. Manual checks are in reference.md.
/hub/metrics requires a JupyterHub token. The ServiceMonitor authorization
block makes the chart create a token secret (<release>-metrics-token) in the
monitoring namespace and scrape with a Bearer token. Annotation-based scraping
cannot attach the token — leave serviceAnnotations off in production.
hub_spawn_gpu_total, hub_spawn_failed_total, hub_active_sessions,
hub_session_runtime_minutes, hub_spawn_duration_seconds,
hub_quota_denied_total, hub_quota_deducted_total, hub_pod_failure_total,
hub_repo_clone_failed_total. Alert rules cover hub_spawn_failed_total and
hub_pod_failure_total.
allowUnauthenticatedScrape: true in production. It exposes
/hub/metrics without a token; only safe in an isolated dev cluster where the
endpoint is never reachable via proxy/NodePort/LoadBalancer/Ingress.helm upgrade restarts the Hub pod (brief login blip) — schedule around a
live class.scripts/verify_monitoring.sh) only port-forwards;
it makes no cluster changes.The full monitoring.* value reference, kube-prometheus-stack install,
existing-stack reuse, manual verification commands, and troubleshooting:
reference.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/build-aup-learning-cloud-imagesGroup: Plan & deploy AUP Learning Cloud. Builds and publishes the AUP Learning Cloud Docker images — the Hub image and the CPU/GPU notebook and course images — with ./auplc-installer img build. Use when the user wants to build, rebuild, tag, or push AUPLC images, mentions img build / img pull, the dockerfiles/ directory, auplc-hub / auplc-base / auplc-default / auplc-cv / auplc-dl / auplc-llm / auplc-physim / code-cpu / code-gpu, a gfx-specific image tag, the GHCR registry, code-server VS Code extensions, or preparing images for an offline/registry deployment. Covers GPU-target tagging and pushing to a registry. Do not use to install or deploy a cluster (install-/deploy-aup-learning-cloud) or to edit the course catalog in values.yaml (configure-aup-learning-cloud-courses)./configure-aup-learning-cloud-authGroup: Maintain AUP Learning Cloud. Configures authentication for AUP Learning Cloud with custom.auth provider flags for auto-login, dummy, native, GitHub, or native plus GitHub. Covers GitHub App OAuth and team sync, native accounts, password policy, forced first-login change, and custom.adminUser bootstrap. Use for custom.auth, GitHubOAuthenticator, custom.githubOrgName, oauth_callback_url, allowed_organizations, jupyterhub-admin-credentials, login 404s, OAuth callback errors, or "Resource not accessible by integration". Do not use for resource-to-group mapping (configure-aup-learning-cloud-courses), bulk users (manage-aup-learning-cloud-users), or private-repo cloning (configure-aup-learning-cloud-repos).npx claudepluginhub amdresearch/aup-learning-cloud --plugin auplcOther plugins' skills for the same job