monitoring in TOSCA - 3 Use Cases

Application Monitoring in TOSCA
Presenter: Ifat Afek, Alcatel-Lucent
Jan 2015
COPYRIGHT © 2012 ALCATEL-LUCENT. ALL RIGHTS RESERVED.
Application Monitoring Use Cases
• Use Case 1 – poll application’s metrics (TOSCA-189)
-
Define endpoints for polling metrics from a SoftwareComponent
Define metrics based on these endpoints
Define policies based on these metrics
• Use Case 2 – application pushes metrics
-
Define monitoring API
Define semi-endpoints to be pushed by the SoftwareComponent’s agent to monitoring API
Define metrics based on these endpoints
Define policies based on these metrics
• Use Case 3 – metrics are not defined in TOSCA
-
Define monitoring API
Application’s agent pushes some metrics, not defined in TOSCA file
Define policies based on metrics that may or may not be pushed by the application
2
COPYRIGHT © 2012 ALCATEL-LUCENT. ALL RIGHTS RESERVED.
Use Case 1 – Poll Application’s Metrics (TOSCA-189)
Node Templates
App1
Metrics
Policies
Num_Errors
Raise Alert
Endpoint: App1.get_num_errors
If Num_Errors > 10
Every 1min
get_num_errors
http://...
get_num_transactions
http://...
Aggregation: AVG
Num_Transactions
Endpoint: App1.get_num_transactions
Every 1min
Aggregation: AVG
3
COPYRIGHT © 2012 ALCATEL-LUCENT. ALL RIGHTS RESERVED.
Scale out
If Num_Transactions > 10000
Use Case 1 – Poll Application’s Metrics
5. Raise Alert / Scale Request
Monitoring Engine
Orchestrator
1. Deploy
Application
2. Collect Metrics
http://...
4. Query
Metrics
3. Store Metrics
Server1
App1
DB
get_num_errors
get_num_transactions
4
COPYRIGHT © 2012 ALCATEL-LUCENT. ALL RIGHTS RESERVED.
PolicyEngine
Use Case 2 – Application’s Agent Pushes Metrics
Node Templates
App1
Metrics
Policies
Num_Errors
Raise Alert
Endpoint: App1.get_num_errors
If Num_Errors > 10
Every 1min
get_num_errors
Push
get_num_transactions
Push
Aggregation: AVG
Num_Transactions
Endpoint: App1.get_num_transactions
Every 1min
Aggregation: AVG
5
COPYRIGHT © 2012 ALCATEL-LUCENT. ALL RIGHTS RESERVED.
Scale out
If Num_Transactions > 10000
Use Case 2 – Application’s Agent Pushes Metrics
5. Raise Alert / Scale Request
Monitoring Engine
Orchestrator
1. Deploy
Application
2. Push Metrics
num_errors
num_transactions
4. Query
Metrics
3. Store Metrics
Server1
App1
1. Collect
App1
DB
Agent
6
COPYRIGHT © 2012 ALCATEL-LUCENT. ALL RIGHTS RESERVED.
PolicyEngine
Use Case 3 – Metrics are Not Defined in TOSCA
Policies
Node Templates
Raise Alert
If Num_Errors > 10
App1
Scale out
If Num_Transactions > 10000
7
COPYRIGHT © 2012 ALCATEL-LUCENT. ALL RIGHTS RESERVED.
Use Case 3 – Metrics are Not Defined in TOSCA
5. Raise Alert / Scale Request
Monitoring Engine
Orchestrator
1. Deploy
Application
2. Push Metrics
num_errors
num_transactions
4. Query
Metrics
3. Store Metrics
Server1
App1
1. Collect
App1
DB
Agent
8
COPYRIGHT © 2012 ALCATEL-LUCENT. ALL RIGHTS RESERVED.
PolicyEngine