Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Visualize Your Geode Metrics

91 views

Published on

SpringOne Platform 2019
Session Title: Visualize Your Geode Metrics
Speakers: Michael Oleske, Software Engineer, Pivotal and Dale Emery, Principal Software Engineer, Pivotal
Youtube: https://youtu.be/stTWW5uBC5U

Published in: Software
  • Be the first to comment

  • Be the first to like this

Visualize Your Geode Metrics

  1. 1. Apache Geode Summit 2019 Dale Emery & Michael Oleske, Software Engineers - Pivotal
  2. 2. Visualize Your Geode Metrics 2
  3. 3. Viewing Geode Metrics Before Now ● Internal metrics written to a local file in a proprietary format ○ Viewable with a custom viewing tool ○ Generally viewed after the events happened ● A subset published via JMX 3
  4. 4. Micrometer in Geode 4 ● Make key metrics visible in external monitoring systems ● View metrics while the system is running ● Augment metrics with details to aid understanding
  5. 5. 5 Geode Internal Meter Registry measurement measurement measurement measurement measurement Meter Registries
  6. 6. Connecting to Monitoring Systems 6 Geode Internal Meter Registry Meter Registry Implementation Monitoring System
  7. 7. Connecting to Monitoring Systems 7 ● Chose a Micrometer meter registry implementation that publishes to your monitoring system ○ For a list of implementations, see: http://micrometer.io/docs ● Create a MetricsPublishingService that adds your registry to Geode
  8. 8. Live View of Metrics 8 Client Locator Server External Monitoring System Storage Visualization
  9. 9. 9
  10. 10. 10 How Geode Records Measurements ● Uses Micrometer meters to record measurements ○ eventsReceivedCounter.increment(delta); ● Collects the meters in its meter registry
  11. 11. 11 Types of Meters ● Counter ● Gauge ● Timer ● Other types…
  12. 12. 12 What’s in a Meter ● Name ● Description ● Tags ● Value ● Units
  13. 13. Current Geode Meters ● System metrics ○ processors ○ file descriptors ● JVM metrics ○ process ○ memory ○ garbage collection ○ threads ● Cache Entries 13
  14. 14. 14
  15. 15. 15 Tags ● AKA labels or dimensions ● Identify the scope, circumstances, or other facts about each measurement ● Allow us to filter and sort measurements
  16. 16. 16
  17. 17. area = “heap” id = “PS Eden Space” member = “server1” Tags on the jvm.memory.used Meter 17
  18. 18. 18
  19. 19. Tags in Geode Meters ● Geode adds common tags to every meter ○ Member ○ Cluster ○ Host ● Geode also adds relevant tags specific to each meter ○ E.g. geode.cache.entries has a region tag 19
  20. 20. 20
  21. 21. Scenario - Partition Region Redundancy 1 21 Server 1 Locator Server 3 Server 2 Rebalance Entry 1 Entry 2 Entry 3 Entry 1 Entry 2 Entry 3 Entry 1 Entry 2
  22. 22. 22 Start Server 3 Start Server 3 Stop Server 3
  23. 23. 23
  24. 24. 24
  25. 25. The Future Depends on You ● Send Geode’s metrics to your favorite monitoring system ● What works well for you? ● What additional metrics would best help you manage your Geode systems? 25
  26. 26. For Further Information ● Micrometer: http://micrometer.io/ ● Prometheus: https://prometheus.io ● Grafana: https://grafana.com ● Publishing Geode Metrics to External Monitoring Systems: https://cwiki.apache.org/confluence/display/GEODE/Publishi ng+Geode+Metrics+to+External+Monitoring+Systems ● Example code to publish metrics to Prometheus: https://github.com/moleske/geode-registry-example 26

×