observability-translation
Skill139 starsChanged 6 months agoApache-2.0View on GitHub
Translates Prometheus scrape annotations into Google Kubernetes Engine (GKE) Managed Service for Prometheus (GMP) PodMonitoring Custom Resource Definitions (CRD), and maps AWS CloudWatch metric configurations to Google Cloud Monitoring. Use when converting prometheus.io/scrape annotations into GKE PodMonitoring specifications. Don't use for network ingress routing or IAM role mapping.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- geoffsdesk/portagetheir own version, first seen May 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- geoffsdesk/portage★ 0same name
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 repository45 other files it gives its agents.
- spanner-provisioningSkill
- ad-copywritingSkill
- brand-strategySkill
- platform-specsSkill
- trend-analysisSkill
- video-storytellingSkill
- visual-directionSkill
- ad-copywritingSkill
- brand-strategySkill
- platform-specsSkill
- trend-analysisSkill
- video-storytellingSkill
- visual-directionSkill
- code-reviewSkill
- documentationSkill
- idea-to-appSkill
- open-prSkill
- pre-commitSkill
- security-scanSkill
- unit-testsSkill
- modernize-dotnet-cloudrunSkill
- legacy-app-generatorSkill
- app-migration-executionSkill
- app-migration-orchestratorSkill
- identity-translationSkill
- network-translationSkill
- storage-translationSkill
- workload-translationSkill
- ingress2gatewaySkill
- eks-discoverySkill
- gke-landing-zoneSkill
- identity-translationSkill
- migration-assessmentSkill
- network-translationSkill
- observability-translationSkill
- platform-orchestratorSkill
- registry-migrationSkill
- storage-translationSkill
- validationSkill
- bigframes-bqmlSkill
- model-evaluationSkill
- pipeline-generatorSkill
- spark-lightning-optimizationSkill
- unified-model-registrySkill
- zero-copy-ingestionSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 81
Verify that every workload that has scrape annotations enabled has a corresponding scraping target entry in observability-map.json:
- Very specific: line 105
Read the mapping from observability-map.json using the workload key (namespace/workload-name).
- Very specific: line 120
Read metric mappings from references/metrics_and_dashboards.md to convert CloudWatch metric names (e.g.
- Distinctive: line 125
If a metric is unmapped, attempt LLM semantic resolution.
- Distinctive: line 129
Update Grafana dashboard datasources and rewrite CloudWatch metric math queries into PromQL or MQL.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Observability translation
<!--
Disabling markdownlint MD029 to provide explicit ordering to avoid
confusing the LLM.
--><!-- markdownlint-disable MD029 --><!--
Disabling markdownlint MD030 to allow the list overflowing to numbers
>=10.
--><!-- markdownlint-disable MD030 -->Purpose
Automate the mapping and translation of application scraping configurations from Prometheus annotations to Google Kubernetes Engine (GKE) Managed Service for Prometheus (GMP) Custom Resource Definitions (CRDs).
When to use this skill
Trigger on:
- "Translate Prometheus scrape annotations to GKE Managed Prometheus"
- "Convert prometheus.io/scrape to PodMonitoring YAMLs"
- "Map CloudWatch alarms to GKE alerting policies"
Prerequisites
python3version 3.10 or later- Install dependencies listed in
scripts/requirements.txt:pip install --require-hashes -r scripts/requirements.txt - Path to handoff directory containing
workload-handoff.json(orworkload-handoff-namespace.json) andobservability-map.json
Assets and references
The following schema files under assets/schemas/ define the JSON contracts
used by this skill:
observability-map.schema.json: Schema for validating metrics and observability mappings.workload-handoff.schema.json: Schema for cluster-level workload handoff specifications.workload-handoff-namespace.schema.json: Schema for namespace-level workload handoff specifications.
The following reference documents under references/ provide translation
guidance:
- references/prometheus_to_gmp.md: Guidance for translating Prometheus scrape configs to GKE PodMonitoring.
- references/alerting_policies.md: Guidance for mapping CloudWatch alarms to Google Cloud alerting policies.
- references/metrics_and_dashboards.md: Metrics and dashboard mapping guidelines.
The following dependency files under scripts/ are used by this skill:
scripts/requirements.in: Input dependencies for python validation scripts.scripts/requirements.txt: Hashed dependency lockfile for python validation scripts. Install using:pip install --require-hashes -r scripts/requirements.txt
Procedure
Step 1 — Validate observability mapping completeness
Verify that every workload that has scrape annotations enabled has a
corresponding scraping target entry in observability-map.json:
python3 scripts/validate_observability_map.py --handoff-dir "${HANDOFF_DIR:-.}"Step 2 — Translate observability resources
Prometheus resources to GKE Managed Service for Prometheus (GMP)
Identify workloads with Pod templates having Prometheus scrape annotations:
prometheus.io/scrape: "true"(required trigger annotation)prometheus.io/path(e.g."/metrics", defaults to"/metrics"if omitted)prometheus.io/port(e.g."8080", defaults to"8080"if omitted)
[!NOTE]
Port and path values above are illustrative examples. Extract whatever port and path values are specified on the target workload.
- Strip these annotations from the Pod templates to prevent double scraping (if both GMP and legacy Prometheus are running in the cluster).
- Read the mapping from
observability-map.jsonusing the workload key (namespace/workload-name). - Generate a
PodMonitoringCustom Resource (monitoring.googleapis.com/v1) targeting the workload selector with the specified scrape endpoint and port as described in references/prometheus_to_gmp.md. - For Grafana dashboards querying Prometheus or AMP, update the datasource to GMP (standard PromQL queries remain compatible).
- Automated translation of native Prometheus
Alertmanager/PrometheusRulealerting rules is tracked as a future expansion item (refer to references/alerting_policies.md for details).
CloudWatch metrics, alarms, and dashboards translation
- Read metric mappings from
references/metrics_and_dashboards.md
to convert CloudWatch metric names (e.g.
AWS/ECS/CPUUtilization) to Google Cloud Monitoring equivalents (e.g.kubernetes.io/container/cpu/limit_utilization). - If a metric is unmapped, attempt LLM semantic resolution. If unsupported, log a warning in the migration summary report.
- Convert CloudWatch alarms into Google Cloud Monitoring alerting policies using references/alerting_policies.md.
- Update Grafana dashboard datasources and rewrite CloudWatch metric math queries into PromQL or MQL.
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.

