SlideShare a Scribd company logo
1 of 68
Download to read offline
Ko Turk
Controlling your race with
Micrometer, Spring Boot
and Cloud Foundry
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
You’re part of a racing team
@KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
But why don’t we create metrics into our applications??
Sounds silly right?
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Of course you can log it but…..
@KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Title Text
https://formulaf1results.blogspot.com/2020/01/f1-crash-wallpaper.html
Application X Application Y
Backend
(still driving but slow)
@KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
If that’s happening…..
@KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
That’s where
Micrometer comes in
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Introduction
Working
for Blue4IT
@Rabobank
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
https://www.signifytechnology.com/blog/2019/09/whats-your-tech-stack
Java 14Spring Boot
Typescript
Angular
Cloud Foundry
Pipeline as code Micrometer
Speaking
about IDEs and Micrometer
Likes to drive
the trial bike
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
UtrechtJUG
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Goals
Define the metrics
Create them in Micrometer
Save it to Prometheus
Visualize with Grafana
Deploy to Cloud Foundry
(Create the teams strategy)
(Preparing the car/race)
(The teams Pitwall)
(Let’s race)
https://www.redbull.com/nl-nl/red-bull-racing-zet-de-fabrieksdeuren-open
Create the teams strategy
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
What do we want to monitor?
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
How to be good in DevOps?
https://landing.google.com/sre/sre-book/toc/index.html
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
It’s about
• Searching for race factors —> Service Level Indicators
• Creating tactics —> Service Level Objectives
• Creating a strategy —> Service Level Agreement
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Racing Factors —> Defining an indicator (SLI)
• pitstop
request latency
• tires
error rate
• rounds
system throughput
• weather
availability
How long does it take to do a pitstop
How long does it take to return a response
How many tire left (bandenslijtage)
How many faults receiving
how many rounds
How many requests
Will it be rainy or not
Time that a service is usable
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Tactics —> Defining an objective (SLO)
not slower then 8 seconds
service x not longer then 0.1 seconds
wear not less then 10 %
max 10 errors on a day
all rounds
max 100.000 request on a day
minimal 20 rounds rainy (then need rain tyre)
99 % availability of service x
• pitstop
request latency
• tires
error rate
• rounds
system throughput
• weather
availability
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Strategy —> Defining an agreement (SLA)
• 2 pitstops less then x seconds
• intermediate tires when raining more then x
• Results in hit in reputation, no payments means no revenue,
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Goals
Define the metrics
Create them in Micrometer
Save it to Prometheus
Visualize with Grafana
Deploy to Cloud Foundry
(Create the teams strategy)
(Preparing the car/race)
(The teams Pitwall)
(Let’s race)
Micrometer for the win!
But what is it?
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
SLF4J only for metrics
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Reasons to use Micrometer
• No vendor lock-in
• It’s Pivotal VMWare Tanzu
• Easy integration in Spring Boot
• So also support in Cloud Foundry
• Simple to use
• You can choose your own database / monitoring system
• You can define your own set of metrics
• But you get a lot for free
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Micrometer is included in Spring Boot 2 actuator
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Extra dependency for Spring Boot 1.5.x
I<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-spring-legacy</artifactId>
</dependency>
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
And also for Micronaut
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Pre-configured Bindings
• Instrumentions of:
• caches
• class loader
• garbage collection
• processor utilisation
• thread pools
• and more
https://i.ytimg.com/vi/eVpRNi5VEDo/maxresdefault.jpg
Demo time
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
https://s1.cdn.autoevolution.com/images/news/gallery/red-bull-racing-beats-record-to-set-new-fastest-pit-stop-in-the-history-of-f1_2.jpg
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Timer
https://i.pinimg.com/originals/fb/5b/98/fb5b98edf68000f44e89d6428a3e2c65.jpg
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Long Task Timer
https://www.wallpaperflare.com/static/467/219/735/mercedes-amg-f1-w07-hybrid-formula-1-testing-wallpaper.jpg
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Counter
https://cdn.24.co.za/files/Cms/General/d/4338/1678467a9d9149b983f38424014fb2c0.jpg
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Gauge
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
About security
• Please implement spring security
• Otherwise you will expose your endpoint to others
• And don’t forget to add it in your database config!
https://www.baeldung.com/spring-security-basic-authentication
https://egkatzioura.com/2020/05/07/spring-boot-and-micrometer-with-prometheus-part-6-securing-metrics/
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Goals
Define the metrics
Create them in Micrometer
Save it to Prometheus
Visualize with Grafana
Deploy to Cloud Foundry
(Create the teams strategy)
(Preparing the car/race)
(The teams Pitwall)
(Let’s race)
@KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Where to store the metrics?
Which database should I use?
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Databases
• Prometheus
• Graphite
• Atlas
• KairosDB
Persistent or not persistent?
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
If you want to expose to prometheus
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>

@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Or Graphite
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-graphite</artifactId>
</dependency>

@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Goals
Define the metrics
Create them in Micrometer
Save it to Prometheus
Visualize with Grafana
Deploy to Cloud Foundry
(Create the teams strategy)
(Preparing the car/race)
(The teams Pitwall)
(Let’s race)
https://blog.purestorage.com/wp-content/uploads/2016/07/Pure-MBF1-Pitwall-v6.jpg
@KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
How to visualise the application metrics?
Which monitoring system to use?
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Systems
• Grafana
• Datadog
• Dynatrace
• Instant
• WaveFront
• and many more
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Let’s deep dive into Grafana
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Long Task Timer (duration)
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Timer (count)
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Timer (max)
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Gauge
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Bindings
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Goals
Define the metrics
Create them in Micrometer
Save it to Prometheus
Visualize with Grafana
Deploy to Cloud Foundry
(Create the teams strategy)
(Preparing the car/race)
(The teams Pitwall)
(Let’s race)
@KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Title Text
@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry
Thank you for listening
Please give me some feedback at:
https://bit.ly/2C5TFzV
Or take a picture with your phone

More Related Content

What's hot

Software Supply Chain Observability with Grafeas and Kritis
Software Supply Chain Observability with Grafeas and KritisSoftware Supply Chain Observability with Grafeas and Kritis
Software Supply Chain Observability with Grafeas and KritisAysylu Greenberg
 
Spring Boot Observability
Spring Boot ObservabilitySpring Boot Observability
Spring Boot ObservabilityVMware Tanzu
 
Software Supply Chain Management with Grafeas and Kritis
Software Supply Chain Management with Grafeas and KritisSoftware Supply Chain Management with Grafeas and Kritis
Software Supply Chain Management with Grafeas and KritisAysylu Greenberg
 
게임 서버 성능 분석하기
게임 서버 성능 분석하기게임 서버 성능 분석하기
게임 서버 성능 분석하기iFunFactory Inc.
 
Speeding up your team with GitOps
Speeding up your team with GitOpsSpeeding up your team with GitOps
Speeding up your team with GitOpsBrice Fernandes
 
Secure GitOps pipelines for Kubernetes with Snyk & Weaveworks
Secure GitOps pipelines for Kubernetes with Snyk & WeaveworksSecure GitOps pipelines for Kubernetes with Snyk & Weaveworks
Secure GitOps pipelines for Kubernetes with Snyk & WeaveworksWeaveworks
 
Hardening Your CI/CD Pipelines with GitOps and Continuous Security
Hardening Your CI/CD Pipelines with GitOps and Continuous SecurityHardening Your CI/CD Pipelines with GitOps and Continuous Security
Hardening Your CI/CD Pipelines with GitOps and Continuous SecurityWeaveworks
 
Kerbernetes Robotics Distributed System Deep Dive
Kerbernetes Robotics Distributed System Deep DiveKerbernetes Robotics Distributed System Deep Dive
Kerbernetes Robotics Distributed System Deep DiveTomoya Fujita
 
WWCode Dallas - Kubernetes: Learning from Zero to Production
WWCode Dallas - Kubernetes: Learning from Zero to ProductionWWCode Dallas - Kubernetes: Learning from Zero to Production
WWCode Dallas - Kubernetes: Learning from Zero to ProductionRosemary Wang
 
Kubernetes Controller for Pull Request Based Environment
Kubernetes Controller for Pull Request Based EnvironmentKubernetes Controller for Pull Request Based Environment
Kubernetes Controller for Pull Request Based EnvironmentVishal Banthia
 
Kubernetes based connected vehicle platform #k8sjp_t1 #k8sjp
Kubernetes based connected vehicle platform #k8sjp_t1 #k8sjp Kubernetes based connected vehicle platform #k8sjp_t1 #k8sjp
Kubernetes based connected vehicle platform #k8sjp_t1 #k8sjp Kenta Suzuki
 
GitOps Days EU 20 - Our journey building a self-service platform
GitOps Days EU 20 - Our journey building a self-service platformGitOps Days EU 20 - Our journey building a self-service platform
GitOps Days EU 20 - Our journey building a self-service platformSteven Wade Consutling
 
Microservices development at scale
Microservices development at scaleMicroservices development at scale
Microservices development at scaleVishal Banthia
 
Leveraging Gradle @ Netflix (Madrid GUG Feb 2, 2021)
Leveraging Gradle @ Netflix (Madrid GUG Feb 2, 2021)Leveraging Gradle @ Netflix (Madrid GUG Feb 2, 2021)
Leveraging Gradle @ Netflix (Madrid GUG Feb 2, 2021)Roberto Pérez Alcolea
 
How we can do Multi-Tenancy on Kubernetes
How we can do Multi-Tenancy on KubernetesHow we can do Multi-Tenancy on Kubernetes
How we can do Multi-Tenancy on KubernetesOpsta
 
Rehosting apps between k8s clusters and automating deployment using crane c...
Rehosting apps between k8s clusters and automating deployment using crane   c...Rehosting apps between k8s clusters and automating deployment using crane   c...
Rehosting apps between k8s clusters and automating deployment using crane c...LibbySchulze
 

What's hot (20)

Software Supply Chain Observability with Grafeas and Kritis
Software Supply Chain Observability with Grafeas and KritisSoftware Supply Chain Observability with Grafeas and Kritis
Software Supply Chain Observability with Grafeas and Kritis
 
Spring Boot Observability
Spring Boot ObservabilitySpring Boot Observability
Spring Boot Observability
 
Software Supply Chain Management with Grafeas and Kritis
Software Supply Chain Management with Grafeas and KritisSoftware Supply Chain Management with Grafeas and Kritis
Software Supply Chain Management with Grafeas and Kritis
 
게임 서버 성능 분석하기
게임 서버 성능 분석하기게임 서버 성능 분석하기
게임 서버 성능 분석하기
 
Speeding up your team with GitOps
Speeding up your team with GitOpsSpeeding up your team with GitOps
Speeding up your team with GitOps
 
Secure GitOps pipelines for Kubernetes with Snyk & Weaveworks
Secure GitOps pipelines for Kubernetes with Snyk & WeaveworksSecure GitOps pipelines for Kubernetes with Snyk & Weaveworks
Secure GitOps pipelines for Kubernetes with Snyk & Weaveworks
 
Hardening Your CI/CD Pipelines with GitOps and Continuous Security
Hardening Your CI/CD Pipelines with GitOps and Continuous SecurityHardening Your CI/CD Pipelines with GitOps and Continuous Security
Hardening Your CI/CD Pipelines with GitOps and Continuous Security
 
Kerbernetes Robotics Distributed System Deep Dive
Kerbernetes Robotics Distributed System Deep DiveKerbernetes Robotics Distributed System Deep Dive
Kerbernetes Robotics Distributed System Deep Dive
 
The path to cdi 2.0
The path to cdi 2.0The path to cdi 2.0
The path to cdi 2.0
 
WWCode Dallas - Kubernetes: Learning from Zero to Production
WWCode Dallas - Kubernetes: Learning from Zero to ProductionWWCode Dallas - Kubernetes: Learning from Zero to Production
WWCode Dallas - Kubernetes: Learning from Zero to Production
 
Kubernetes Controller for Pull Request Based Environment
Kubernetes Controller for Pull Request Based EnvironmentKubernetes Controller for Pull Request Based Environment
Kubernetes Controller for Pull Request Based Environment
 
Kubernetes based connected vehicle platform #k8sjp_t1 #k8sjp
Kubernetes based connected vehicle platform #k8sjp_t1 #k8sjp Kubernetes based connected vehicle platform #k8sjp_t1 #k8sjp
Kubernetes based connected vehicle platform #k8sjp_t1 #k8sjp
 
GitOps Days EU 20 - Our journey building a self-service platform
GitOps Days EU 20 - Our journey building a self-service platformGitOps Days EU 20 - Our journey building a self-service platform
GitOps Days EU 20 - Our journey building a self-service platform
 
Microservices development at scale
Microservices development at scaleMicroservices development at scale
Microservices development at scale
 
Leveraging Gradle @ Netflix (Madrid GUG Feb 2, 2021)
Leveraging Gradle @ Netflix (Madrid GUG Feb 2, 2021)Leveraging Gradle @ Netflix (Madrid GUG Feb 2, 2021)
Leveraging Gradle @ Netflix (Madrid GUG Feb 2, 2021)
 
Gitops Hands On
Gitops Hands OnGitops Hands On
Gitops Hands On
 
CDI 2.0 is upon us Devoxx
CDI 2.0 is upon us DevoxxCDI 2.0 is upon us Devoxx
CDI 2.0 is upon us Devoxx
 
From Monolith to K8s - Spring One 2020
From Monolith to K8s - Spring One 2020From Monolith to K8s - Spring One 2020
From Monolith to K8s - Spring One 2020
 
How we can do Multi-Tenancy on Kubernetes
How we can do Multi-Tenancy on KubernetesHow we can do Multi-Tenancy on Kubernetes
How we can do Multi-Tenancy on Kubernetes
 
Rehosting apps between k8s clusters and automating deployment using crane c...
Rehosting apps between k8s clusters and automating deployment using crane   c...Rehosting apps between k8s clusters and automating deployment using crane   c...
Rehosting apps between k8s clusters and automating deployment using crane c...
 

Similar to Controlling your race with Micrometer, Spring Boot and Cloud Foundry

Controlling your race with Micrometer, Spring Boot and Cloud Foundry @Geekle
Controlling your race with Micrometer, Spring Boot and Cloud Foundry @GeekleControlling your race with Micrometer, Spring Boot and Cloud Foundry @Geekle
Controlling your race with Micrometer, Spring Boot and Cloud Foundry @GeekleKo Turk
 
JavaLand - Micrometer and SpringBoot
JavaLand - Micrometer and SpringBootJavaLand - Micrometer and SpringBoot
JavaLand - Micrometer and SpringBootKo Turk
 
Code Motion Italy
Code Motion ItalyCode Motion Italy
Code Motion ItalyKo Turk
 
[AI] ML Operationalization with Microsoft Azure
[AI] ML Operationalization with Microsoft Azure[AI] ML Operationalization with Microsoft Azure
[AI] ML Operationalization with Microsoft AzureKorkrid Akepanidtaworn
 
Continuous (Non-)Functional Testing of Microservices on K8s
Continuous (Non-)Functional Testing of Microservices on K8sContinuous (Non-)Functional Testing of Microservices on K8s
Continuous (Non-)Functional Testing of Microservices on K8sQAware GmbH
 
Cloud, Containers, Kubernetes (YOW Melbourne 2018)
Cloud, Containers, Kubernetes (YOW Melbourne 2018)Cloud, Containers, Kubernetes (YOW Melbourne 2018)
Cloud, Containers, Kubernetes (YOW Melbourne 2018)bridgetkromhout
 
A Hitchhiker's Guide to Enterprise Microservices with Go
A Hitchhiker's Guide to Enterprise Microservices with GoA Hitchhiker's Guide to Enterprise Microservices with Go
A Hitchhiker's Guide to Enterprise Microservices with GoQAware GmbH
 
Building Microservices in the cloud at AutoScout24
Building Microservices in the cloud at AutoScout24Building Microservices in the cloud at AutoScout24
Building Microservices in the cloud at AutoScout24Christian Deger
 
Go for Operations
Go for OperationsGo for Operations
Go for OperationsQAware GmbH
 
Cloud-native .NET Microservices mit Kubernetes
Cloud-native .NET Microservices mit KubernetesCloud-native .NET Microservices mit Kubernetes
Cloud-native .NET Microservices mit KubernetesQAware GmbH
 
Agile azure manchester azure user group v3
Agile azure manchester azure user group  v3Agile azure manchester azure user group  v3
Agile azure manchester azure user group v3jaye Martin
 
Tampere Docker meetup - Happy 5th Birthday Docker
Tampere Docker meetup - Happy 5th Birthday DockerTampere Docker meetup - Happy 5th Birthday Docker
Tampere Docker meetup - Happy 5th Birthday DockerSakari Hoisko
 
Choose Your Own Adventure with JHipster & Kubernetes - Utah JUG 2020
Choose Your Own Adventure with JHipster & Kubernetes - Utah JUG 2020Choose Your Own Adventure with JHipster & Kubernetes - Utah JUG 2020
Choose Your Own Adventure with JHipster & Kubernetes - Utah JUG 2020Matt Raible
 
Cloud, Containers, Kubernetes (YOW Sydney 2018)
Cloud, Containers, Kubernetes (YOW Sydney 2018)Cloud, Containers, Kubernetes (YOW Sydney 2018)
Cloud, Containers, Kubernetes (YOW Sydney 2018)bridgetkromhout
 
Cloud, Containers, Kubernetes (YOW Brisbane 2018)
Cloud, Containers, Kubernetes (YOW Brisbane 2018)Cloud, Containers, Kubernetes (YOW Brisbane 2018)
Cloud, Containers, Kubernetes (YOW Brisbane 2018)bridgetkromhout
 
Metaverse and Digital Twins on Enterprise-Public.pdf
Metaverse and Digital Twins on Enterprise-Public.pdfMetaverse and Digital Twins on Enterprise-Public.pdf
Metaverse and Digital Twins on Enterprise-Public.pdf湯米吳 Tommy Wu
 
Bahrain ch9 introduction to docker 5th birthday
Bahrain ch9 introduction to docker 5th birthday Bahrain ch9 introduction to docker 5th birthday
Bahrain ch9 introduction to docker 5th birthday Walid Shaari
 
Supercharging your Python Development Environment with VS Code and Dev Contai...
Supercharging your Python Development Environment with VS Code and Dev Contai...Supercharging your Python Development Environment with VS Code and Dev Contai...
Supercharging your Python Development Environment with VS Code and Dev Contai...Dawn Wages
 
Building and deploying microservices to Azure with GitHub and Waypoint
Building and deploying microservices to Azure with GitHub and Waypoint Building and deploying microservices to Azure with GitHub and Waypoint
Building and deploying microservices to Azure with GitHub and Waypoint CEDRIC DERUE
 

Similar to Controlling your race with Micrometer, Spring Boot and Cloud Foundry (20)

Controlling your race with Micrometer, Spring Boot and Cloud Foundry @Geekle
Controlling your race with Micrometer, Spring Boot and Cloud Foundry @GeekleControlling your race with Micrometer, Spring Boot and Cloud Foundry @Geekle
Controlling your race with Micrometer, Spring Boot and Cloud Foundry @Geekle
 
JavaLand - Micrometer and SpringBoot
JavaLand - Micrometer and SpringBootJavaLand - Micrometer and SpringBoot
JavaLand - Micrometer and SpringBoot
 
Code Motion Italy
Code Motion ItalyCode Motion Italy
Code Motion Italy
 
[AI] ML Operationalization with Microsoft Azure
[AI] ML Operationalization with Microsoft Azure[AI] ML Operationalization with Microsoft Azure
[AI] ML Operationalization with Microsoft Azure
 
Continuous (Non-)Functional Testing of Microservices on K8s
Continuous (Non-)Functional Testing of Microservices on K8sContinuous (Non-)Functional Testing of Microservices on K8s
Continuous (Non-)Functional Testing of Microservices on K8s
 
Cloud, Containers, Kubernetes (YOW Melbourne 2018)
Cloud, Containers, Kubernetes (YOW Melbourne 2018)Cloud, Containers, Kubernetes (YOW Melbourne 2018)
Cloud, Containers, Kubernetes (YOW Melbourne 2018)
 
A Hitchhiker's Guide to Enterprise Microservices with Go
A Hitchhiker's Guide to Enterprise Microservices with GoA Hitchhiker's Guide to Enterprise Microservices with Go
A Hitchhiker's Guide to Enterprise Microservices with Go
 
Building Microservices in the cloud at AutoScout24
Building Microservices in the cloud at AutoScout24Building Microservices in the cloud at AutoScout24
Building Microservices in the cloud at AutoScout24
 
Go for Operations
Go for OperationsGo for Operations
Go for Operations
 
Cloud-native .NET Microservices mit Kubernetes
Cloud-native .NET Microservices mit KubernetesCloud-native .NET Microservices mit Kubernetes
Cloud-native .NET Microservices mit Kubernetes
 
Agile azure manchester azure user group v3
Agile azure manchester azure user group  v3Agile azure manchester azure user group  v3
Agile azure manchester azure user group v3
 
Tampere Docker meetup - Happy 5th Birthday Docker
Tampere Docker meetup - Happy 5th Birthday DockerTampere Docker meetup - Happy 5th Birthday Docker
Tampere Docker meetup - Happy 5th Birthday Docker
 
Choose Your Own Adventure with JHipster & Kubernetes - Utah JUG 2020
Choose Your Own Adventure with JHipster & Kubernetes - Utah JUG 2020Choose Your Own Adventure with JHipster & Kubernetes - Utah JUG 2020
Choose Your Own Adventure with JHipster & Kubernetes - Utah JUG 2020
 
Cloud, Containers, Kubernetes (YOW Sydney 2018)
Cloud, Containers, Kubernetes (YOW Sydney 2018)Cloud, Containers, Kubernetes (YOW Sydney 2018)
Cloud, Containers, Kubernetes (YOW Sydney 2018)
 
Cloud, Containers, Kubernetes (YOW Brisbane 2018)
Cloud, Containers, Kubernetes (YOW Brisbane 2018)Cloud, Containers, Kubernetes (YOW Brisbane 2018)
Cloud, Containers, Kubernetes (YOW Brisbane 2018)
 
Metaverse and Digital Twins on Enterprise-Public.pdf
Metaverse and Digital Twins on Enterprise-Public.pdfMetaverse and Digital Twins on Enterprise-Public.pdf
Metaverse and Digital Twins on Enterprise-Public.pdf
 
Azure from scratch part 4
Azure from scratch part 4Azure from scratch part 4
Azure from scratch part 4
 
Bahrain ch9 introduction to docker 5th birthday
Bahrain ch9 introduction to docker 5th birthday Bahrain ch9 introduction to docker 5th birthday
Bahrain ch9 introduction to docker 5th birthday
 
Supercharging your Python Development Environment with VS Code and Dev Contai...
Supercharging your Python Development Environment with VS Code and Dev Contai...Supercharging your Python Development Environment with VS Code and Dev Contai...
Supercharging your Python Development Environment with VS Code and Dev Contai...
 
Building and deploying microservices to Azure with GitHub and Waypoint
Building and deploying microservices to Azure with GitHub and Waypoint Building and deploying microservices to Azure with GitHub and Waypoint
Building and deploying microservices to Azure with GitHub and Waypoint
 

More from Ko Turk

JCON - The Battle of the IDEs
JCON - The Battle of the IDEsJCON - The Battle of the IDEs
JCON - The Battle of the IDEsKo Turk
 
The Battle of the IDEs @DevNexus 2020
The Battle of the IDEs @DevNexus 2020The Battle of the IDEs @DevNexus 2020
The Battle of the IDEs @DevNexus 2020Ko Turk
 
JVM Conference - The Battle of the IDEs
JVM Conference - The Battle of the IDEsJVM Conference - The Battle of the IDEs
JVM Conference - The Battle of the IDEsKo Turk
 
"The Battle of the IDEs"
"The Battle of the IDEs""The Battle of the IDEs"
"The Battle of the IDEs"Ko Turk
 
12092019 JavaZone "The Battle of the IDEs"
12092019 JavaZone "The Battle of the IDEs"12092019 JavaZone "The Battle of the IDEs"
12092019 JavaZone "The Battle of the IDEs"Ko Turk
 
05092019 The Battle of the IDEs by Ko Turk at the AlmereJUG / Conspect
05092019 The Battle of the IDEs by Ko Turk at the AlmereJUG / Conspect05092019 The Battle of the IDEs by Ko Turk at the AlmereJUG / Conspect
05092019 The Battle of the IDEs by Ko Turk at the AlmereJUG / ConspectKo Turk
 
The Battle of the IDEs
The Battle of the IDEsThe Battle of the IDEs
The Battle of the IDEsKo Turk
 

More from Ko Turk (7)

JCON - The Battle of the IDEs
JCON - The Battle of the IDEsJCON - The Battle of the IDEs
JCON - The Battle of the IDEs
 
The Battle of the IDEs @DevNexus 2020
The Battle of the IDEs @DevNexus 2020The Battle of the IDEs @DevNexus 2020
The Battle of the IDEs @DevNexus 2020
 
JVM Conference - The Battle of the IDEs
JVM Conference - The Battle of the IDEsJVM Conference - The Battle of the IDEs
JVM Conference - The Battle of the IDEs
 
"The Battle of the IDEs"
"The Battle of the IDEs""The Battle of the IDEs"
"The Battle of the IDEs"
 
12092019 JavaZone "The Battle of the IDEs"
12092019 JavaZone "The Battle of the IDEs"12092019 JavaZone "The Battle of the IDEs"
12092019 JavaZone "The Battle of the IDEs"
 
05092019 The Battle of the IDEs by Ko Turk at the AlmereJUG / Conspect
05092019 The Battle of the IDEs by Ko Turk at the AlmereJUG / Conspect05092019 The Battle of the IDEs by Ko Turk at the AlmereJUG / Conspect
05092019 The Battle of the IDEs by Ko Turk at the AlmereJUG / Conspect
 
The Battle of the IDEs
The Battle of the IDEsThe Battle of the IDEs
The Battle of the IDEs
 

Recently uploaded

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 

Recently uploaded (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 

Controlling your race with Micrometer, Spring Boot and Cloud Foundry

  • 1. Ko Turk Controlling your race with Micrometer, Spring Boot and Cloud Foundry
  • 2. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry You’re part of a racing team
  • 3.
  • 4. @KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry But why don’t we create metrics into our applications??
  • 6. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Of course you can log it but…..
  • 7. @KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Title Text https://formulaf1results.blogspot.com/2020/01/f1-crash-wallpaper.html Application X Application Y Backend (still driving but slow)
  • 8. @KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry If that’s happening…..
  • 9. @KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry That’s where Micrometer comes in
  • 10. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Introduction
  • 12. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry https://www.signifytechnology.com/blog/2019/09/whats-your-tech-stack
  • 13. Java 14Spring Boot Typescript Angular Cloud Foundry Pipeline as code Micrometer
  • 15. Likes to drive the trial bike
  • 16. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry UtrechtJUG
  • 17.
  • 18. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Goals Define the metrics Create them in Micrometer Save it to Prometheus Visualize with Grafana Deploy to Cloud Foundry (Create the teams strategy) (Preparing the car/race) (The teams Pitwall) (Let’s race)
  • 20. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry What do we want to monitor?
  • 21.
  • 22. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry How to be good in DevOps?
  • 24. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry It’s about • Searching for race factors —> Service Level Indicators • Creating tactics —> Service Level Objectives • Creating a strategy —> Service Level Agreement
  • 25. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Racing Factors —> Defining an indicator (SLI) • pitstop request latency • tires error rate • rounds system throughput • weather availability How long does it take to do a pitstop How long does it take to return a response How many tire left (bandenslijtage) How many faults receiving how many rounds How many requests Will it be rainy or not Time that a service is usable
  • 26. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Tactics —> Defining an objective (SLO) not slower then 8 seconds service x not longer then 0.1 seconds wear not less then 10 % max 10 errors on a day all rounds max 100.000 request on a day minimal 20 rounds rainy (then need rain tyre) 99 % availability of service x • pitstop request latency • tires error rate • rounds system throughput • weather availability
  • 27. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Strategy —> Defining an agreement (SLA) • 2 pitstops less then x seconds • intermediate tires when raining more then x • Results in hit in reputation, no payments means no revenue,
  • 28. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Goals Define the metrics Create them in Micrometer Save it to Prometheus Visualize with Grafana Deploy to Cloud Foundry (Create the teams strategy) (Preparing the car/race) (The teams Pitwall) (Let’s race)
  • 29.
  • 30. Micrometer for the win! But what is it?
  • 31. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry SLF4J only for metrics
  • 32. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Reasons to use Micrometer • No vendor lock-in • It’s Pivotal VMWare Tanzu • Easy integration in Spring Boot • So also support in Cloud Foundry • Simple to use • You can choose your own database / monitoring system • You can define your own set of metrics • But you get a lot for free
  • 33. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Micrometer is included in Spring Boot 2 actuator <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
  • 34. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Extra dependency for Spring Boot 1.5.x I<dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-spring-legacy</artifactId> </dependency>
  • 35. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry And also for Micronaut
  • 36. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Pre-configured Bindings • Instrumentions of: • caches • class loader • garbage collection • processor utilisation • thread pools • and more
  • 37.
  • 39. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry https://s1.cdn.autoevolution.com/images/news/gallery/red-bull-racing-beats-record-to-set-new-fastest-pit-stop-in-the-history-of-f1_2.jpg
  • 40. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Timer
  • 42. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Long Task Timer
  • 44. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Counter
  • 46. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Gauge
  • 47. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry About security • Please implement spring security • Otherwise you will expose your endpoint to others • And don’t forget to add it in your database config! https://www.baeldung.com/spring-security-basic-authentication https://egkatzioura.com/2020/05/07/spring-boot-and-micrometer-with-prometheus-part-6-securing-metrics/
  • 48. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Goals Define the metrics Create them in Micrometer Save it to Prometheus Visualize with Grafana Deploy to Cloud Foundry (Create the teams strategy) (Preparing the car/race) (The teams Pitwall) (Let’s race)
  • 49. @KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Where to store the metrics? Which database should I use?
  • 50. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Databases • Prometheus • Graphite • Atlas • KairosDB Persistent or not persistent?
  • 51. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry If you want to expose to prometheus <dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-registry-prometheus</artifactId> </dependency>

  • 52. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Or Graphite <dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-registry-graphite</artifactId> </dependency>

  • 53.
  • 54. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Goals Define the metrics Create them in Micrometer Save it to Prometheus Visualize with Grafana Deploy to Cloud Foundry (Create the teams strategy) (Preparing the car/race) (The teams Pitwall) (Let’s race)
  • 56. @KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry How to visualise the application metrics? Which monitoring system to use?
  • 57. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Systems • Grafana • Datadog • Dynatrace • Instant • WaveFront • and many more
  • 58. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Let’s deep dive into Grafana
  • 59. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Long Task Timer (duration)
  • 60. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Timer (count)
  • 61. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Timer (max)
  • 62. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Gauge
  • 63. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Bindings
  • 64.
  • 65. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Goals Define the metrics Create them in Micrometer Save it to Prometheus Visualize with Grafana Deploy to Cloud Foundry (Create the teams strategy) (Preparing the car/race) (The teams Pitwall) (Let’s race)
  • 66. @KoTurk77@KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Title Text
  • 67.
  • 68. @KoTurk77 The Battle of the IDEs #Devnexus@KoTurk77Controlling your race with Micrometer, Spring Boot and Cloud Foundry Thank you for listening Please give me some feedback at: https://bit.ly/2C5TFzV Or take a picture with your phone