Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
JCConf 2020 Observing in Microservices
Search
Shihyu Ho
November 18, 2020
Programming
0
580
JCConf 2020 Observing in Microservices
Lessons learned observing in Microservices
Shihyu Ho
November 18, 2020
Tweet
Share
More Decks by Shihyu Ho
See All by Shihyu Ho
JCConf 2022 - Using ArchUnit to test your architecture
shihyuho
0
120
hybrid-cloud-seminar.pdf
shihyuho
0
62
JCConf 2021 Access Kubernetes API in Java
shihyuho
0
100
iThome Kubernetes Summit 2018
shihyuho
0
43
JCConf 2016 zookeeper
shihyuho
0
40
Other Decks in Programming
See All in Programming
Semantic search with Django and pgvector
pauloxnet
0
240
Code Reviews
bkuhlmann
4
880
puregoの活用例
aethiopicuschan
0
220
From Spring Boot 2 to Spring Boot 3 with Java 21 and Jakarta EE
ivargrimstad
0
1.1k
スクラムガイドのスプリントレトロスペクティブを改めて読みかえしてみた / Re-reading the Sprint Retrospective Section in the Scrum Guide
mackey0225
3
330
Tailwind CSSを本気でカスタマイズする方法
fsubal
2
160
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
220
甘い香りに誘われてVanilla Extractを1年間運用してみた
miyahkun
1
110
大規模Reactアプリのリアーキテクチャ~8万行のTanStack Query移行の軌跡~
kj455
3
740
Git Lint
bkuhlmann
4
740
VSCodeでのDatabricks開発もお勧めしたい/I would also recommend Databricks development with VSCode.
kazumain
0
240
[SF Ruby, March 2024] Rails on Wasm
palkan
0
370
Featured
See All Featured
Designing the Hi-DPI Web
ddemaree
276
33k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
321
20k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
29
6k
The Invisible Customer
myddelton
114
12k
Clear Off the Table
cherdarchuk
83
310k
Become a Pro
speakerdeck
PRO
10
4.5k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
273
13k
Embracing the Ebb and Flow
colly
79
4.1k
Git: the NoSQL Database
bkeepers
PRO
422
63k
Raft: Consensus for Rubyists
vanstee
132
6.2k
How to train your dragon (web standard)
notwaldorf
72
5.1k
Fashionably flexible responsive web design (full day workshop)
malarkey
397
65k
Transcript
Lessons learned observing in Microservices Matt Ho
SoftLeader RD Matt Ho https://github.com/shihyuho
Microservices!
Move from Spring Cloud to Kubernetes native!
好多 App, 平常沒事, But...
Infrastructure 0
Tracing App App App container platform
Monitoring App App App container platform cpu/memory/VM heap … cpu/memory/VM
heap …
Loggin g App App App container platform
Kubernetes on-premises
原⽣的, ⼀裝好什麼都沒有!
不能客製呦!
不是在做比較
Tracing 1
Using OpenTracing #
github.com/opentracing-contrib/ java-spring-cloud
Put tracing in response #
App filter response request api add trace info
Add tracing in logger MDC #
App A log MDC
None
None
None
None
None
Create your Spans #
time Span A Span B Span C Span D 外部呼叫
trace
None
Propagating messages #
None
App A App B App C App D Queue Baggage
App A App B App C App D REST gRPC
Queue Enqueue Dequeue Baggage
None
Monitoring 2
Prometheus & exporters #
- node-exporter - Hardware/OS metric s - cAdvisor - Container
metric s - kube-state-metrics - Kubernetes Object metrics 環境類 exporters
github.com/prometheus-operator/ kube-prometheus
None
None
None
- blackbox - Probing over HTTP, HTTPS, DNS … -
micrometer.io - Java app metrics 服務類 exporters
None
None
https://grafana.com/grafana/ dashboards
Logging 3
Define logging format #
JSON logging format
github.com/logstash/ logstash-logback-encoder
Append app information #
app_name, app_version…
None
None
ES index strategy #
By namespace and date
None
Forwarding logs from { … } #
Fluentd Forward Log format OCP DockerSwarm Forward Other Cluster
App App App App App App
好多 App, 平常沒事, But...
Thanks