Skip to content

Feature/cloudwatch metric - #20

Merged
IsaacTai13 merged 3 commits into
T13Forge:mainfrom
IsaacTai13:feature/cloudwatch-metric
Nov 6, 2025
Merged

Feature/cloudwatch metric#20
IsaacTai13 merged 3 commits into
T13Forge:mainfrom
IsaacTai13:feature/cloudwatch-metric

Conversation

@IsaacTai13

Copy link
Copy Markdown
Contributor

No description provided.

- Added "statsd" block to CloudWatch agent config to open UDP port 8125 for Micrometer metrics
- Enabled metrics collection interval for StatsD listener
- Created backup copy of /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json as .bk
…ove redundant @timed

- Introduced @ApiResourceTag annotation to define custom metric tags
- Implemented CustomObservationFilter to inject "resource" and "custom_tag"
- Removed existing @timed annotations to avoid duplicate metrics with different names
…ed AOP-based custom metrics

- Disabled Micrometer’s default HTTP metrics (e.g., http.server.requests autotime) to avoid duplicate/ noisy series
- Removed TimedS3 helper; switched to AOP-driven collection
- Added MetricsAspect with:
  • @ApiObserved — per-endpoint metrics:
  • @S3Observed — S3 operation latency
  • DB interception via pointcut
- All metrics emitted via Micrometer → StatsD → CloudWatch
@IsaacTai13
IsaacTai13 merged commit 9d2e2f9 into T13Forge:main Nov 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant