Update: OTel Container Insights Lab - #1901
Conversation
…, and CW Agent CRD - CloudWatch Observability add-on with OTel Container Insights (metrics only) - Grafana 12.1.7 with AMP plugin v3.0.0 - CloudWatch Agent CRD for Prometheus scraping (orders + checkout) - OTel enrichment and resource tags on telemetry - IAM role with Pod Identity for CloudWatch agent - Load generator and cleanup script
Doc update
feat(observability): Add Query with PromQL in CloudWatch content
Back Port from main
Doc update
feat(observability): Update PromQL page with validated queries and ap…
Fixing command links
Adding Images
✅ Deploy Preview for eks-workshop ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
||
| module "eks_blueprints_addons" { | ||
| source = "aws-ia/eks-blueprints-addons/aws" | ||
| version = "1.23.0" |
There was a problem hiding this comment.
Should we be hardcoding the version ? how is this in other infra files
| --- | ||
|
|
||
| In this section we'll look at gaining insight in to metrics exposed by our workloads. Some examples of these could be: | ||
| aaaaa. In this section we'll look at gaining insight in to metrics exposed by our workloads. Some examples of these could be: |
| [...] | ||
| # HELP watch_orders_total The number of orders placed | ||
| # TYPE watch_orders_total counter | ||
| watch_orders_total{productId="510a0d7e-8e83-4193-b483-e27e09ddc34d",} 2.0 |
There was a problem hiding this comment.
will the ids be the same for every run ?
| --- | ||
|
|
||
|
|
||
| To ingest and query OpenTelemetry metrics in Amazon CloudWatch, there are two account-level settings to enable, which can be done through the AWS console, AWS CLI, or AWS SDK. The first setting enables resource tag propagation from your AWS resources to your telemetry data, the same tags that are visible in AWS Resource Explorer. The second enables OpenTelemetry metrics ingestion for CloudWatch. |
| :::info | ||
|
|
||
| The start-otel-enrichment command requires AWS CLI v2.34+. CloudShell includes the latest CLI. If running locally, update your CLI by following the [AWS CLI install guide](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) . | ||
| Enrichment applies only to metrics going forward and does not backfill historical telemetry data. Allow 5–10 minutes for enriched metrics to start appearing.them in CloudWatch. |
There was a problem hiding this comment.
should the file name be opentelemetry - missing l
| Next, deploy a load generator to produce application traffic and generate order metrics: | ||
|
|
||
| ```bash test=false | ||
| $ cat <<EOF | kubectl apply -f - |
There was a problem hiding this comment.
the same loag genrator is in opentelemetry-proml.md - can we extract it and reference from a single place , without having to udpate in 2 places
|
|
||
| set -e | ||
|
|
||
| logmessage "Cleaning up OTLP metrics resources..." |
There was a problem hiding this comment.
i dindt see in any module where the cleanup is referenced. I see that in the Readme. Usually at the end of each lap we explicity ask them to run cleanup.
|
|
||
| **Architecture** | ||
|
|
||
| Amazon CloudWatch exposes a regional OTLP endpoint that OpenTelemetry-compatible collectors and SDKs can send metrics to directly. Metrics are stored in a high-cardinality metrics store that retains OpenTelemetry metric types including counters, histograms, gauges, and up-down counters without conversion. When enrichment is enabled, CloudWatch automatically tags vended metrics with AWS resource context such as account ID, region, cluster ARN, and resource tags from AWS Resource Explorer. This enrichment requires no manual instrumentation, enabling you to query and filter across AWS accounts, regions, and resource tags using PromQL in Amazon CloudWatch Query Studio or Amazon Managed Grafana. |
There was a problem hiding this comment.
shouldnt we inlcude otel-architecture.webp here?
|
|
||
| **Option A: AWS Console** | ||
|
|
||
| 1. Open the Amazon CloudWatch console <ConsoleButton url="https://console.aws.amazon.com/eks/home#/clusters/eks-workshop?selectedTab=cluster-logging-tab" service="eks" label="Open EKS console"/> |
There was a problem hiding this comment.
the instruction says open cloudwatch console, but the lable is open EKS console
fixing comments
What this PR does / why we need it:
Adding a new module to ‘Observability’ lab that ports the CloudOps “Zeus” (GitLab MR !757) OpenTelemetry Container Insights methodology. The existing container-insights (ADOT→EMF→CloudWatch) and oss-metrics (ADOT→AMP→Grafana) No labs was modified or removed.
Which issue(s) this PR fixes:
Quality checks
make test module="<module>"it was successful (see https://github.com/aws-samples/eks-workshop-v2/blob/main/docs/automated_tests.md)By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.