sbstjn / serverless-sqs-alarms-plugin Goto Github PK
View Code? Open in Web Editor NEWServerless wrapper to setup CloudWatch Alarms for SQS
Home Page: https://www.npmjs.com/package/serverless-sqs-alarms-plugin
License: MIT License
Serverless wrapper to setup CloudWatch Alarms for SQS
Home Page: https://www.npmjs.com/package/serverless-sqs-alarms-plugin
License: MIT License
Hello @sbstjn,
This is more of a question than an issue I think. I'm using this plugin for Fifo queues because it's the only way to use them. Sometimes I check the queue and I have some messages that have been there a long time.
My fifo queue has a delay of 300s to avoid duplicates during those 5 minutes next to the message sent to the queue and the threshold I have set up is:
thresholds:
- 1
- 2
- 3
- 4
- 10
How is possible that the lambda function is not triggered?
Proposed syntax:
custom:
sqs-alarms:
- queue: your-sqs-queue-name
topic: your-sns-topic-name
name: your-alarm-name # optional parameter
thresholds:
- value: 1
period: 60
evaluationPeriods: 5
But this looks like it would be a breaking change... So maybe being able to set Period and/or EvaluationPeriods just once for all thresholds is enough?
custom:
sqs-alarms:
- queue: your-sqs-queue-name
topic: your-sns-topic-name
name: your-alarm-name # optional parameter
thresholds:
- 1
period: 60
evaluationPeriods: 5
Using ImportValue for queue name as following:
sqs-alarms:
- thresholds: [1, 10, 50, 100]
queue: { 'Fn::ImportValue': "create-events:MyQueueName" }
topic: "AlarmsTopicName"
Fails with the following error: this.queue.replace is not a function
Hi,
Is there support for multiple queues?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.