Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused agent prometheus 'generic metrics' #4225

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

sparrc
Copy link
Contributor

@sparrc sparrc commented Jul 1, 2024

Summary

These metrics were added 6+ years ago in this PR. They were never really integrated throughout the agent nor documented. With the addition of pprof profiling into the agent, these stats have become somewhat more redundant.

Removing these now for the following reasons:

  • Removes 1 direct and 3 indirect library dependencies, and 27,000+ lines of code dependencies.
  • Removes unnecessary and unused processing and defer function calls, which have some (though fairly trivial) effect on system resources.
  • Fewer dependencies mean fewer sources of security vulnerabilities and attack vectors.

Testing

New tests cover the changes: no

Description for the changelog

Enhancement: Remove unused "generic metrics" code and processing

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sparrc sparrc requested a review from a team as a code owner July 1, 2024 21:03
@sparrc sparrc added the bot/test label Jul 1, 2024
@sparrc sparrc changed the title [wip] remove unused agent prometheus 'generic metrics' Remove unused agent prometheus 'generic metrics' Jul 1, 2024
@sparrc sparrc merged commit ae82aa6 into aws:dev Jul 1, 2024
40 checks passed
@sparrc sparrc deleted the rm-generic-metrics branch July 1, 2024 23:28
Ephylouise pushed a commit to Ephylouise/amazon-ecs-agent that referenced this pull request Jul 2, 2024
Ephylouise added a commit to Ephylouise/amazon-ecs-agent that referenced this pull request Jul 2, 2024
Add an echo to find where GO_VERSION is being retreived

Remove else statement to check the if statement installs correct go version

Add logic to retreive AL2023 version

Remove quotes for variable definitions

Move go and AL23 variables to install phase

Remove trailing quotation mark for go variable

Fix restartAttemptPeriod time.Duration/int parsing (aws#4218)

* Fix restartAttemptPeriod time.Duration/int parsing

* Fix TSS integ test that relied on mutable tag

3.19 is a changable tag that was recently updated to 3.19.2.

Update test to use 3.19.1 as this tag should presumably never change it's digest.

Add AL23 ref doc and install specific go version

remove unused agent prometheus 'generic metrics' (aws#4225)

go mod tidy && go mod vendor

Add 4 new CodeBuild jobs to CloudFormation template for AL builds

Replace RELEASE_COMMIT with GO_VERSION in Makefile

Remove trailing space in original GOPATH if/then function

Update pr-build.yml to modify go path logic

Added an echo to check the github username. Removed the If/then statement that was creating the codebuild failures.

GO path: remove if/then statement

Correcting username syntax, capital letter

This commit adds forked username to pr-build-ubuntu and echos go version

Comment out golang dependency in ecs-agent.spec

Add Windows make target in Makefile and pr-build.yml

Create amzn2 and amzn23 buildspec files

Add Windows Make target and comment out 'generic' build commands

Fix indentation in amzn2/2023 buildspec files

Add /out/ to Windows path in pr-build.yml

Add line to echo the contents of expected artifact path

Uncomment pr-build/agent.spec blocks, simplify sudo dnf update

Add an 'automatic yes' to the version update pr-build-amzn2023.yml

Edit file artifact variable name in amzn23 spec file

Windows target to rely on inherent logic, add get-cni-sources to AL target
Ephylouise added a commit to Ephylouise/amazon-ecs-agent that referenced this pull request Jul 2, 2024
Add an echo to find where GO_VERSION is being retreived

Remove else statement to check the if statement installs correct go version

Add logic to retreive AL2023 version

Remove quotes for variable definitions

Move go and AL23 variables to install phase

Remove qtrailing quotation mark for go variable

remove unused agent prometheus 'generic metrics' (aws#4225)

go mod tidy && go mod vendor
@amogh09 amogh09 mentioned this pull request Jul 8, 2024
jiuchoe4 pushed a commit to saurabhc123/amazon-ecs-agent that referenced this pull request Jul 12, 2024
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.

None yet

4 participants