Let's visualize your Spring Cloud Applications! #jsug #springday

Ad3fbc316f916a341c24035e34913121?s=47 Shin Tanimoto
November 18, 2016

Let's visualize your Spring Cloud Applications! #jsug #springday

Spring Day 2016 講演資料
2016-11-18

Ad3fbc316f916a341c24035e34913121?s=128

Shin Tanimoto

November 18, 2016
Tweet

Transcript

  1. Let’s Visualize Your
 Spring Cloud Applications! #sd2016r26 Shin Tanimoto
 Acroquest

    Technology Co., LTD
  2. Copyright © Acroquest Technology Co., Ltd. All rights reserved. ࣗݾ঺հ

    2 • ୩ຊ ৺ (Shin Tanimoto) - Acroquest Technologyגࣜձࣾ - ιϦϡʔγϣϯΞʔΩςΫτ - JavaOne / SpringOneεϐʔΧʔ - JJUG / ؔδϟό - Twitter : @cero_t (೔ຊޠ) - Facebook : shin.tanimoto (ӳޠ)
  3. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 3 ຊ೔ͷςʔϚɿ Spring Cloud Applicationͷ ʮՄࢹԽʯ
  4. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 4 ͦ΋ͦ΋
 Spring Cloud Applicationͱ͸ʁ
 
 Eureka, Config, Hystrix,
 Zuul, Session, Stream … 
 ɾɾɾͳͲΛ࢖ͬͨཁ͢ΔʹϚΠΫϩαʔϏε
  5. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 5 αʔϏε͕૿͖͑ͯͨΒ
 ৭ʑͱେมʹͳΔ
  6. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 6 #1
 
 ϚΠΫϩαʔϏε։ൃ ͷۤ೰
  7. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. Devͷਓʁ
 Opsͷਓʁ ྆ํ΍Δਓʁ 7
  8. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 1. ϚΠΫϩαʔϏε։ൃͷۤ೰ Devͷۤ೰ αʔϏεͷ਺͕๲Εͯ͠·͍ɺ
 αʔϏεಉ࢜ͷґଘؔ܎͕෼͔Βͳ͘ͳΔ ͜ͷαʔϏεΛվम͢ΔͱɺͲ͜ʹӨڹ͢Δʁ ͍·ى͖ͨΤϥʔ͸ɺͲ͕͜ݪҼͳͷʁ ͦ΋ͦ΋࢖ΘΕͯͳ͍αʔϏε͸ͳ͍ͷʁ 8
  9. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 1. ϚΠΫϩαʔϏε։ൃͷۤ೰ Opsͷۤ೰ ؂ࢹ͢΂͖αʔό΍ϓϩηεͷ਺͕ଟ͍ 1000ݸͷϓϩηε͸͢΂ͯਖ਼ৗʹಈ͍͍ͯΔʁ ϩάϑΝΠϧ͕෼ࢄͯ͠͠·͏ ͍·ى͖ͨΤϥʔΛௐ΂ΔͨΊʹɺ
 ͲͷϩάϑΝΠϧΛݟΕ͹͍͍ͷʁ 9
  10. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 1. ϚΠΫϩαʔϏε։ൃͷۤ೰ OpsΛߟྀͨ͠Devͷۤ೰ ໰୊ͷஹީΛϩά͔Βݕ஌ͮ͠Β͍ ͜ͷerrorϝοηʔδ͸ແࢹ͍͍ͯ͠ͷʁ ͜ͷinfoϝοηʔδ͸ແࢹ͍͍ͯ͠ͷʁ APIͷ࢓༷͚ͩͰͳ͘ɺϩΪϯά࢓༷·Ͱ
 ࣄલʹશܾͯΊ͖ͬͯकΒͤΔͷʁ 10
  11. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 1. ϚΠΫϩαʔϏε։ൃͷۤ೰ 11 ཱ৔ʹΑͬͯۤ೰͸ҟͳΔ͕
 ͍ͣΕʹͤΑαʔϏε΍ϩά͕
 ૿͑ͨ͜ͱͰ
 ݟΔ΂͖΋ͷ͕൥ࡶԽ͢Δ
  12. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 12 ͦ͜ͰՄࢹԽͰ͢Α
  13. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 13 #2
 
 ՄࢹԽʹ࢖͏πʔϧ܈
  14. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 2. ՄࢹԽʹ࢖͏πʔϧ܈ ຊ೔঺հ͢Δπʔϧ܈ αʔϏεؒͷґଘੑΛՄࢹԽ Spring Cloud Sleuth + Zipkin
 ϩάϑΝΠϧΛՄࢹԽ Elasticsearch + Logstash + Kibana + Filebeat
 αʔό΍ϓϩηεͷঢ়ଶΛՄࢹԽ Elasticsearch + Kibana + Metricbeat 14
  15. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 15 ඦฉ͸Ұݟʹ͔ͣ͠
  16. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 2. ՄࢹԽʹ࢖͏πʔϧ܈ Spring Cloud Sleuth + Zipkin 16 ϘτϧωοΫ
 Λ୳͢
  17. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 2. ՄࢹԽʹ࢖͏πʔϧ܈ Spring Cloud Sleuth + Zipkin 17 αʔϏεؒͷ
 ґଘੑΛ೺Ѳ
  18. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 2. ՄࢹԽʹ࢖͏πʔϧ܈ Elasticsearch + Logstash + Kibana + Filebeat 18 Ϩϕϧผʹ
 ϩά݅਺Λ೺Ѳ
  19. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 2. ՄࢹԽʹ࢖͏πʔϧ܈ Elasticsearch + Kibana + Metricbeat 19 Ϧιʔεঢ়گ
 Λ೺Ѳ
  20. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 20 Ͱ΋ߏங͕େมͳΜͰ͠ΐ͏ʁ
  21. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 21 ͸͍ɺ10ਓ݄Ͱ1000ສԁʹͳΓ·͢ʂ
  22. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 22 ɾɾɾͱ͔Ͱ͸ͳ͍ͬͯ࿩Ͱ͢ɻ
  23. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 23 #3
 
 αʔϏεґଘੑͷ
 ՄࢹԽ
  24. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 3. αʔϏεґଘੑͷՄࢹԽ ԿͷͨΊʹ΍Δͷʁ αʔϏεͷվम࣌ʹɺͦͷӨڹൣғΛ֬ೝ͍ͨ͠ Τϥʔ͕ൃੜͨ͠ࡍʹɺ֬ೝ͢΂͖ൣғΛಛఆ͍ͨ͠ ΋͠ɺ࣮ࡍʹ͸࢖ΘΕ͍ͯͳ͍αʔϏε͕͋Ε͹ఀࢭ ͍ͨ͠
 
 → ओʹ։ൃऀ޲͚ͷՄࢹԽͰ͋Δ 24
  25. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 3. αʔϏεґଘੑͷՄࢹԽ Spring Cloud Sleuth + ZipkinͰαʔϏεґଘੑΛՄࢹԽ Spring Cloud Sleuthͱ͸ʁ Distributed Tracing ෳ਺αʔόΛލ͕ΔϦΫΤετʹڞ௨ͷIDΛৼͬͯ
 ʢHTTP/AMQPϔομͳͲͰ఻೻ͤ͞ͳ͕Βʣ
 ॲཧΛ௥੻Ͱ͖ΔΑ͏ʹ͢Δ࢓૊Έ
 Zipkinͱ͸ʁ Distributed Tracing Visualization ෳ਺αʔόΛލ͕ΔϦΫΤετΛՄࢹԽ͢Δ 25
  26. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 3. αʔϏεґଘੑͷՄࢹԽ Spring Cloud Sleuth + ZipkinͷΠϝʔδ 26 Microservice1 Microservice2 طʹ࡞ͬͯ͋Δ
 ϚΠΫϩαʔϏε
  27. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 3. αʔϏεґଘੑͷՄࢹԽ Spring Cloud Sleuth + ZipkinͷΠϝʔδ 27 Microservice1 Microservice2 Zipkin Server HTTP Zipkin UI Server SleuthΛ࢖ͬͯ
 ݺͼग़͠৘ใΛ
 zipkinʹૹΔ ஝ੵ ՄࢹԽ
  28. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 3. αʔϏεґଘੑͷՄࢹԽ Spring Cloud Sleuth + Zipkinͷద༻ Spring Cloud Sleuth ϚΠΫϩαʔϏεͷpom.xmlͷdependenciesʹ
 ʮspring-cloud-starter-zipkinʯΛ௥Ճ ίʔυͷมߋ͸Ұ੾ͳ͠ Zipkin ৽نϓϩδΣΫτΛ࡞ͬͯpom.xmlʹ
 ʮzipkin-serverʯͱʮzipkin-autoconfigure-uiʯΛ௥Ճ MainΫϥεΛҰͭ࡞Δ 28
  29. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 3. αʔϏεґଘੑͷՄࢹԽ Zipkinαʔόͷ։ൃ 29 @SpringBootApplication @EnableZipkinServer public class ZipkinApplication { public static void main(String[] args) { SpringApplication.run(ZipkinApplication.class, args); } }
  30. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 3. αʔϏεґଘੑͷՄࢹԽ Spring Cloud Sleuth + ZipkinͷΠϝʔδ 30 Microservice1 Microservice2 Zipkin Server HTTP Zipkin UI Server Zipkin Client 
 (spring-cloud-starter-zipkin) Zipkin UI (zipkin-autoconfigure-ui)
 Zipkin Server (zipkin-server)
  31. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 3. αʔϏεґଘੑͷՄࢹԽ 31 Demo
  32. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 32 ͜͏͍͏ࣄ͕؆୯ʹͰ͖Δ͔Β
 Spring CloudΛ࢖͏Μͩ
 ͍ͬͯ͏ײ֮ɺ͋Γ·͢
  33. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 33 #4
 
 ϩάͷՄࢹԽ
  34. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 34 ͦ΋ͦ΋ϩάͬͯ
 ೔ৗతʹݟͯ·͢ʁ
  35. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 35 ໰୊͕ى͖ͨ࿈བྷΛड͚͔ͯΒ
 ݪҼΛ֬ೝ͢ΔͨΊ͚ͩʹ
 ϩάΛ࢖ͬͯͨΓͯ͠·ͤΜʁ
  36. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 36 ೔ৗతʹϩάΛݟͯ
 ૝ఆ֎ͷࣄ৅͕ൃੜ͍ͯ͠ͳ͍͔Λ
 ֬ೝ͢Δ͜ͱͰ
 αʔϏεϨϕϧ͕֨ஈʹ্͕Δ
  37. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 37 ͱ͸ݴ͑ɺϩάΛ໨ͰݟΔͷ͸ແཧɻ
 ͔ͩΒՄࢹԽ͢ΔΜͰ͢
  38. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 4. ϩάͷՄࢹԽ ԿͷͨΊʹ΍Δͷʁ ΞϓϦέʔγϣϯϩάͷՄࢹԽ γεςϜ͕҆ఆՔಇ͍ͯ͠Δ͔ͷ೺Ѳ ૝ఆ͠ͳ͍໰୊͕ى͖͍ͯͳ͍͔ʁ ΞΫηεϩάͷՄࢹԽ ద੾ʹϨεϙϯεΛฦ͍ͤͯΔ͔Ͳ͏͔ͷ೺Ѳ HTTPεςʔλεͷ400൪୆ɺ500൪୆͕ൃੜ͍ͯ͠ͳ͍͔ʁ ϨεϙϯελΠϜ͕େ͖͘ͳ͍ͬͯͳ͍͔ʁ ٸܹͳΞΫηε૿ͳͲ͕ى͖͍ͯͳ͍͔ͷ೺Ѳ SNS΍χϡʔεαΠτͳͲͰऔΓ্͛ΒΕͨʁ ߈ܸΛड͚ͨʁ 38
  39. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 4. ϩάͷՄࢹԽ ElasticελοΫͰϩάΛՄࢹԽ Elasticsearch ෼ࢄશจݕࡧΤϯδϯɻϩάσʔλΛ஝ੵ͢Δ Kibana ՄࢹԽ༻ͷUI Filebeat σʔλసૹπʔϧͰ͋ΔBeatsγϦʔζͷҰͭɻ ϑΝΠϧΛಡΈࠐΈɺLogstashʹసૹ͢Δɻ Logstash σʔλͷՃ޻ɾసૹπʔϧ Filebeat͔ΒσʔλΛड͚औΓɺՃ޻ͯ͠ɺElasticsearchʹసૹ͢Δ 39
  40. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 4. ϩάͷՄࢹԽ ElasticελοΫʹΑΔՄࢹԽͷΠϝʔδ 40 Microservice1 Microservice2 طʹ࡞ͬͯ͋Δ
 ϚΠΫϩαʔϏε
  41. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 4. ϩάͷՄࢹԽ ElasticελοΫʹΑΔՄࢹԽͷΠϝʔδ 41 Microservice1 Microservice2 Filebeat Filebeat FilebeatͰ
 ϩάΛಡΈࠐΈ
  42. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 4. ϩάͷՄࢹԽ ElasticελοΫʹΑΔՄࢹԽͷΠϝʔδ 42 Microservice1 Microservice2 Filebeat Filebeat Logstash LogstashͰ
 ϩάΛύʔεͯ͠
 JSONԽ
  43. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 4. ϩάͷՄࢹԽ ElasticελοΫʹΑΔՄࢹԽͷΠϝʔδ 43 Microservice1 Microservice2 Filebeat Filebeat Elasticsearch Kibana Logstash σʔλͷ஝ੵ ՄࢹԽ
  44. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 4. ϩάͷՄࢹԽ 44 Demo
  45. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 4. ϩάͷՄࢹԽ Ͱ΋ͳͥElasticsearchͳͷʁ ElasticελοΫʹΑΔɺऩूɾՃ޻ɾ஝ੵɾՄࢹԽͷҰ؏ੑ πʔϧͷ૊Έ߹ΘͤΛ໎Θͳ͍͍ͯ͘ Elasticsearchͷෳࡶͳ৚݅ͰϑΟϧλΛֻ͚ͨ͏͑ͰͷՄࢹԽͳͲ΋༰қ ʮϩάऩूͱՄࢹԽʯΛ໨తͱͨ͠৔߹ɺOSSͰ͸ଞͷબ୒ࢶ͕΄΅ͳ͍ʢ঎༻ ੡඼Ͱ͸SplunkͳͲ͋Γʣ ʮ࣌ܥྻͷ਺஋σʔλʯΛѻ͏੡඼͸͍͔ͭ͋͘Δ͕ɺϩάͦͷ΋ͷΛѻ͑ Δ΋ͷ͸΄ͱΜͲͳ͍ AWSͷCloud Watch LogsͳͲ΋ϩάΛऩू͢Δ͕ɺෳࡶͳϑΟϧλͳͲ͸ֻ ͚ΒΕͳ͍ 45
  46. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 4. ϩάͷՄࢹԽ Ͱ΋ͳͥElasticsearchͳͷʁ ʮ͋ͱ͔Βʯूܭ࣠Λม͑ΒΕΔڧ͞ ࣌ܥྻͷ਺஋σʔλΛه࿥͢ΔϝτϦΫεπʔϧͰ͸ɺͨͱ͑͹ޙ͔Βʮಛఆͷ ஍Ҭ͔ΒͷΞΫηεʯ͚ͩʹߜͬͨ෼ੳͳͲ͕೉͍͠ ࣄલʹܾΊͨ஋Λ஝ੵ͢Δ͜ͱ͕ओ໨తͳͷͰ ϩάϑΝΠϧΛ௚઀ղੳ͢ΔπʔϧͰɺςϥόΠτڃͷղੳΛ͢Δ͜ͱ͸ࠔ೉ɻ ElasticsearchͳΒݕࡧͷߴ଎͞ͱ͍͏๫ྗΛ׆͔ͯ͠ɺूܭ࣠Λม͑ͳ͕Βߴ଎ ʹݕࡧ͕Ͱ͖Δɻ
 
 ͭ·Γɺ͍ͬͨΜࡶʹϩάΛElasticsearchʹೖΕ͓͍ͯͯɺ
 ޙ͔ΒܾΊͨ࣠Ͱ෼ੳ͢Δɺͱ͍͏ΞδϦςΟͷߴ͍ରԠ͕औΓ΍͍͢ 46
  47. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 47 #5
 
 γεςϜϦιʔε
 ͷՄࢹԽ
  48. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 48 ElasticsearchೖΕͨΜͩ͠
 ͍ͭͰʹϦιʔε΋ՄࢹԽ͠Α͏ͥ
  49. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 5. γεςϜϦιʔεͷՄࢹԽ ԿͷͨΊʹ΍Δͷʁ γεςϜ͕҆ఆՔಇ͍ͯ͠Δ͔ͷ೺Ѳ CPU࢖༻཰͕ߴಅ͍ͯ͠ͳ͍͔ʁ ϝϞϦ͕ϦʔΫ͍ͯ͠ͳ͍͔ʁ σΟεΫͷ࢒༰ྔ͕ރׇͯ͠ɺγεςϜఀࢭੇલʹͳ͍ͬͯͳ͍͔ʁ 
 
 ਖ਼ຯͷ࿩ɺ͜Ε͸օ͞Μɺ΍͍ͬͯΔͱࢥ͍·͢ɻ
 ZabbixɺMackerelɺDataDogɺCloud WatchͳͲɺ
 ྑ͍πʔϧ͸ଟ਺͋Γ·͢ɻ 49
  50. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 50 Ͱ΋ɺΞΫηε਺͕ٸ૿ͨ͠ͱ͖ʹ
 CPU࢖༻཰͕ͲΕ͙Β͍ʹͳͬͯ
 ϨεϙϯελΠϜ͕Ͳ͏ͳ͔ͬͨ
 ૬ؔΛݟͨ͘ͳ͍ʁ
  51. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 51 ElasticsearchͰϦιʔε৘ใ΋
 ूΊΕ͹
 ϩά৘ใͱϦιʔε৘ใΛ
 ฒ΂ͯ֬ೝͰ͖Δ
  52. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 5. γεςϜϦιʔεͷՄࢹԽ ElasticελοΫͰϩάΛՄࢹԽ Elasticsearch ෼ࢄશจݕࡧΤϯδϯɻϩάσʔλΛ஝ੵ͢Δɻ͖ͬ͞આ໌͠·ͨ͠ɻ Kibana ՄࢹԽ༻ͷUIɻ͖ͬ͞આ໌͠·ͨ͠ɻ Metricbeat Ϧιʔε৘ใͷऩूπʔϧɻ Ϧιʔε৘ใΛಡΈऔͬͯɺLogstashʹసૹ͢Δɻ MySQL΍PostgreSQLɺRedisɺnginxͳͲͷϛυϧ΢ΣΞͷAPIΛୟ͍ͯ ৘ใΛऩू͢Δػೳ΋͋Δʢࠓճ͸આ໌͠ͳ͍Αʣ 52
  53. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 5. γεςϜϦιʔεͷՄࢹԽ ElasticελοΫʹΑΔՄࢹԽͷΠϝʔδ 53 Microservice1 Microservice2 Metricbeat Metricbeat MetricbeatͰ
 ϦιʔεΛಡΈࠐΈ
  54. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 5. γεςϜϦιʔεͷՄࢹԽ ElasticελοΫʹΑΔՄࢹԽͷΠϝʔδ 54 Microservice1 Microservice2 Metricbeat Metricbeat Elasticsearch Kibana σʔλͷ஝ੵ ՄࢹԽ Ճ޻͠ͳ͍ͷͰ
 Logstash͸ෆཁ
  55. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 5. γεςϜϦιʔεͷՄࢹԽ 55 Demo
  56. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 56 ͱ͜ΖͰɺ
 ϩά৘ใͱϦιʔε৘ใ͚ͩͰͳ͘
 ͦ͜ʹച্ֹۚͳͲฒ΂Ε͹
 ɾɾɾ͋ͱ͸෼͔Δͳʁ
  57. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 57 ”CPUεϖοΫ͕଍Γͳͯ͘
 ΞΫηε਺Λࡹ͘͜ͱ͕Ͱ͖ͣ
 ͦͷ͍ͤͰചΓ্͕͛མͪ·ͨ͠”
  58. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 58 γεςϜ౤ࢿΛଅ͚ͩ͢ͷ
 ৘ใΛఏڙͰ͖ΔՄೳੑ͕͋Δ
  59. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 59 #6
 
 ՄࢹԽͱKafka
  60. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 60 ݴ͍͔͚ͨͬͨͩͪΌ͏Μ͔ͱ
  61. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 61 ࠓճͷՄࢹԽͷ͓͞Β͍
  62. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 6. ՄࢹԽͱKafka Spring Cloud Sleuth + ZipkinͷΠϝʔδ 62 Microservice1 Microservice2 Zipkin Server HTTP Zipkin UI Server
  63. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 6. ՄࢹԽͱKafka ElasticελοΫʹΑΔՄࢹԽͷΠϝʔδ 63 Microservice1 Microservice2 Filebeat Filebeat Elasticsearch Kibana Logstash
  64. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 64 ΋͠Zipkin΍Logstash͕མͪͨΓ
 ElasticsearchͷΩϟύγςΟΛ
 ӽ͑ͨΒʁ
  65. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 65 ৘ใͷܽམɺͦΕΛ๷͍͗ͨ
  66. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 6. ՄࢹԽͱKafka KafkaΛ༻͍ͨγεςϜͷ҆ఆԽ Apache Kafkaͱ͸ ͻͱ͜ͱͰݴ͏ʮΩϡʔͷΑ͏ͳ΋ͷʯ ͨͩ͠աڈ1िؒ෼ʢσϑΥϧτઃఆʣͷσʔλΛอ͓࣋ͯ͠Γɺ
 ͍ͭͰ΋࠶ૹՄೳ ࢖͍ํ ϚΠΫϩαʔϏε͔ΒZipkinͷؒʹKafkaΛڬΉ BeatsͱLogtash΍ElasticsearchͷؒʹKafkaΛڬΉ 66
  67. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 6. ՄࢹԽͱKafka Spring Cloud Sleuth + ZipkinͷΠϝʔδ 67 Microservice1 Microservice2 Zipkin Server HTTP Zipkin UI Server
  68. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 6. ՄࢹԽͱKafka Spring Cloud Sleuth + ZipkinͷΠϝʔδ 68 Microservice1 Microservice2 Zipkin Server Zipkin UI
 Server Kafka
  69. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 6. ՄࢹԽͱKafka Spring Cloud Sleuth + ZipkinͷΠϝʔδ 69 Microservice1 Microservice2 Zipkin Server Zipkin UI
 Server Kafka spring-cloud-sleuth-stream
 spring-cloud-stream-binder-kafka zipkin-autoconfigure-ui
 spring-cloud-sleuth-zipkin-stream
 spring-cloud-stream-binder-kafka
  70. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 6. ՄࢹԽͱKafka Spring Cloud Sleuth + ZipkinͷΠϝʔδ 70 Name artifactId Log HTTP Kafka Sleuth spring-cloud-starter-sleuth Service Sleuth Stream spring-cloud-sleuth-stream Service Zipkin Client spring-cloud-starter-zipkin Service Zipkin Stream spring-cloud-sleuth-zipkin-stream Zipkin Zipkin UI spring-boot-starter
 zipkin-autoconfigure-ui Zipkin Zipkin Zipkin Server spring-boot-starter
 zipkin-server Zipkin Stream Kafka spring-cloud-stream-binder-kafka Both
  71. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 6. ՄࢹԽͱKafka ElasticελοΫʹΑΔՄࢹԽͷΠϝʔδ 71 Microservice1 Microservice2 Filebeat Filebeat Elasticsearch Kibana Logstash
  72. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 6. ՄࢹԽͱKafka ElasticελοΫʹΑΔՄࢹԽͷΠϝʔδ 72 Microservice1 Microservice2 Filebeat Filebeat Elasticsearch Kibana Logstash Kafka
  73. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 6. ՄࢹԽͱKafka ͳͥKafkaΛ࢖͏ͷ͔ʁ େྔͷΞΫηεʹΑΔՄࢹԽγεςϜશମͷఀࢭΛ๷͙ Elasticsearch΍Logstash͕աෛՙʹΑΓఀࢭ͢Δ ͦͷؒʹདྷͨϝοηʔδ͕ফࣦͯ͠͠·͏͜ͱΛ๷͙ LogstashͷઃఆΛमਖ਼ͨ͠ޙʹɺ࠶ૹͰ͖Δ Logstashͷઃఆʹϛε͕͋Γɺύʔεʹࣦഊͯ͠͠·ͬͯ΋ɺ
 ઃఆΛ௚ͨ͠͏͑ͰKafka͔ΒऔΓ௚ͤ͹ਖ਼͘͠గਖ਼Ͱ͖Δ ཁ͢ΔʹՄࢹԽγεςϜͷ҆ఆԽ ՄࢹԽͷॏཁੑ͕௿͍৔߹͸ɺผʹͳͯ͘΋ྑ͍ ηΩϡϦςΟ༻్ͰՄࢹԽ͢Δ৔߹ͳͲ͸ɺͥͻೖΕ͍ͨΑͶʁ 73
  74. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 6. ՄࢹԽͱKafka Spring Cloud Streamͷྑ͍ྫͱ΋ݴ͑Δ Spring Cloud Stream͸ɺҰݟ͢Ε͹ʮࣗ෼ʹ͸͋·Γؔ܎ͷͳ͍΋ͷʯͱ ଊ͑ͯ͠·͍͕ͪ Ͱ΋ࠓճͷՄࢹԽ͸ɺ׬શʹSpring Cloud Streamͱಉ͡ྲྀΕʹͳΔ ʮ͜ͷαʔϏεʗϛυϧ΢ΣΞΛࢭΊͯ΋ɺϝοηʔδΛܽམͤ͞Δ͜ͱͳ ͘ॲཧͰ͖Δ͔ʁʯͱ͍͏ࢹ఺Ͱߟ͑Ε͹ɺSpring Cloud StreamͷϝϦοτ ͕·ͨݟ͑ͯ͘Δ ༨ஊ͚ͩͲɺBeatsͱLogstashͷؒ͸όοΫϓϨογϟʔܕͷಠࣗϓϩ τίϧͳͷͰɺ͜͜Λਅ݋ʹߟ͑ΔͱɺόοΫϓϨογϟʔͷϝϦοτ ΋·ͨݟ͑ͯ͘Δɻͦͷ࿩͸·͍ͨͣΕʂ 74
  75. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. 75 ·ͱΊ
  76. Copyright © Acroquest Technology Co., Ltd. All rights reserved. Copyright

    © Acroquest Technology Co., Ltd. All rights reserved. ·ͱΊ Devܥ͸Spring Cloud Sleuth + ZipkinʹΑΔ
 αʔϏεґଘੑͷՄࢹԽΛ͙͢΍Δ΂͖ Opsܥ͸ElasticελοΫΛ࢖ͬͯϩάͷՄࢹԽΛ
 ͙͢΍Δ΂͖ ো֐΍γεςϜఀࢭ͕ى͖Δ͜ͱେલఏͱͯ͠ɺ
 KafkaΛ༻͍ͨ҆ఆԽΛݕ౼͢Ε͹ɺ
 ؾ͍ͮͨΒSpring Cloud Stream΍όοΫϓϨογϟʔͷ
 ϝϦοτ͕෼͔ΔΑ͏ʹͳΔΑʂ 76
  77. Copyright © Acroquest Technology Co., Ltd. All rights reserved. 77

    Enjoy visualizing your Spring Cloud Applications!