SlideShare une entreprise Scribd logo
1  sur  17
Metric and Dashboard
• Metric Is and Isn’t
• About Metric Data
• Design and Deployment
webmaster@xqbase.com
Content
• Metric Is and Isn’t
 Comparison of Monitoring Systems
 Comparison between Log and Metric
• About Metric Data
• Design and Deployment
Comparison of Monitoring Systems
• OS-Level Monitoring
Zabbix, Nagios, Cacti, etc.
• App-Level Monitoring
Client Side: Google Analytics, Piwik, Umeng.com, etc.
Server Side: Metric / Dashboard
OS-Level Mon. App-Level Mon.
CPU
Memory
Disk
Network
Processes
…
Requests
Connections
Threads
…
Conn. Pools
API Callings
Business Data
User Behaviors
Orders
…
Client Mon. vs Server Mon.
• Client Monitoring
User Visits / Page Visits
User Statistics (Origins, Demographics, Platforms, etc.)
User Behaviors (Timing, Conversions, Retentions, etc.)
Not Accurate 
• Server Monitoring
+ Server / Web Health (Load, Conn. Pools, API Callings, etc.)
+ Business Data (Visits, Orders, Transactions, etc.)
Accurate 
Comparison between Log and Metric
• Log
Each Event into Storages (File or DB)
Huge Size
• Metric
Only Aggregated Data into Storages
Stored by Minute
Limited Size (Limited Tags and Values)
• Statistics
From Logs (Aggregation Pipeline, Map-Reduce, …)
From Metrics (Aggregation Pipeline, Map-Reduce, …)
Content
• Metric Is and Isn’t
• About Metric Data
 Tags
 Aggregations
• Design and Deployment
Dashboard
• Tag: Path
Dashboard
• Tag: Status
Tags
• Tags are Attributes
{_minute=“12:10:02”, path=“/”, status=200},
{_minute=“12:10:23”, path=“/users/”, status=200},
{_minute=“12:10:54”, path=“/”, status=200},
{_minute=“12:11:30”, path=“/users/”, status=200},
…
• Tags are Columns
_minute path status _count
12:10:00 / 200 2
12:10:00 /users/ 200 5
12:11:00 / 200 4
12:11:00 /users/ 200 3
12:11:00 /users/ 304 1
• Query Condition
WHERE tag_name = tag_value
GROUP BY tag_name
• Limited Tag Names and Values
Tag Values are NOT Log Entries
• Which are Bad Tags?
Server IP
Client IP
Content-Type
User Agent
Tag Is and Isn’t




Aggregation Methods
• Method
COUNT
SUM
MAX / MIN
AVG
STD
• Scenarios
CPU Load, Memory
Network Throughput
Connections
Request
Response Time
Orders
MAX, AVG
SUM
MAX
COUNT
MAX, AVG
COUNT, SUM
•Process
Aggregation Algorithms
• Supply
var entry = {
count: 1,
sum: value,
max: value,
min: value,
sqr: value * value,
};
• Combine
count = sum(entries[i].count);
sum = sum(entries[i].sum);
max = max(entries[i].max);
min = min(entries[i].min);
sqr = sum(entries[i].sqr);
avg = sum / count;
std = sqrt(sqr * count – sum * sum) / count;
•Accumulate
entry.count ++;
entry.sum += value;
entry.max = max(entry.max, value);
entry.min = min(entry.min, value);
entry.sqr += value * value;
Content
• Metric Is and Isn’t
• About Metric Data
• Design and Deployment
 Design
 Deployment
 Aggregation Phases
Design
• Collect
Text + zlib + UDP --- Simple and Never Block
• Store
MongoDB --- Arbitrary Tags and Easy to Query
• Query
HTTP Rest API + JSON Data --- Easy to Develop Dashboard Apps
Aggregation Phases
• Aggregation before Collection
For Java and C# Websites
Aggregates on Web Server (by Minute)
• Aggregation during Collection
For PHP Websites
Aggregates on Collector (by Minute)
• Aggregation during Query
For Dashboard Apps (Dashboard, Alerting, BI, …)
Aggregates on Query Server (by Tags)
Deployment
Thanks
Metric and Dashboard
• Metric Is and Isn’t
• About Metric Data
• Design and Deployment
webmaster@xqbase.com

Contenu connexe

Similaire à Metric and Dashboard

Measuring the Success of Cloud-Based Services
Measuring the Success of Cloud-Based ServicesMeasuring the Success of Cloud-Based Services
Measuring the Success of Cloud-Based Services
Vistara
 
Using AWS to Build a Scalable Big Data Management & Processing Service (BDT40...
Using AWS to Build a Scalable Big Data Management & Processing Service (BDT40...Using AWS to Build a Scalable Big Data Management & Processing Service (BDT40...
Using AWS to Build a Scalable Big Data Management & Processing Service (BDT40...
Amazon Web Services
 

Similaire à Metric and Dashboard (20)

Exploring Contact Lens and Amazon Connect
Exploring Contact Lens and Amazon ConnectExploring Contact Lens and Amazon Connect
Exploring Contact Lens and Amazon Connect
 
WSO2Con USA 2017: Analytics Patterns for Your Digital Enterprise
WSO2Con USA 2017: Analytics Patterns for Your Digital EnterpriseWSO2Con USA 2017: Analytics Patterns for Your Digital Enterprise
WSO2Con USA 2017: Analytics Patterns for Your Digital Enterprise
 
Analytics Patterns for Your Digital Enterprise
Analytics Patterns for Your Digital EnterpriseAnalytics Patterns for Your Digital Enterprise
Analytics Patterns for Your Digital Enterprise
 
Micro-service architectures with Gilmour
Micro-service architectures with GilmourMicro-service architectures with Gilmour
Micro-service architectures with Gilmour
 
Measuring the Success of Cloud-Based Services
Measuring the Success of Cloud-Based ServicesMeasuring the Success of Cloud-Based Services
Measuring the Success of Cloud-Based Services
 
EM12c: Capacity Planning with OEM Metrics
EM12c: Capacity Planning with OEM MetricsEM12c: Capacity Planning with OEM Metrics
EM12c: Capacity Planning with OEM Metrics
 
Mongo db 2.4 time series data - Brignoli
Mongo db 2.4 time series data - BrignoliMongo db 2.4 time series data - Brignoli
Mongo db 2.4 time series data - Brignoli
 
Сервис, ты как? Практики и подходы к мониторингу ИТ-сервисов системами инфрас...
Сервис, ты как? Практики и подходы к мониторингу ИТ-сервисов системами инфрас...Сервис, ты как? Практики и подходы к мониторингу ИТ-сервисов системами инфрас...
Сервис, ты как? Практики и подходы к мониторингу ИТ-сервисов системами инфрас...
 
Azure Stream Analytics - Webinar
Azure Stream Analytics - WebinarAzure Stream Analytics - Webinar
Azure Stream Analytics - Webinar
 
Optimizing industrial operations using the big data ecosystem
Optimizing industrial operations using the big data ecosystemOptimizing industrial operations using the big data ecosystem
Optimizing industrial operations using the big data ecosystem
 
Prometheus Introduction (InfraCoders Vienna)
Prometheus Introduction (InfraCoders Vienna)Prometheus Introduction (InfraCoders Vienna)
Prometheus Introduction (InfraCoders Vienna)
 
Graphing for Security
Graphing for SecurityGraphing for Security
Graphing for Security
 
Using AWS to Build a Scalable Big Data Management & Processing Service (BDT40...
Using AWS to Build a Scalable Big Data Management & Processing Service (BDT40...Using AWS to Build a Scalable Big Data Management & Processing Service (BDT40...
Using AWS to Build a Scalable Big Data Management & Processing Service (BDT40...
 
Prometheus - Utah Software Architecture Meetup - Clint Checketts
Prometheus - Utah Software Architecture Meetup - Clint CheckettsPrometheus - Utah Software Architecture Meetup - Clint Checketts
Prometheus - Utah Software Architecture Meetup - Clint Checketts
 
CQRS and Event Sourcing for IoT applications
CQRS and Event Sourcing for IoT applicationsCQRS and Event Sourcing for IoT applications
CQRS and Event Sourcing for IoT applications
 
Api Statistics- The Scalable Way
Api Statistics- The Scalable WayApi Statistics- The Scalable Way
Api Statistics- The Scalable Way
 
Monitoring und Metriken im Wunderland
Monitoring und Metriken im WunderlandMonitoring und Metriken im Wunderland
Monitoring und Metriken im Wunderland
 
Day 5 - Real-time Data Processing/Internet of Things (IoT) with Amazon Kinesis
Day 5 - Real-time Data Processing/Internet of Things (IoT) with Amazon KinesisDay 5 - Real-time Data Processing/Internet of Things (IoT) with Amazon Kinesis
Day 5 - Real-time Data Processing/Internet of Things (IoT) with Amazon Kinesis
 
AWS Webcast - Introduction to Amazon Kinesis
AWS Webcast - Introduction to Amazon KinesisAWS Webcast - Introduction to Amazon Kinesis
AWS Webcast - Introduction to Amazon Kinesis
 
GemStone/S @ Vienna University
GemStone/S @ Vienna University GemStone/S @ Vienna University
GemStone/S @ Vienna University
 

Dernier

Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
sexy call girls service in goa
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 

Dernier (20)

Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
 
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
 
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 

Metric and Dashboard

  • 1. Metric and Dashboard • Metric Is and Isn’t • About Metric Data • Design and Deployment webmaster@xqbase.com
  • 2. Content • Metric Is and Isn’t  Comparison of Monitoring Systems  Comparison between Log and Metric • About Metric Data • Design and Deployment
  • 3. Comparison of Monitoring Systems • OS-Level Monitoring Zabbix, Nagios, Cacti, etc. • App-Level Monitoring Client Side: Google Analytics, Piwik, Umeng.com, etc. Server Side: Metric / Dashboard OS-Level Mon. App-Level Mon. CPU Memory Disk Network Processes … Requests Connections Threads … Conn. Pools API Callings Business Data User Behaviors Orders …
  • 4. Client Mon. vs Server Mon. • Client Monitoring User Visits / Page Visits User Statistics (Origins, Demographics, Platforms, etc.) User Behaviors (Timing, Conversions, Retentions, etc.) Not Accurate  • Server Monitoring + Server / Web Health (Load, Conn. Pools, API Callings, etc.) + Business Data (Visits, Orders, Transactions, etc.) Accurate 
  • 5. Comparison between Log and Metric • Log Each Event into Storages (File or DB) Huge Size • Metric Only Aggregated Data into Storages Stored by Minute Limited Size (Limited Tags and Values) • Statistics From Logs (Aggregation Pipeline, Map-Reduce, …) From Metrics (Aggregation Pipeline, Map-Reduce, …)
  • 6. Content • Metric Is and Isn’t • About Metric Data  Tags  Aggregations • Design and Deployment
  • 9. Tags • Tags are Attributes {_minute=“12:10:02”, path=“/”, status=200}, {_minute=“12:10:23”, path=“/users/”, status=200}, {_minute=“12:10:54”, path=“/”, status=200}, {_minute=“12:11:30”, path=“/users/”, status=200}, … • Tags are Columns _minute path status _count 12:10:00 / 200 2 12:10:00 /users/ 200 5 12:11:00 / 200 4 12:11:00 /users/ 200 3 12:11:00 /users/ 304 1
  • 10. • Query Condition WHERE tag_name = tag_value GROUP BY tag_name • Limited Tag Names and Values Tag Values are NOT Log Entries • Which are Bad Tags? Server IP Client IP Content-Type User Agent Tag Is and Isn’t    
  • 11. Aggregation Methods • Method COUNT SUM MAX / MIN AVG STD • Scenarios CPU Load, Memory Network Throughput Connections Request Response Time Orders MAX, AVG SUM MAX COUNT MAX, AVG COUNT, SUM •Process
  • 12. Aggregation Algorithms • Supply var entry = { count: 1, sum: value, max: value, min: value, sqr: value * value, }; • Combine count = sum(entries[i].count); sum = sum(entries[i].sum); max = max(entries[i].max); min = min(entries[i].min); sqr = sum(entries[i].sqr); avg = sum / count; std = sqrt(sqr * count – sum * sum) / count; •Accumulate entry.count ++; entry.sum += value; entry.max = max(entry.max, value); entry.min = min(entry.min, value); entry.sqr += value * value;
  • 13. Content • Metric Is and Isn’t • About Metric Data • Design and Deployment  Design  Deployment  Aggregation Phases
  • 14. Design • Collect Text + zlib + UDP --- Simple and Never Block • Store MongoDB --- Arbitrary Tags and Easy to Query • Query HTTP Rest API + JSON Data --- Easy to Develop Dashboard Apps
  • 15. Aggregation Phases • Aggregation before Collection For Java and C# Websites Aggregates on Web Server (by Minute) • Aggregation during Collection For PHP Websites Aggregates on Collector (by Minute) • Aggregation during Query For Dashboard Apps (Dashboard, Alerting, BI, …) Aggregates on Query Server (by Tags)
  • 17. Thanks Metric and Dashboard • Metric Is and Isn’t • About Metric Data • Design and Deployment webmaster@xqbase.com