Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

New pattern submission - lambda-cloudwatch-otlp-metrics-sam

未关闭
#3,299 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
20/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
停滞
技术栈
aws, python

调研方向

首先审查链接的 pull request #3298 及其 lambda-cloudwatch-otlp-metrics-sam pattern。检查 Python 3.13 Lambda、AWS SAM 配置、权限和 AWS Distro for OpenTelemetry Lambda layer,然后验证文档中记录的端到端部署以及 CloudWatch PromQL 结果。完成的标准是该 pattern 完整、可部署,并且其导出的指标带着预期的值和 labels 到达。

由索引模型根据 Issue 内容生成。

描述

Pattern name: lambda-cloudwatch-otlp-metrics-sam

Pull request: https://github.com/aws-samples/serverless-patterns/pull/3298

Description:

Send custom Lambda metrics to Amazon CloudWatch over OTLP. The function records a counter and a histogram using only the OpenTelemetry metrics API, and the AWS Distro for OpenTelemetry Lambda layer runs a collector that signs each request with SigV4 and forwards it to the CloudWatch OTLP endpoint. The function makes no PutMetricData calls and writes no embedded metric format logs, and the only permission it needs is cloudwatch:PutMetricData.

Compared with embedded metric format there is no per series charge, and the endpoint accepts up to 150 labels per metric against the 30 dimensions allowed by PutMetricData, so high cardinality metrics are much cheaper and richer.

Services used: AWS Lambda, Amazon CloudWatch (OTLP metrics endpoint), AWS Distro for OpenTelemetry Lambda layer.

Language: Python 3.13
Framework: AWS SAM
Level: 300

Tested end to end in a live account: deployed, invoked, confirmed the collector exported without errors, and queried the CloudWatch PromQL endpoint to verify the data points arrived with the expected value and labels. The stack was then deleted.

主要语言
Python
星标
1.8k
派生
1.1k
平均合并
3 天 8 小时
30 天内合并 PR
16

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws-samples/serverless-patterns 的其他 Issue

查看 aws-samples/serverless-patterns 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。