SlideShare a Scribd company logo
1 of 37
April 11, 2023 4:00 PM IST
Hyderabad MuleSoft Meetup
Group Present’s # 28
Anypoint Custom Metrics
Mastery
Safe Harbour Statement
● Both the speaker and the host are organizing this meet-up in individual capacity only. We are
not representing our companies here.
● This presentation is strictly for learning purposes only. Organizer/Presenter do not hold any
responsibility that same solution will work for your business requirements.
● This presentation is not meant for any promotional activities.
3
A recording of this meetup will be uploaded to events page within 72 hours.
Questions can be submitted/asked at any time in the Chat/Questions & Answers Tab.
Make it more Interactive!!!
Share us the feedback! Rate this meetup session by filling feedback form at the end of the day.
We Love Feedbacks !!
Housekeeping
4
Organizer
About:
● Mulesoft Meetup Leader
● Working as MuleSoft Developer & Administrator @
Salesforce.
● 5+ years of Experience.
● Certified MuleSoft Developer and Architect.
● Bangalore and Hyderabad Meetup Leader
Bharath Kumar NJ,
AMTS, Salesforce
About the Speaker :
Introductions
Madhu Dileep Duddukuri,
Senior Technical Consultant,
MuleSoft, a Salesforce
Company
6
● Working as Senior Technical Consultant @ Salesforce.
● 8+ years of IT experience, specializing in integration
space, and around 6 years of experience in MuleSoft
technology.
● Certified MuleSoft Architect.
1. Prerequisites
2. Monitoring Configuration
3. Custom Metrics
4. Build Custom Metrics Dashboard
5. Demo
6. Q&A
Agenda
7
● General
○ Anypoint Monitoring permission
○ Titanium Subscription
● CloudHub Runtime
○ Access to deploy / manage applications
● Hybrid Runtimes
○ Access to the server (requires additional installation)
Prerequisites
8
Monitoring Configuration
● API Manager instances already enabled.
● CloudHub implementations need to be enabled via the following options:
○ Runtime Manager - properties window
○ Anypoint Monitoring - settings panel
○ CI/CD pipeline / Maven pom.xml - Most reliable as it is automated.
● Hybrid implementations require an agent install
Enable Monitoring
10
Enable Monitoring - Runtime Manager
11
Enable Monitoring - Anypoint Monitoring
12
Enable Monitoring - CI/CD Pipeline
13
Enable Monitoring - Hybrid Servers
14
Custom Metrics
Custom Metrics
16
● Saves and sends operational and business metrics to Anypoint Monitoring.
● These metrics can be used in real-time using built-in or custom dashboards.
● Utilizing Send Custom Metric component.
● Requires titanium subscription
Custom Metrics
17
a custom metric event contains sections of data
● Metric collection name – custom metric events are grouped together into collections, where
each collection contains a time-series sequence of metric events of the same type.
● Metric event timestamp – represents the time of the event object creation during the
runtime.
● Contextual values (aka dimensional values) – these values represents the context within
which the metric is generated. Each contextual value is for a contextual dimension. A
contextual value may be any type: string, numbers, IP, etc.
● Fact values – these values are numerical measurement (e.g. purchase amount, order count)
Custom Metrics best practices
18
Best practices include using time period and frequency effectively as well as using data with low
cardinality dimensions
● Time range
○ Determines how much data is fetched or processed to generate the chart.
● Refresh frequency
○ Determines how often a chart refreshes. High refresh frequencies put more stress on a system
and can affect performance.
● Low Cardinality Dimensions
○ Do not add high cardinality data, or data with many unique values, to custom metrics. Some examples
of high cardinality dimensions include order_id, product_id, location_id (latitude/longitude)
○ Replace a high cardinality dimension with a low cardinality dimension, such as:
■ category_id instead of product_id
■ country_code instead of location_id
■ order_count instead of order_id
Custom Metrics
API-Led view
19
● The company has 3 different ERP
systems based on region. They
eventually would like to consolidate
to one.
● Orders are originating from either
EDI, mobile or their commerce site
channels.
● Sales Rep orders are still originating
from the ERP UI.
Code Walkthrough
Custom Metrics
Create Order Flow
21
Custom Metrics
Use Case #1 - Problem
A story has been added to the sprint planning:
The integration team is looking for ways to charge back MuleSoft vCore costs back to the
business. A couple of options have already been discussed, but with the api-led structure it has
been decided that custom metrics is the way to go.
Create a custom metric that stores the count and the total order value for each order processed
via MuleSoft. Group these values by region, business unit and region + business unit.
Why Custom Metrics: The process api would be the best place to pull this data since it is one
location vs. looking at ERP data from three sources.
22
Custom Metrics
23
Custom Metrics
Use Case #1 - Solution
24
Dimensions are
alphanumeric, no
spaces, but can contain
some special
characters
- _ /  : .
Facts must be numeric
Custom Metrics Connector
25
● Custom Metrics Connector is available in MuleSoft Exchange
○ https://anypoint.mulesoft.com/exchange/com.mule.modules/mule-custom-
metrics-extension/
● Maven Dependency
● For troubleshooting use the below packages
○ com.mulesoft.analytics
○ com.mule.modules.acm.internal
<dependency>
<groupId>com.mule.modules</groupId>
<artifactId>mule-custom-metrics-extension</artifactId>
<version>2.2.0</version>
<classifier>mule-plugin</classifier>
</dependency>
Demo
Custom Metrics
Use Case #2 - Problem
A story has been added to the sprint planning:
The sales department has tasked the MuleSoft team with generating some analytics dashboards
to capture why orders are failing to reach their respective ERP system.
Why Custom Metrics: Thanks to guaranteed delivery, order failures are only captured in the
integration layer.
27
Custom Metrics
Use Case #2 - Solution
28
Demo
Build Custom Metrics Dashboard
Custom Metrics
Clone from Built-in Dashboard
Cloning from built-in dashboard is the easiest way to get started since the initial graphs are
already present.
Steps:
1. Open Anypoint Monitoring.
2. Go to desired implementation and select the “Custom Metrics” tab
3. Configure the graph with options
4. Click “Save As” button to save into custom dashboard.
31
Demo
● Push array of metrics to Custom Metrics Connector
Additional Information
33
References
Code Reference
● https://github.com/duddukuri-md/custom_metrics
Documentation
● https://docs.mulesoft.com/monitoring/dashboard-custom-config
● https://docs.mulesoft.com/monitoring/anypoint-custom-metrics-connector
● https://docs.mulesoft.com/monitoring/configure-monitoring-cloudhub
● https://docs.mulesoft.com/monitoring/am-installing#install_ap_monitoring_onprem
● https://docs.mulesoft.com/runtime-fabric/1.7/manage-monitor-applications
● https://help.mulesoft.com/s/article/Anypoint-Monitoring-Knowledge-Base-Master-Page
● https://help.mulesoft.com/s/article/How-to-Update-a-Query-Filter-for-Custom-Metrics-in-
Anypoint-Monitoring
34
Q&A
Take a stand !
36
●Nominate yourself for the next meetup speaker
https://sfdc.co/hyd-meetup-nomination
37
● Share:
○ Tweet using the hashtag #MuleSoftMeetups #MuleSoftCommunity
○ Join Hyderabad Group: https://meetups.mulesoft.com/hyderabad
● Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
What’s next?
Thank You

More Related Content

What's hot

[Final] best practices for access management (mule soft meetups riyadh) - j...
[Final] best practices for access management (mule soft meetups   riyadh) - j...[Final] best practices for access management (mule soft meetups   riyadh) - j...
[Final] best practices for access management (mule soft meetups riyadh) - j...satyasekhar123
 
10 things to consider when planning your Mule 4 migration
10 things to consider when planning your Mule 4 migration10 things to consider when planning your Mule 4 migration
10 things to consider when planning your Mule 4 migrationCoforge (Erstwhile WHISHWORKS)
 
MuleSoft Sizing Guidelines - VirtualMuleys
MuleSoft Sizing Guidelines - VirtualMuleysMuleSoft Sizing Guidelines - VirtualMuleys
MuleSoft Sizing Guidelines - VirtualMuleysAngel Alberici
 
Introduction to CloudHub 2.0
Introduction to CloudHub 2.0Introduction to CloudHub 2.0
Introduction to CloudHub 2.0NeerajKumar1965
 
Performance tuning in mule
Performance tuning in mulePerformance tuning in mule
Performance tuning in muleSon Nguyen
 
Migrating to mule 4 - Are you ready for This.
Migrating to mule 4 - Are you ready for This.Migrating to mule 4 - Are you ready for This.
Migrating to mule 4 - Are you ready for This.Harish Kumar
 
Mulesoft Meetups - Salesforce & Mulesoft Integrations, Anypoint Security Poli...
Mulesoft Meetups - Salesforce & Mulesoft Integrations, Anypoint Security Poli...Mulesoft Meetups - Salesforce & Mulesoft Integrations, Anypoint Security Poli...
Mulesoft Meetups - Salesforce & Mulesoft Integrations, Anypoint Security Poli...Ricardo Rodríguez
 
MuleSoft Architecture Presentation
MuleSoft Architecture PresentationMuleSoft Architecture Presentation
MuleSoft Architecture PresentationRupesh Sinha
 
An Introduction to Apache Kafka
An Introduction to Apache KafkaAn Introduction to Apache Kafka
An Introduction to Apache KafkaAmir Sedighi
 
Anypoint platform architecture and components
Anypoint platform architecture and componentsAnypoint platform architecture and components
Anypoint platform architecture and componentsD.Rajesh Kumar
 
SAP Integration with MuleSoft | MuleSoft Mysore Meetup #14
SAP Integration with MuleSoft | MuleSoft Mysore Meetup #14 SAP Integration with MuleSoft | MuleSoft Mysore Meetup #14
SAP Integration with MuleSoft | MuleSoft Mysore Meetup #14 MysoreMuleSoftMeetup
 
Solace PubSub+ MuleSoft Connector for Mule 4
Solace PubSub+ MuleSoft Connector for Mule 4Solace PubSub+ MuleSoft Connector for Mule 4
Solace PubSub+ MuleSoft Connector for Mule 4Manish Kumar Yadav
 
Warsaw MuleSoft Meetup #12 Effective Streaming
Warsaw MuleSoft Meetup #12 Effective StreamingWarsaw MuleSoft Meetup #12 Effective Streaming
Warsaw MuleSoft Meetup #12 Effective StreamingPatryk Bandurski
 
Learn More About Object Store | MuleSoft Mysore Meetup #9
Learn More About Object Store | MuleSoft Mysore Meetup #9Learn More About Object Store | MuleSoft Mysore Meetup #9
Learn More About Object Store | MuleSoft Mysore Meetup #9MysoreMuleSoftMeetup
 
Batch Processing with Mule 4
Batch Processing with Mule 4Batch Processing with Mule 4
Batch Processing with Mule 4NeerajKumar1965
 
Denver MuleSoft Meetup: Deep Dive into Anypoint Runtime Fabric Security
Denver MuleSoft Meetup: Deep Dive into Anypoint Runtime Fabric Security Denver MuleSoft Meetup: Deep Dive into Anypoint Runtime Fabric Security
Denver MuleSoft Meetup: Deep Dive into Anypoint Runtime Fabric Security Stephanie Lawrence
 
Error Handling in Mulesoft
Error Handling in MulesoftError Handling in Mulesoft
Error Handling in MulesoftAmit Singh
 
Oracle Fusion functional setup manager
Oracle Fusion functional setup managerOracle Fusion functional setup manager
Oracle Fusion functional setup managerBerry Clemens
 

What's hot (20)

[Final] best practices for access management (mule soft meetups riyadh) - j...
[Final] best practices for access management (mule soft meetups   riyadh) - j...[Final] best practices for access management (mule soft meetups   riyadh) - j...
[Final] best practices for access management (mule soft meetups riyadh) - j...
 
10 things to consider when planning your Mule 4 migration
10 things to consider when planning your Mule 4 migration10 things to consider when planning your Mule 4 migration
10 things to consider when planning your Mule 4 migration
 
MuleSoft Sizing Guidelines - VirtualMuleys
MuleSoft Sizing Guidelines - VirtualMuleysMuleSoft Sizing Guidelines - VirtualMuleys
MuleSoft Sizing Guidelines - VirtualMuleys
 
Introduction to CloudHub 2.0
Introduction to CloudHub 2.0Introduction to CloudHub 2.0
Introduction to CloudHub 2.0
 
Performance tuning in mule
Performance tuning in mulePerformance tuning in mule
Performance tuning in mule
 
Migrating to mule 4 - Are you ready for This.
Migrating to mule 4 - Are you ready for This.Migrating to mule 4 - Are you ready for This.
Migrating to mule 4 - Are you ready for This.
 
Mulesoft Meetups - Salesforce & Mulesoft Integrations, Anypoint Security Poli...
Mulesoft Meetups - Salesforce & Mulesoft Integrations, Anypoint Security Poli...Mulesoft Meetups - Salesforce & Mulesoft Integrations, Anypoint Security Poli...
Mulesoft Meetups - Salesforce & Mulesoft Integrations, Anypoint Security Poli...
 
MuleSoft Architecture Presentation
MuleSoft Architecture PresentationMuleSoft Architecture Presentation
MuleSoft Architecture Presentation
 
Cloudhub 2.0
Cloudhub 2.0Cloudhub 2.0
Cloudhub 2.0
 
An Introduction to Apache Kafka
An Introduction to Apache KafkaAn Introduction to Apache Kafka
An Introduction to Apache Kafka
 
Anypoint platform architecture and components
Anypoint platform architecture and componentsAnypoint platform architecture and components
Anypoint platform architecture and components
 
Extensions in OAF
Extensions in OAF Extensions in OAF
Extensions in OAF
 
SAP Integration with MuleSoft | MuleSoft Mysore Meetup #14
SAP Integration with MuleSoft | MuleSoft Mysore Meetup #14 SAP Integration with MuleSoft | MuleSoft Mysore Meetup #14
SAP Integration with MuleSoft | MuleSoft Mysore Meetup #14
 
Solace PubSub+ MuleSoft Connector for Mule 4
Solace PubSub+ MuleSoft Connector for Mule 4Solace PubSub+ MuleSoft Connector for Mule 4
Solace PubSub+ MuleSoft Connector for Mule 4
 
Warsaw MuleSoft Meetup #12 Effective Streaming
Warsaw MuleSoft Meetup #12 Effective StreamingWarsaw MuleSoft Meetup #12 Effective Streaming
Warsaw MuleSoft Meetup #12 Effective Streaming
 
Learn More About Object Store | MuleSoft Mysore Meetup #9
Learn More About Object Store | MuleSoft Mysore Meetup #9Learn More About Object Store | MuleSoft Mysore Meetup #9
Learn More About Object Store | MuleSoft Mysore Meetup #9
 
Batch Processing with Mule 4
Batch Processing with Mule 4Batch Processing with Mule 4
Batch Processing with Mule 4
 
Denver MuleSoft Meetup: Deep Dive into Anypoint Runtime Fabric Security
Denver MuleSoft Meetup: Deep Dive into Anypoint Runtime Fabric Security Denver MuleSoft Meetup: Deep Dive into Anypoint Runtime Fabric Security
Denver MuleSoft Meetup: Deep Dive into Anypoint Runtime Fabric Security
 
Error Handling in Mulesoft
Error Handling in MulesoftError Handling in Mulesoft
Error Handling in Mulesoft
 
Oracle Fusion functional setup manager
Oracle Fusion functional setup managerOracle Fusion functional setup manager
Oracle Fusion functional setup manager
 

Similar to Anypoint Custom Metrics Mastery

Elite mindz introduction
Elite mindz introductionElite mindz introduction
Elite mindz introductionSimerjeet Singh
 
EliteMindz: Who are we? Where do we serve ? What are our products & services?
EliteMindz: Who are we? Where do we serve ? What are our products & services?EliteMindz: Who are we? Where do we serve ? What are our products & services?
EliteMindz: Who are we? Where do we serve ? What are our products & services?Simerjeet Singh
 
Performance Testing
Performance TestingPerformance Testing
Performance TestingvodQA
 
Technical Webinar: Patterns for Integrating Your Salesforce App with Off-Plat...
Technical Webinar: Patterns for Integrating Your Salesforce App with Off-Plat...Technical Webinar: Patterns for Integrating Your Salesforce App with Off-Plat...
Technical Webinar: Patterns for Integrating Your Salesforce App with Off-Plat...CodeScience
 
Mule soft meetup__adelaide_october_2020_final (2)
Mule soft meetup__adelaide_october_2020_final (2)Mule soft meetup__adelaide_october_2020_final (2)
Mule soft meetup__adelaide_october_2020_final (2)Nicholas Bowman
 
Anypoint new features_coimbatore_mule_meetup
Anypoint new features_coimbatore_mule_meetupAnypoint new features_coimbatore_mule_meetup
Anypoint new features_coimbatore_mule_meetupMergeStack
 
How to Choose an Integration Platform Vendor for Your Business
How to Choose an Integration Platform Vendor for Your BusinessHow to Choose an Integration Platform Vendor for Your Business
How to Choose an Integration Platform Vendor for Your BusinessWSO2
 
Indore MuleSoft Meetup #5 April 2022 MDynamics 65.pptx
Indore MuleSoft Meetup #5 April 2022 MDynamics 65.pptxIndore MuleSoft Meetup #5 April 2022 MDynamics 65.pptx
Indore MuleSoft Meetup #5 April 2022 MDynamics 65.pptxIndoreMulesoftMeetup
 
MuleSoft Manchester Meetup #2 slides 29th October 2019
MuleSoft Manchester Meetup #2 slides 29th October 2019MuleSoft Manchester Meetup #2 slides 29th October 2019
MuleSoft Manchester Meetup #2 slides 29th October 2019Ieva Navickaite
 
Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8ManjuKumara GH
 
MuleSoft Surat Meetup#43 - Combine Service Mesh With Anypoint API Management ...
MuleSoft Surat Meetup#43 - Combine Service Mesh With Anypoint API Management ...MuleSoft Surat Meetup#43 - Combine Service Mesh With Anypoint API Management ...
MuleSoft Surat Meetup#43 - Combine Service Mesh With Anypoint API Management ...Jitendra Bafna
 
Kks sre book_ch10
Kks sre book_ch10Kks sre book_ch10
Kks sre book_ch10Chris Huang
 
Custom Software Development
Custom Software DevelopmentCustom Software Development
Custom Software DevelopmentSimerjeet Singh
 
MuleSoft Surat Virtual Meetup#6 - MuleSoft API Led Connectivity, SEDA and MUn...
MuleSoft Surat Virtual Meetup#6 - MuleSoft API Led Connectivity, SEDA and MUn...MuleSoft Surat Virtual Meetup#6 - MuleSoft API Led Connectivity, SEDA and MUn...
MuleSoft Surat Virtual Meetup#6 - MuleSoft API Led Connectivity, SEDA and MUn...Jitendra Bafna
 
MuleSoft Manchester Meetup #4 slides 11th February 2021
MuleSoft Manchester Meetup #4 slides 11th February 2021MuleSoft Manchester Meetup #4 slides 11th February 2021
MuleSoft Manchester Meetup #4 slides 11th February 2021Ieva Navickaite
 
MuleSoft meetup__houston #13
MuleSoft meetup__houston #13MuleSoft meetup__houston #13
MuleSoft meetup__houston #13Jim Andrews
 
MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...
MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...
MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...Jitendra Bafna
 
VMworld 2013: Building the Management Stack for Your Software Defined Data Ce...
VMworld 2013: Building the Management Stack for Your Software Defined Data Ce...VMworld 2013: Building the Management Stack for Your Software Defined Data Ce...
VMworld 2013: Building the Management Stack for Your Software Defined Data Ce...VMworld
 

Similar to Anypoint Custom Metrics Mastery (20)

Elite mindz introduction
Elite mindz introductionElite mindz introduction
Elite mindz introduction
 
EliteMindz: Who are we? Where do we serve ? What are our products & services?
EliteMindz: Who are we? Where do we serve ? What are our products & services?EliteMindz: Who are we? Where do we serve ? What are our products & services?
EliteMindz: Who are we? Where do we serve ? What are our products & services?
 
Performance Testing
Performance TestingPerformance Testing
Performance Testing
 
Technical Webinar: Patterns for Integrating Your Salesforce App with Off-Plat...
Technical Webinar: Patterns for Integrating Your Salesforce App with Off-Plat...Technical Webinar: Patterns for Integrating Your Salesforce App with Off-Plat...
Technical Webinar: Patterns for Integrating Your Salesforce App with Off-Plat...
 
Mule soft meetup__adelaide_october_2020_final (2)
Mule soft meetup__adelaide_october_2020_final (2)Mule soft meetup__adelaide_october_2020_final (2)
Mule soft meetup__adelaide_october_2020_final (2)
 
Anypoint new features_coimbatore_mule_meetup
Anypoint new features_coimbatore_mule_meetupAnypoint new features_coimbatore_mule_meetup
Anypoint new features_coimbatore_mule_meetup
 
BVT_Swamy_Abap_4
BVT_Swamy_Abap_4BVT_Swamy_Abap_4
BVT_Swamy_Abap_4
 
How to Choose an Integration Platform Vendor for Your Business
How to Choose an Integration Platform Vendor for Your BusinessHow to Choose an Integration Platform Vendor for Your Business
How to Choose an Integration Platform Vendor for Your Business
 
Indore MuleSoft Meetup #5 April 2022 MDynamics 65.pptx
Indore MuleSoft Meetup #5 April 2022 MDynamics 65.pptxIndore MuleSoft Meetup #5 April 2022 MDynamics 65.pptx
Indore MuleSoft Meetup #5 April 2022 MDynamics 65.pptx
 
MuleSoft Manchester Meetup #2 slides 29th October 2019
MuleSoft Manchester Meetup #2 slides 29th October 2019MuleSoft Manchester Meetup #2 slides 29th October 2019
MuleSoft Manchester Meetup #2 slides 29th October 2019
 
Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8Baltimore MuleSoft Meetup #8
Baltimore MuleSoft Meetup #8
 
Data Stack Summit 2023
Data Stack Summit 2023Data Stack Summit 2023
Data Stack Summit 2023
 
MuleSoft Surat Meetup#43 - Combine Service Mesh With Anypoint API Management ...
MuleSoft Surat Meetup#43 - Combine Service Mesh With Anypoint API Management ...MuleSoft Surat Meetup#43 - Combine Service Mesh With Anypoint API Management ...
MuleSoft Surat Meetup#43 - Combine Service Mesh With Anypoint API Management ...
 
Kks sre book_ch10
Kks sre book_ch10Kks sre book_ch10
Kks sre book_ch10
 
Custom Software Development
Custom Software DevelopmentCustom Software Development
Custom Software Development
 
MuleSoft Surat Virtual Meetup#6 - MuleSoft API Led Connectivity, SEDA and MUn...
MuleSoft Surat Virtual Meetup#6 - MuleSoft API Led Connectivity, SEDA and MUn...MuleSoft Surat Virtual Meetup#6 - MuleSoft API Led Connectivity, SEDA and MUn...
MuleSoft Surat Virtual Meetup#6 - MuleSoft API Led Connectivity, SEDA and MUn...
 
MuleSoft Manchester Meetup #4 slides 11th February 2021
MuleSoft Manchester Meetup #4 slides 11th February 2021MuleSoft Manchester Meetup #4 slides 11th February 2021
MuleSoft Manchester Meetup #4 slides 11th February 2021
 
MuleSoft meetup__houston #13
MuleSoft meetup__houston #13MuleSoft meetup__houston #13
MuleSoft meetup__houston #13
 
MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...
MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...
MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...
 
VMworld 2013: Building the Management Stack for Your Software Defined Data Ce...
VMworld 2013: Building the Management Stack for Your Software Defined Data Ce...VMworld 2013: Building the Management Stack for Your Software Defined Data Ce...
VMworld 2013: Building the Management Stack for Your Software Defined Data Ce...
 

More from MuleSoft Meetups

MuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft Meetups
 
Anypoint API Manager Custom Policies & Best Practices
Anypoint API Manager Custom Policies & Best PracticesAnypoint API Manager Custom Policies & Best Practices
Anypoint API Manager Custom Policies & Best PracticesMuleSoft Meetups
 
DataWeave Extension Library
DataWeave Extension LibraryDataWeave Extension Library
DataWeave Extension LibraryMuleSoft Meetups
 
MuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft Meetups
 

More from MuleSoft Meetups (6)

The ins and outs of RAML
The ins and outs of RAMLThe ins and outs of RAML
The ins and outs of RAML
 
MuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPT
 
Anypoint API Manager Custom Policies & Best Practices
Anypoint API Manager Custom Policies & Best PracticesAnypoint API Manager Custom Policies & Best Practices
Anypoint API Manager Custom Policies & Best Practices
 
API LifeCycle Management
API LifeCycle ManagementAPI LifeCycle Management
API LifeCycle Management
 
DataWeave Extension Library
DataWeave Extension LibraryDataWeave Extension Library
DataWeave Extension Library
 
MuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPTMuleSoft + Augmented Reality & ChatGPT
MuleSoft + Augmented Reality & ChatGPT
 

Recently uploaded

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 

Recently uploaded (20)

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 

Anypoint Custom Metrics Mastery

  • 1. April 11, 2023 4:00 PM IST Hyderabad MuleSoft Meetup Group Present’s # 28 Anypoint Custom Metrics Mastery
  • 2. Safe Harbour Statement ● Both the speaker and the host are organizing this meet-up in individual capacity only. We are not representing our companies here. ● This presentation is strictly for learning purposes only. Organizer/Presenter do not hold any responsibility that same solution will work for your business requirements. ● This presentation is not meant for any promotional activities. 3
  • 3. A recording of this meetup will be uploaded to events page within 72 hours. Questions can be submitted/asked at any time in the Chat/Questions & Answers Tab. Make it more Interactive!!! Share us the feedback! Rate this meetup session by filling feedback form at the end of the day. We Love Feedbacks !! Housekeeping 4
  • 4. Organizer About: ● Mulesoft Meetup Leader ● Working as MuleSoft Developer & Administrator @ Salesforce. ● 5+ years of Experience. ● Certified MuleSoft Developer and Architect. ● Bangalore and Hyderabad Meetup Leader Bharath Kumar NJ, AMTS, Salesforce
  • 5. About the Speaker : Introductions Madhu Dileep Duddukuri, Senior Technical Consultant, MuleSoft, a Salesforce Company 6 ● Working as Senior Technical Consultant @ Salesforce. ● 8+ years of IT experience, specializing in integration space, and around 6 years of experience in MuleSoft technology. ● Certified MuleSoft Architect.
  • 6. 1. Prerequisites 2. Monitoring Configuration 3. Custom Metrics 4. Build Custom Metrics Dashboard 5. Demo 6. Q&A Agenda 7
  • 7. ● General ○ Anypoint Monitoring permission ○ Titanium Subscription ● CloudHub Runtime ○ Access to deploy / manage applications ● Hybrid Runtimes ○ Access to the server (requires additional installation) Prerequisites 8
  • 9. ● API Manager instances already enabled. ● CloudHub implementations need to be enabled via the following options: ○ Runtime Manager - properties window ○ Anypoint Monitoring - settings panel ○ CI/CD pipeline / Maven pom.xml - Most reliable as it is automated. ● Hybrid implementations require an agent install Enable Monitoring 10
  • 10. Enable Monitoring - Runtime Manager 11
  • 11. Enable Monitoring - Anypoint Monitoring 12
  • 12. Enable Monitoring - CI/CD Pipeline 13
  • 13. Enable Monitoring - Hybrid Servers 14
  • 15. Custom Metrics 16 ● Saves and sends operational and business metrics to Anypoint Monitoring. ● These metrics can be used in real-time using built-in or custom dashboards. ● Utilizing Send Custom Metric component. ● Requires titanium subscription
  • 16. Custom Metrics 17 a custom metric event contains sections of data ● Metric collection name – custom metric events are grouped together into collections, where each collection contains a time-series sequence of metric events of the same type. ● Metric event timestamp – represents the time of the event object creation during the runtime. ● Contextual values (aka dimensional values) – these values represents the context within which the metric is generated. Each contextual value is for a contextual dimension. A contextual value may be any type: string, numbers, IP, etc. ● Fact values – these values are numerical measurement (e.g. purchase amount, order count)
  • 17. Custom Metrics best practices 18 Best practices include using time period and frequency effectively as well as using data with low cardinality dimensions ● Time range ○ Determines how much data is fetched or processed to generate the chart. ● Refresh frequency ○ Determines how often a chart refreshes. High refresh frequencies put more stress on a system and can affect performance. ● Low Cardinality Dimensions ○ Do not add high cardinality data, or data with many unique values, to custom metrics. Some examples of high cardinality dimensions include order_id, product_id, location_id (latitude/longitude) ○ Replace a high cardinality dimension with a low cardinality dimension, such as: ■ category_id instead of product_id ■ country_code instead of location_id ■ order_count instead of order_id
  • 18. Custom Metrics API-Led view 19 ● The company has 3 different ERP systems based on region. They eventually would like to consolidate to one. ● Orders are originating from either EDI, mobile or their commerce site channels. ● Sales Rep orders are still originating from the ERP UI.
  • 21. Custom Metrics Use Case #1 - Problem A story has been added to the sprint planning: The integration team is looking for ways to charge back MuleSoft vCore costs back to the business. A couple of options have already been discussed, but with the api-led structure it has been decided that custom metrics is the way to go. Create a custom metric that stores the count and the total order value for each order processed via MuleSoft. Group these values by region, business unit and region + business unit. Why Custom Metrics: The process api would be the best place to pull this data since it is one location vs. looking at ERP data from three sources. 22
  • 23. Custom Metrics Use Case #1 - Solution 24 Dimensions are alphanumeric, no spaces, but can contain some special characters - _ / : . Facts must be numeric
  • 24. Custom Metrics Connector 25 ● Custom Metrics Connector is available in MuleSoft Exchange ○ https://anypoint.mulesoft.com/exchange/com.mule.modules/mule-custom- metrics-extension/ ● Maven Dependency ● For troubleshooting use the below packages ○ com.mulesoft.analytics ○ com.mule.modules.acm.internal <dependency> <groupId>com.mule.modules</groupId> <artifactId>mule-custom-metrics-extension</artifactId> <version>2.2.0</version> <classifier>mule-plugin</classifier> </dependency>
  • 25. Demo
  • 26. Custom Metrics Use Case #2 - Problem A story has been added to the sprint planning: The sales department has tasked the MuleSoft team with generating some analytics dashboards to capture why orders are failing to reach their respective ERP system. Why Custom Metrics: Thanks to guaranteed delivery, order failures are only captured in the integration layer. 27
  • 27. Custom Metrics Use Case #2 - Solution 28
  • 28. Demo
  • 29. Build Custom Metrics Dashboard
  • 30. Custom Metrics Clone from Built-in Dashboard Cloning from built-in dashboard is the easiest way to get started since the initial graphs are already present. Steps: 1. Open Anypoint Monitoring. 2. Go to desired implementation and select the “Custom Metrics” tab 3. Configure the graph with options 4. Click “Save As” button to save into custom dashboard. 31
  • 31. Demo
  • 32. ● Push array of metrics to Custom Metrics Connector Additional Information 33
  • 33. References Code Reference ● https://github.com/duddukuri-md/custom_metrics Documentation ● https://docs.mulesoft.com/monitoring/dashboard-custom-config ● https://docs.mulesoft.com/monitoring/anypoint-custom-metrics-connector ● https://docs.mulesoft.com/monitoring/configure-monitoring-cloudhub ● https://docs.mulesoft.com/monitoring/am-installing#install_ap_monitoring_onprem ● https://docs.mulesoft.com/runtime-fabric/1.7/manage-monitor-applications ● https://help.mulesoft.com/s/article/Anypoint-Monitoring-Knowledge-Base-Master-Page ● https://help.mulesoft.com/s/article/How-to-Update-a-Query-Filter-for-Custom-Metrics-in- Anypoint-Monitoring 34
  • 34. Q&A
  • 35. Take a stand ! 36 ●Nominate yourself for the next meetup speaker https://sfdc.co/hyd-meetup-nomination
  • 36. 37 ● Share: ○ Tweet using the hashtag #MuleSoftMeetups #MuleSoftCommunity ○ Join Hyderabad Group: https://meetups.mulesoft.com/hyderabad ● Feedback: ○ Fill out the survey feedback and suggest topics for upcoming events ○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program What’s next?