-
Notifications
You must be signed in to change notification settings - Fork 3
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
Adding datadog details to each lambda #36
Changes from 14 commits
890df51
9ad2faa
44b7013
828b6c2
d86f775
a20a714
c1886e6
994bd5b
b7ef7fa
2464102
9567596
da4ff8f
dedadd1
476dce5
d53a409
353006e
438f573
3afde53
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ | |
"autogen_policy": false, | ||
"environment_variables": { | ||
"DD_SITE": "datadoghq.com", | ||
"DD_TRACE_ENABLED": "true", | ||
"DD_ENV": "prod", | ||
"DD_SERVICE": "ingestor" | ||
"DD_SERVICE": "ingestor", | ||
"DD_TRACE_ENABLED": "true" | ||
}, | ||
"lambda_functions": { | ||
"store_yesterday_alerts": { | ||
|
@@ -20,14 +20,16 @@ | |
"iam_policy_file": "policy-newtrains.json" | ||
}, | ||
"bb_store_station_status": { | ||
"iam_policy_file": "policy-bluebikes-store.json" | ||
"iam_policy_file": "policy-bluebikes-store.json", | ||
"lambda_timeout": 90 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Were these failing with default timeout? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep just slightly. Discovered it when trying to add tracing. They were hitting timeout every time There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there data missing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't look like it in s3, but hard to tell until we start using this data somewhere |
||
}, | ||
"bb_store_station_info": { | ||
"iam_policy_file": "policy-bluebikes-store.json" | ||
"iam_policy_file": "policy-bluebikes-store.json", | ||
"lambda_timeout": 90 | ||
}, | ||
"bb_calc_daily_stats": { | ||
"iam_policy_file": "policy-bluebikes-calc.json", | ||
"lambda_timeout": 60, | ||
"lambda_timeout": 90, | ||
"lambda_memory_size": 256 | ||
}, | ||
"store_landing_data": { | ||
|
@@ -49,10 +51,12 @@ | |
"lambda_timeout": 600 | ||
}, | ||
"update_delivered_trip_metrics": { | ||
"iam_policy_file": "policy-delivered-trip-metrics-daily.json" | ||
"iam_policy_file": "policy-delivered-trip-metrics-daily.json", | ||
"lambda_timeout": 90 | ||
}, | ||
"update_delivered_trip_metrics_yesterday": { | ||
"iam_policy_file": "policy-delivered-trip-metrics-daily.json" | ||
"iam_policy_file": "policy-delivered-trip-metrics-daily.json", | ||
"lambda_timeout": 90 | ||
}, | ||
"update_agg_trip_metrics": { | ||
"iam_policy_file": "policy-agg-trip-metric-tables.json" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a way to store env vars across the lambdas? Or we have to apply to each function? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Best I could find was we need to do it per function. I couldn't find anything easier, I looked. Would love if we find something |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I need a DD_API_KEY to deploy locally now? Are there any docs/instructions we need to update?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only for deployment. Probably need to update docs. You can use any DD_API_KEY from our account, anyone with the datadog account can get it easily in the UI