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

feat: OB-36691 add lambda and s3 bucket to record push metrics config #338

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

obs-gh-virjramakrishnan
Copy link
Collaborator

No description provided.

@obs-gh-virjramakrishnan obs-gh-virjramakrishnan force-pushed the viraj/metrics-lambda branch 7 times, most recently from 8665852 to 7bb217f Compare September 24, 2024 23:22
@obs-gh-virjramakrishnan obs-gh-virjramakrishnan changed the title OB-36691 feat: add lambda and s3 bucket to record push metrics config feat: OB-36691 add lambda and s3 bucket to record push metrics config Oct 1, 2024
@obs-gh-virjramakrishnan obs-gh-virjramakrishnan force-pushed the viraj/metrics-lambda branch 3 times, most recently from 4d1837a to bc72120 Compare October 7, 2024 22:44
.DS_Store Outdated Show resolved Hide resolved
DEVELOPER.md Outdated Show resolved Hide resolved
@obs-gh-virjramakrishnan obs-gh-virjramakrishnan force-pushed the viraj/metrics-lambda branch 2 times, most recently from c2407a5 to 31e420c Compare October 10, 2024 18:46
DEVELOPER.md Outdated Show resolved Hide resolved
@obs-gh-virjramakrishnan obs-gh-virjramakrishnan force-pushed the viraj/metrics-lambda branch 5 times, most recently from ed39eec to 406b3e2 Compare October 14, 2024 20:21
FilterUri: !Ref MetricStreamFilterUri
FilterUri: !If
- DeployLambda
- 's3://observeinc/cloudwatchmetrics/filters/default.yaml'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the lambda ever use this file? if not does this even need to be a real s3 file?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also we should write some comment here to explain why this is necessary

@obs-gh-alexlew
Copy link
Contributor

any unit tests around lambda vs. path in the actual app parameters and how that ends up affecting the result?

@obs-gh-virjramakrishnan obs-gh-virjramakrishnan force-pushed the viraj/metrics-lambda branch 3 times, most recently from db1970b to 84505ad Compare October 17, 2024 06:30
# will be replaced with the contents of the file
# specified by the FilterUri parameter.
# The filterURI parameter is a decided in the
# parent stack, where, depending on whether we are
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you install this AWS Sam app separately without installing the whole stack? you should be able to

- DeployLambda
- 's3://observeinc/cloudwatchmetrics/filters/default.yaml'
- !Ref MetricStreamFilterUri
# default.yaml must exist. When using a lambda for config we use
Copy link
Contributor

@obs-gh-alexlew obs-gh-alexlew Oct 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# We provide a yaml file URI here where the contents are a sentinel value that the user would never enter.
# Then the lambda modifies the metricstream to reflect the actual config provided.
# We need this sentinel value here initially so that if we switch back to the yaml based approach,
# the cloudformation stack will recognize that the value from the yaml file has changed and will update.

@obs-gh-virjramakrishnan obs-gh-virjramakrishnan marked this pull request as ready for review October 17, 2024 23:35
@obs-gh-virjramakrishnan obs-gh-virjramakrishnan merged commit 9fddba1 into main Oct 17, 2024
16 checks passed
@obs-gh-virjramakrishnan obs-gh-virjramakrishnan deleted the viraj/metrics-lambda branch October 17, 2024 23:47
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.

2 participants