SlideShare a Scribd company logo
SempliïŹcare l'observability
per progetti Serverless
Luciano Mammino ( )
@loige
2021-10-21
loige.link/simple-obs
1
Get these slides!
loige
loige.link/simple-obs
2
CIAO 👋
3
CIAO 👋
Sono Luciano
3
CIAO 👋
Sono Luciano
Senior Architect @ fourTheorem (Dublin )
3
CIAO 👋
Sono Luciano
Senior Architect @ fourTheorem (Dublin )
nodejsdp.link
Co-Autore di Node.js Design Patterns  👉
3
CIAO 👋
Sono Luciano
Senior Architect @ fourTheorem (Dublin )
nodejsdp.link
Co-Autore di Node.js Design Patterns  👉
Ci connettiamo?
  (blog)
  (twitter)
  (twitch)
  (github)
loige.co
@loige
loige
lmammino
3
We are business focused
technologists that deliver.
 |  |
Accelerated Serverless AI as a Service Platform Modernisation
⭐Stiamo assumendo:  ti va di ?
lavorare con noi
loige 4
loige
awsbites.com
Ho da poco avviato un podcast settimanale su AWS
5
"Observability"
loige 6
Observability nel Cloud ☁
loige
" Una misura di quanto si riesca a comprendere
lo stato di un sistema osservandone
esclusivamente gli output
Log strutturati
🔍
Tracing
📈
Metriche
🚹
Allarmi
7
Observability su AWS = CloudWatch
loige
CloudWatch Ă© un servizio che fornisce:
 
   Logs (e insights)
  📈   Metriche
  📊   Dashboard
  🚹   Allarmi
  đŸ„Â   Canaries
  🔍   Tracing distribuito (X-Ray)
8
Alternative ad AWS
loige
Soluzioni comuni (as a service) Soluzioni "fai da te"
Nuove Soluzioni
9
CloudWatch 
out of the box 📩
loige
😍Un toolkit completo per l'observability 
đŸ€©Colleziona metriche automaticamente per ogni
servizio AWS
😟Tante dashboards, ma organizzate per servizio
e non per applicazione!
😱Zero allarmi pre-conïŹgurati!
10
Utilizzando
servizi terzi đŸ¶
loige
✅I prodotti terzi hanno una UX migliore
❌Bisogna esportare i dati da AWS
❌  Alcune feature potrebbero non essere ben
integrate o richiedere integrazioni
personalizzate
❌  Potresti restare bloccato in dual-mode
11
Come utilizzare CloudWatch al meglio!
loige
Cloudwatch puĂł diventare il tuo miglior amico se...
📚  Studi e comprendi tutte le metriche disponibili
📐  Decidi le varie soglie per i tuoi allarmi
📊  Scrive codice (IaC) per creare dashboards per le tue
applicazioni
⏰  Scrivi codice (IaC) anche per gli allarmi
âȘ  Aggiorni questo codice quando la tua applicazione
cambia (e.g. nuovi servizi AWS vengono utilizzati)
📋  Copi ed incolli (e modiïŹchi) tutto questo codice per
ogni stack delle tue applicazioni su AWS!
 
(a.k.a. TANTO DURO LAVORO!)
  12
Come utilizzare CloudWatch al meglio!
loige
Cloudwatch puĂł diventare il tuo miglior amico se...
📚  Studi e comprendi tutte le metriche disponibili
📐  Decidi le varie soglie per i tuoi allarmi
📊  Scrive codice (IaC) per creare dashboards per le tue
applicazioni
⏰  Scrivi codice (IaC) anche per gli allarmi
âȘ  Aggiorni questo codice quando la tua applicazione
cambia (e.g. nuovi servizi AWS vengono utilizzati)
📋  Copi ed incolli (e modiïŹchi) tutto questo codice per
ogni stack delle tue applicazioni su AWS!
 
(a.k.a. TANTO DURO LAVORO!)
  12
Best practices
loige
😇AWS Well Architected Framework
🏛  5 pilastri 
⚙  Il pilastro "Operational excellence" copre
l'argomento "observability"
🧐Serverless lens applica questi pilastri
 
👍Ottima guida sulle metriche da utilizzare
👎Altra roba da studiare
👎Devi comunque decidere le soglie
13
Scrivere allarmi con CloudFormation
loige
{
"Type":"AWS::CloudWatch::Alarm",
"Properties":{
"ActionsEnabled":true,
"AlarmActions":[
"arn:aws:sns:eu-west-1:665863320777:FTSLICAlarms"
],
"AlarmName":"LambdaThrottles_serverless-test-project-dev-hello",
"AlarmDescription":"Throttles % for serverless-test-project-dev-hello ..
"EvaluationPeriods":1,
"ComparisonOperator":"GreaterThanThreshold",
"Threshold":0,
"TreatMissingData":"notBreaching",
"Metrics":[
{
"Id":"throttles_pc",
"Expression":"(throttles / throttles + invocations) * 100",
"Label":"% Throttles",
"ReturnData":true
},
{
"Id":"throttles",
"...":"..."
}
]
}
}
[
{
"...":"...",
"MetricStat":{
"Metric":{
"Namespace":"AWS/Lambda",
"MetricName":"Throttles",
"Dimensions":[
{
"Name":"FunctionName",
"Value":"serverless-test-project-dev-hello"
}
]
},
"Period":60,
"Stat":"Sum"
},
"ReturnData":false
},
{
"Id":"invocations",
"MetricStat":{
"Metric":{
"Namespace":"AWS/Lambda",
"MetricName":"Invocations",
"...":"..."
}
}
}
]
14
Scrivere allarmi con CloudFormation
loige
{
"Type":"AWS::CloudWatch::Alarm",
"Properties":{
"ActionsEnabled":true,
"AlarmActions":[
"arn:aws:sns:eu-west-1:665863320777:FTSLICAlarms"
],
"AlarmName":"LambdaThrottles_serverless-test-project-dev-hello",
"AlarmDescription":"Throttles % for serverless-test-project-dev-hello ..
"EvaluationPeriods":1,
"ComparisonOperator":"GreaterThanThreshold",
"Threshold":0,
"TreatMissingData":"notBreaching",
"Metrics":[
{
"Id":"throttles_pc",
"Expression":"(throttles / throttles + invocations) * 100",
"Label":"% Throttles",
"ReturnData":true
},
{
"Id":"throttles",
"...":"..."
}
]
}
}
[
{
"...":"...",
"MetricStat":{
"Metric":{
"Namespace":"AWS/Lambda",
"MetricName":"Throttles",
"Dimensions":[
{
"Name":"FunctionName",
"Value":"serverless-test-project-dev-hello"
}
]
},
"Period":60,
"Stat":"Sum"
},
"ReturnData":false
},
{
"Id":"invocations",
"MetricStat":{
"Metric":{
"Namespace":"AWS/Lambda",
"MetricName":"Invocations",
"...":"..."
}
}
}
]
14
Possiamo automatizzare?
loige 15
Possiamo automatizzare?
loige
Magically
generated alarms
and dashboards for
each application!
15
Ecco a voi
SLIC watch!
loige
fth.link/slic-watch
16
Come funziona SLIC watch? 🛠
loige
la tua applicazione
serverless.yml
17
Come funziona SLIC watch? 🛠
loige
la tua applicazione
serverless.yml
sls deploy
17
Come funziona SLIC watch? 🛠
loige
la tua applicazione
serverless.yml
Stack CloudFormation
very-big.json
sls deploy
17
Come funziona SLIC watch? 🛠
loige
la tua applicazione
serverless.yml
Stack CloudFormation
very-big.json
sls deploy SLIC Watch
👀🛠
17
Come funziona SLIC watch? 🛠
loige
la tua applicazione
serverless.yml
Stack CloudFormation
very-big.json
Stack CloudFormation ++
even-bigger.json
sls deploy SLIC Watch
👀🛠
📈📊
17
Come funziona SLIC watch? 🛠
loige
la tua applicazione
serverless.yml
Stack CloudFormation
very-big.json
Stack CloudFormation ++
even-bigger.json
sls deploy SLIC Watch Deploy ☁
👀🛠
📈📊
17
loige
Senza SLIC watch!
18
loige
Con SLIC watch!
19
loige
Con SLIC watch!
20
loige
Con SLIC watch!
21
loige
Con SLIC watch!
22
Con SLIC watch!
loige
Dai un'occhiata a SLIC Slack
23
ConïŹgurazione
loige
🎀SLIC Watch ha una buona
conïŹgurazione di default
 
📝... e puoi comunque cambiare
tutti i parametri
 
🔌... o disabilitare speciïŹche
dashboard o allarmi
24
Come iniziare
loige
 📣  Crea un Topic SNS come destinazione per gli allarmi (opzionale)
 
 
✍Aggiorna serverless.yml per attivare il plugin:
⚙ModiïŹca la conïŹgurazione (opzionale)
 
  
📩 ❯npm i serverless-slic-watch-plugin --save-dev
plugins:
- serverless-slic-watch-plugin
🚱 ❯ sls deploy
💡Il repo ufïŹciale contiene un
!
progetto esempio
25
DEMO TIME!
loige 26
In conclusione
loige
CloudWatch Ă© un ottimo servizio se conïŹgurato ed utilizzato correttamente!
 
L'automazione puĂł rimuovere le componenti piĂș tediose
 
SLIC Watch mira a fornire questo tipo di automazione
 
... lasciandoti comunque la possibilitĂĄ di personalizzare la conïŹgurazione
 
🔬Provalo!   🗣Dacci un feedback!   🌈Contribuisci!
 
fth.link/slic-watch
27
Cover Photo by on
Maarten van den Heuvel Unsplash
loige.link/simple-obs
loige
nodejsdp.link
28

More Related Content

PDF
Spring Boot & Spring Cloud on Pivotal Application Service
PDF
Overcoming Regulatory & Compliance Hurdles with Hybrid Cloud EKS and Weave Gi...
PDF
Platform Requirements for CI/CD Success—and the Enterprises Leading the Way
PPTX
A Leader’s Guide to DevOps Practices and Culture
PDF
Cloud Native Operations
PPTX
CloudWorld: What Does Cloud-Native Mean Anyway?
PDF
POST GRADUATE PROGRAM IN CLOUD COMPUTING
PPTX
Gartner EA Architecting for DevOps and Hybrid Cloud
Spring Boot & Spring Cloud on Pivotal Application Service
Overcoming Regulatory & Compliance Hurdles with Hybrid Cloud EKS and Weave Gi...
Platform Requirements for CI/CD Success—and the Enterprises Leading the Way
A Leader’s Guide to DevOps Practices and Culture
Cloud Native Operations
CloudWorld: What Does Cloud-Native Mean Anyway?
POST GRADUATE PROGRAM IN CLOUD COMPUTING
Gartner EA Architecting for DevOps and Hybrid Cloud

What's hot (20)

PPTX
Mendix Maker Meetup - London (2019-10-17)
PDF
Case Study: How The Home Depot Built Quality Into Software Development
PDF
Data-Driven DevOps: Improve Velocity and Quality of Software Delivery with Me...
 
PDF
Service Mesh: Two Big Words But Do You Need It?
PDF
Running Data Platforms Like Products
PDF
Cloud Native Batch Processing: Beyond the What and How
PDF
The Business Benefits of GitOps
PPTX
Cloud Native Summit 2019 Summary
PPTX
Reimagining Customer Experiences Utilizing Pivotal Cloud Foundry
PPTX
Solving Top Cloud Problems MODAClouds Toolbox
PDF
Integrating SAP into DevOps Pipelines: Why and How
PDF
Revolutionizing Enterprise Software Development through Continuous Delivery &...
PDF
Dlf2
PDF
Jesse Pulfer Pivotal Overview June 2018
PDF
Fundamental MLOps
PPTX
Making the Business a First-Class Citizen During the Application Modernizatio...
PPTX
MODAClouds Value - Solving Top Problems of Cloud Dev Lifecycle
PDF
Cloud native enterprise
PPTX
OPS Executive insights Webinar - Tanzu Slides
PDF
InfoSec: Evolve Thyself to Keep Pace in the Age of DevOps
Mendix Maker Meetup - London (2019-10-17)
Case Study: How The Home Depot Built Quality Into Software Development
Data-Driven DevOps: Improve Velocity and Quality of Software Delivery with Me...
 
Service Mesh: Two Big Words But Do You Need It?
Running Data Platforms Like Products
Cloud Native Batch Processing: Beyond the What and How
The Business Benefits of GitOps
Cloud Native Summit 2019 Summary
Reimagining Customer Experiences Utilizing Pivotal Cloud Foundry
Solving Top Cloud Problems MODAClouds Toolbox
Integrating SAP into DevOps Pipelines: Why and How
Revolutionizing Enterprise Software Development through Continuous Delivery &...
Dlf2
Jesse Pulfer Pivotal Overview June 2018
Fundamental MLOps
Making the Business a First-Class Citizen During the Application Modernizatio...
MODAClouds Value - Solving Top Problems of Cloud Dev Lifecycle
Cloud native enterprise
OPS Executive insights Webinar - Tanzu Slides
InfoSec: Evolve Thyself to Keep Pace in the Age of DevOps
Ad

Similar to Semplificare l'observability per progetti Serverless (20)

PDF
AWS Observability Made Simple
PDF
AWS Observability (without the Pain)
PPTX
"Architetture Serverless: il "vero" cloud" by NiccolĂČ Olivieri
PDF
Serverless use cases with AWS Lambda - More Serverless Event
PDF
Skillenza Build with Serverless Challenge - Advanced Serverless Concepts
PPTX
Scaling horizontally on AWS
PDF
Serverless Days Ahmedabad - Dhaval Nagar.pptx.pdf
PDF
SVS215 - Build observability into a serverless application
PPTX
How Serverless Changes DevOps
PDF
Serverless Framework Workshop - Tyler Hendrickson, Chicago/burbs
PDF
AWS IoT 및 Mobile Hub 서ëč„슀 소개 (êč€ìŒí˜ž) :: re:Invent re:Cap Webinar 2015
PDF
Connecting the Unconnected: IoT Made Simple
PDF
Apply best parts of microservices to serverless
PDF
Serverless Architectural Patterns & Best Practices
PDF
CloudWatch hidden features for debugging serverless application
PPTX
How to design AWS Serverless Architecture for IOT
PDF
Cloud Introduction (AWS)- What is the cloud?
PDF
Crio.do - Deployment on AWS Masterclass
PDF
Serverless Analytics and Monitoring For Your Cloud App
PDF
Experiences in Architecting & Implementing Platforms using Serverless.pdf
AWS Observability Made Simple
AWS Observability (without the Pain)
"Architetture Serverless: il "vero" cloud" by NiccolĂČ Olivieri
Serverless use cases with AWS Lambda - More Serverless Event
Skillenza Build with Serverless Challenge - Advanced Serverless Concepts
Scaling horizontally on AWS
Serverless Days Ahmedabad - Dhaval Nagar.pptx.pdf
SVS215 - Build observability into a serverless application
How Serverless Changes DevOps
Serverless Framework Workshop - Tyler Hendrickson, Chicago/burbs
AWS IoT 및 Mobile Hub 서ëč„슀 소개 (êč€ìŒí˜ž) :: re:Invent re:Cap Webinar 2015
Connecting the Unconnected: IoT Made Simple
Apply best parts of microservices to serverless
Serverless Architectural Patterns & Best Practices
CloudWatch hidden features for debugging serverless application
How to design AWS Serverless Architecture for IOT
Cloud Introduction (AWS)- What is the cloud?
Crio.do - Deployment on AWS Masterclass
Serverless Analytics and Monitoring For Your Cloud App
Experiences in Architecting & Implementing Platforms using Serverless.pdf
Ad

More from Luciano Mammino (20)

PDF
Serverless Rust: Your Low-Risk Entry Point to Rust in Production (and the ben...
PDF
Did you know JavaScript has iterators? DublinJS
PDF
What I learned by solving 50 Advent of Code challenges in Rust - RustNation U...
PDF
Building an invite-only microsite with Next.js & Airtable - ReactJS Milano
PDF
From Node.js to Design Patterns - BuildPiper
PDF
Let's build a 0-cost invite-only website with Next.js and Airtable!
PDF
Everything I know about S3 pre-signed URLs
PDF
Serverless for High Performance Computing
PDF
Serverless for High Performance Computing
PDF
JavaScript Iteration Protocols - Workshop NodeConf EU 2022
PDF
Building an invite-only microsite with Next.js & Airtable
PDF
Let's take the monolith to the cloud 🚀
PDF
A look inside the European Covid Green Certificate - Rust Dublin
PDF
Monoliths to the cloud!
PDF
The senior dev
PDF
Node.js: scalability tips - Azure Dev Community Vijayawada
PDF
A look inside the European Covid Green Certificate (Codemotion 2021)
PDF
Finding a lost song with Node.js and async iterators - NodeConf Remote 2021
PDF
Finding a lost song with Node.js and async iterators - EnterJS 2021
PDF
How to send gzipped requests with boto3
Serverless Rust: Your Low-Risk Entry Point to Rust in Production (and the ben...
Did you know JavaScript has iterators? DublinJS
What I learned by solving 50 Advent of Code challenges in Rust - RustNation U...
Building an invite-only microsite with Next.js & Airtable - ReactJS Milano
From Node.js to Design Patterns - BuildPiper
Let's build a 0-cost invite-only website with Next.js and Airtable!
Everything I know about S3 pre-signed URLs
Serverless for High Performance Computing
Serverless for High Performance Computing
JavaScript Iteration Protocols - Workshop NodeConf EU 2022
Building an invite-only microsite with Next.js & Airtable
Let's take the monolith to the cloud 🚀
A look inside the European Covid Green Certificate - Rust Dublin
Monoliths to the cloud!
The senior dev
Node.js: scalability tips - Azure Dev Community Vijayawada
A look inside the European Covid Green Certificate (Codemotion 2021)
Finding a lost song with Node.js and async iterators - NodeConf Remote 2021
Finding a lost song with Node.js and async iterators - EnterJS 2021
How to send gzipped requests with boto3

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
[벌표본] á„‚á…„á„‹á…Ž ᄀá…Șá„Œá…Šá„‚á…łá†« 클라ᄋᅼ드오 ᄋᅔᆻᄋᅄ_KTDS_ᄀᅔᆷ도ᆌ현_20250524.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Approach and Philosophy of On baking technology
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
 
PDF
Advanced IT Governance
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
 
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Spectral efficient network and resource selection model in 5G networks
DOCX
The AUB Centre for AI in Media Proposal.docx
 
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java ‱ Spring Boot ‱ Ka...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Advanced Soft Computing BINUS July 2025.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
MYSQL Presentation for SQL database connectivity
[벌표본] á„‚á…„á„‹á…Ž ᄀá…Șá„Œá…Šá„‚á…łá†« 클라ᄋᅼ드오 ᄋᅔᆻᄋᅄ_KTDS_ᄀᅔᆷ도ᆌ현_20250524.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Per capita expenditure prediction using model stacking based on satellite ima...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Approach and Philosophy of On baking technology
CIFDAQ's Market Insight: SEC Turns Pro Crypto
 
Advanced IT Governance
NewMind AI Weekly Chronicles - August'25 Week I
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
The Rise and Fall of 3GPP – Time for a Sabbatical?
 
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Spectral efficient network and resource selection model in 5G networks
The AUB Centre for AI in Media Proposal.docx
 
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Shreyas Phanse Resume: Experienced Backend Engineer | Java ‱ Spring Boot ‱ Ka...
Machine learning based COVID-19 study performance prediction
Advanced Soft Computing BINUS July 2025.pdf

Semplificare l'observability per progetti Serverless

  • 1. SempliïŹcare l'observability per progetti Serverless Luciano Mammino ( ) @loige 2021-10-21 loige.link/simple-obs 1
  • 5. CIAO 👋 Sono Luciano Senior Architect @ fourTheorem (Dublin ) 3
  • 6. CIAO 👋 Sono Luciano Senior Architect @ fourTheorem (Dublin ) nodejsdp.link Co-Autore di Node.js Design Patterns  👉 3
  • 7. CIAO 👋 Sono Luciano Senior Architect @ fourTheorem (Dublin ) nodejsdp.link Co-Autore di Node.js Design Patterns  👉 Ci connettiamo?   (blog)   (twitter)   (twitch)   (github) loige.co @loige loige lmammino 3
  • 8. We are business focused technologists that deliver.  |  | Accelerated Serverless AI as a Service Platform Modernisation ⭐Stiamo assumendo:  ti va di ? lavorare con noi loige 4
  • 9. loige awsbites.com Ho da poco avviato un podcast settimanale su AWS 5
  • 11. Observability nel Cloud ☁ loige " Una misura di quanto si riesca a comprendere lo stato di un sistema osservandone esclusivamente gli output Log strutturati 🔍 Tracing 📈 Metriche 🚹 Allarmi 7
  • 12. Observability su AWS = CloudWatch loige CloudWatch Ă© un servizio che fornisce:      Logs (e insights)   📈   Metriche   📊   Dashboard   🚹   Allarmi   đŸ„Â   Canaries   🔍   Tracing distribuito (X-Ray) 8
  • 13. Alternative ad AWS loige Soluzioni comuni (as a service) Soluzioni "fai da te" Nuove Soluzioni 9
  • 14. CloudWatch  out of the box 📩 loige 😍Un toolkit completo per l'observability  đŸ€©Colleziona metriche automaticamente per ogni servizio AWS 😟Tante dashboards, ma organizzate per servizio e non per applicazione! 😱Zero allarmi pre-conïŹgurati! 10
  • 15. Utilizzando servizi terzi đŸ¶ loige ✅I prodotti terzi hanno una UX migliore ❌Bisogna esportare i dati da AWS ❌  Alcune feature potrebbero non essere ben integrate o richiedere integrazioni personalizzate ❌  Potresti restare bloccato in dual-mode 11
  • 16. Come utilizzare CloudWatch al meglio! loige Cloudwatch puĂł diventare il tuo miglior amico se... 📚  Studi e comprendi tutte le metriche disponibili 📐  Decidi le varie soglie per i tuoi allarmi 📊  Scrive codice (IaC) per creare dashboards per le tue applicazioni ⏰  Scrivi codice (IaC) anche per gli allarmi âȘ  Aggiorni questo codice quando la tua applicazione cambia (e.g. nuovi servizi AWS vengono utilizzati) 📋  Copi ed incolli (e modiïŹchi) tutto questo codice per ogni stack delle tue applicazioni su AWS!   (a.k.a. TANTO DURO LAVORO!)   12
  • 17. Come utilizzare CloudWatch al meglio! loige Cloudwatch puĂł diventare il tuo miglior amico se... 📚  Studi e comprendi tutte le metriche disponibili 📐  Decidi le varie soglie per i tuoi allarmi 📊  Scrive codice (IaC) per creare dashboards per le tue applicazioni ⏰  Scrivi codice (IaC) anche per gli allarmi âȘ  Aggiorni questo codice quando la tua applicazione cambia (e.g. nuovi servizi AWS vengono utilizzati) 📋  Copi ed incolli (e modiïŹchi) tutto questo codice per ogni stack delle tue applicazioni su AWS!   (a.k.a. TANTO DURO LAVORO!)   12
  • 18. Best practices loige 😇AWS Well Architected Framework 🏛  5 pilastri  ⚙  Il pilastro "Operational excellence" copre l'argomento "observability" 🧐Serverless lens applica questi pilastri   👍Ottima guida sulle metriche da utilizzare 👎Altra roba da studiare 👎Devi comunque decidere le soglie 13
  • 19. Scrivere allarmi con CloudFormation loige { "Type":"AWS::CloudWatch::Alarm", "Properties":{ "ActionsEnabled":true, "AlarmActions":[ "arn:aws:sns:eu-west-1:665863320777:FTSLICAlarms" ], "AlarmName":"LambdaThrottles_serverless-test-project-dev-hello", "AlarmDescription":"Throttles % for serverless-test-project-dev-hello .. "EvaluationPeriods":1, "ComparisonOperator":"GreaterThanThreshold", "Threshold":0, "TreatMissingData":"notBreaching", "Metrics":[ { "Id":"throttles_pc", "Expression":"(throttles / throttles + invocations) * 100", "Label":"% Throttles", "ReturnData":true }, { "Id":"throttles", "...":"..." } ] } } [ { "...":"...", "MetricStat":{ "Metric":{ "Namespace":"AWS/Lambda", "MetricName":"Throttles", "Dimensions":[ { "Name":"FunctionName", "Value":"serverless-test-project-dev-hello" } ] }, "Period":60, "Stat":"Sum" }, "ReturnData":false }, { "Id":"invocations", "MetricStat":{ "Metric":{ "Namespace":"AWS/Lambda", "MetricName":"Invocations", "...":"..." } } } ] 14
  • 20. Scrivere allarmi con CloudFormation loige { "Type":"AWS::CloudWatch::Alarm", "Properties":{ "ActionsEnabled":true, "AlarmActions":[ "arn:aws:sns:eu-west-1:665863320777:FTSLICAlarms" ], "AlarmName":"LambdaThrottles_serverless-test-project-dev-hello", "AlarmDescription":"Throttles % for serverless-test-project-dev-hello .. "EvaluationPeriods":1, "ComparisonOperator":"GreaterThanThreshold", "Threshold":0, "TreatMissingData":"notBreaching", "Metrics":[ { "Id":"throttles_pc", "Expression":"(throttles / throttles + invocations) * 100", "Label":"% Throttles", "ReturnData":true }, { "Id":"throttles", "...":"..." } ] } } [ { "...":"...", "MetricStat":{ "Metric":{ "Namespace":"AWS/Lambda", "MetricName":"Throttles", "Dimensions":[ { "Name":"FunctionName", "Value":"serverless-test-project-dev-hello" } ] }, "Period":60, "Stat":"Sum" }, "ReturnData":false }, { "Id":"invocations", "MetricStat":{ "Metric":{ "Namespace":"AWS/Lambda", "MetricName":"Invocations", "...":"..." } } } ] 14
  • 23. Ecco a voi SLIC watch! loige fth.link/slic-watch 16
  • 24. Come funziona SLIC watch? 🛠 loige la tua applicazione serverless.yml 17
  • 25. Come funziona SLIC watch? 🛠 loige la tua applicazione serverless.yml sls deploy 17
  • 26. Come funziona SLIC watch? 🛠 loige la tua applicazione serverless.yml Stack CloudFormation very-big.json sls deploy 17
  • 27. Come funziona SLIC watch? 🛠 loige la tua applicazione serverless.yml Stack CloudFormation very-big.json sls deploy SLIC Watch 👀🛠 17
  • 28. Come funziona SLIC watch? 🛠 loige la tua applicazione serverless.yml Stack CloudFormation very-big.json Stack CloudFormation ++ even-bigger.json sls deploy SLIC Watch 👀🛠 📈📊 17
  • 29. Come funziona SLIC watch? 🛠 loige la tua applicazione serverless.yml Stack CloudFormation very-big.json Stack CloudFormation ++ even-bigger.json sls deploy SLIC Watch Deploy ☁ 👀🛠 📈📊 17
  • 35. Con SLIC watch! loige Dai un'occhiata a SLIC Slack 23
  • 36. ConïŹgurazione loige 🎀SLIC Watch ha una buona conïŹgurazione di default   📝... e puoi comunque cambiare tutti i parametri   🔌... o disabilitare speciïŹche dashboard o allarmi 24
  • 37. Come iniziare loige  📣  Crea un Topic SNS come destinazione per gli allarmi (opzionale)     ✍Aggiorna serverless.yml per attivare il plugin: ⚙ModiïŹca la conïŹgurazione (opzionale)      📩 ❯npm i serverless-slic-watch-plugin --save-dev plugins: - serverless-slic-watch-plugin 🚱 ❯ sls deploy 💡Il repo ufïŹciale contiene un ! progetto esempio 25
  • 39. In conclusione loige CloudWatch Ă© un ottimo servizio se conïŹgurato ed utilizzato correttamente!   L'automazione puĂł rimuovere le componenti piĂș tediose   SLIC Watch mira a fornire questo tipo di automazione   ... lasciandoti comunque la possibilitĂĄ di personalizzare la conïŹgurazione   🔬Provalo!   🗣Dacci un feedback!   🌈Contribuisci!   fth.link/slic-watch 27
  • 40. Cover Photo by on Maarten van den Heuvel Unsplash loige.link/simple-obs loige nodejsdp.link 28