Prometheus Monitoring for Java Web Applications w o Modifying Source Code by Fabian Stäber

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 พ.ย. 2017
  • The Prometheus monitoring tool follows a white-box monitoring approach: Applications actively provide metrics about their internal state to the Prometheus server. In order to instrument an application with Prometheus metrics, you have to add a metrics library and call that library in the application's source code. However, DevOps teams do not always have the option to modify the source code of the applications they are running.
    This talk shows how to instrument Java Web Applications with Prometheus metrics without modifying the application's source code. The implementation uses a variety of lesser-known but useful JVM features and libraries: Java agents, Bytecode manipulation with Byte Buddy, custom class loaders, reflection without loading class dependencies, thread locals, weak references, Docker for running application servers in integration tests. Browsing through the demo code we will learn some interesting facts about module systems in application servers and class loaders in general.
    Fabian Stäber
    Dr. Fabian Stäber is software developer, research and development lead, consultant, architect, at ConSol Software GmbH in Munich, Germany. Fabian is excited about Java server development, distributed systems, operations, and monitoring. His academic research was on decentralized, peer-to-peer-based network architectures.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 6

  • @kengeis1265
    @kengeis1265 6 ปีที่แล้ว +1

    Thanks for the talk. I really appreciated the example of coding a Java agent with Byte Buddy.

    • @shashidubey1
      @shashidubey1 6 ปีที่แล้ว

      You can find it here labs.consol.de/monitoring/2017/11/07/prometheus-java.html

  • @drivingtestprep4958
    @drivingtestprep4958 3 ปีที่แล้ว +1

    Can we not use something like AOP where you can configure the advice and just write the advice which produces the metrics ?

  • @fabianstaber265
    @fabianstaber265 6 ปีที่แล้ว +1

    If you want a general introduction to Prometheus Monitoring for Java Developers, you might want to watch this: th-cam.com/video/jb9j_IYv4cU/w-d-xo.html

  • @zokymasa
    @zokymasa 3 ปีที่แล้ว

    Fabian looks like Gaspar Noe