Stan's Corner

 View Only
Expand all | Collapse all

Instana JVM Micrometer/Prometheus stats with Fargate

  • 1.  Instana JVM Micrometer/Prometheus stats with Fargate

    Posted Mon December 04, 2023 02:25 PM

    Hi,

    For an application we turned on Micrometer (and Prometheus exporter) however we do not see any data from the agent in the JVM Dashboard.

    Instructions follow:

    https://www.ibm.com/docs/en/instana-observability/current?topic=technologies-prometheus-java-client-library
    And 
    `https://www.ibm.com/docs/en/instana-observability/current?topic=technologies-monitoring-micrometer`

    However we do not see any data,

    We are using AWS ECS with a Instana Fargate sensor for the docker images and an AWS Instana Sensor running in ECS. 

    The goal is to have some application business metrics collected by Micrometer to show up in Instana.

    Any help/pointers appreciated,

    Regards

    Harald



    ------------------------------
    Harald Rietman
    ------------------------------



  • 2.  RE: Instana JVM Micrometer/Prometheus stats with Fargate

    Posted Tue December 05, 2023 02:41 AM

    Good morning Harald,

    for the ECS Fargate sensor, there is a separate environment variable to set in order to collect Micrometer metrics from the Java application.

    Please set 

    INSTANA_MICROMETER_METRICS=true

    for the sensor to activate Micrometer metrics collection. Unfortunately this is not in the official documentation, yet. I'll manage to get this added to the docs asap.

    In addition, there is the INSTANA_MICROMETER_LIMIT env var, which takes a numerical value to limit the amount of Micrometer metrics to be collected. It corresponds to the setting described in the Java sensor docs here.

    I hope this helps. Thanks for getting in touch & best regards.

    Henning



    ------------------------------
    Henning Treu

    Senior Product Manager - Instana
    Agent, Logging, Application Perspectives
    ------------------------------



  • 3.  RE: Instana JVM Micrometer/Prometheus stats with Fargate

    Posted Tue December 05, 2023 04:19 AM

    Hi Henning,

    Thank you for the quick reply; that did the trick! We now see micrometer stats inside the JVM Dashboard in Instana. 

    Regards

    Harald



    ------------------------------
    Harald Rietman
    ------------------------------