Skip to content

Commit

Permalink
parameterize the MaximumEventAgeInSeconds for prom-tail CFN
Browse files Browse the repository at this point in the history
  • Loading branch information
InsomniaCoder committed Apr 22, 2024
1 parent b5a7255 commit 0b94c3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/lambda-promtail/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Parameters:
Description: The maximum of concurrent executions you want to reserve for the function.
Type: Number
Default: 2
MaximumEventAgeInSeconds:
Description: The maximum age of a request that Lambda sends to a function for processing.
Type: Number
Default: 21600
Username:
Description: The basic auth username, necessary if writing directly to Grafana Cloud Loki.
Type: String
Expand Down Expand Up @@ -119,6 +123,7 @@ Resources:
Properties:
FunctionName: !Ref LambdaPromtailFunction
MaximumRetryAttempts: 2
MaximumEventAgeInSeconds: !Ref MaximumEventAgeInSeconds
Qualifier: !GetAtt LambdaPromtailVersion.Version
# Copy this block and modify as required to create Subscription Filters for
# additional CloudWatch Log Groups.
Expand Down

0 comments on commit 0b94c3e

Please sign in to comment.