1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[JBoss] Configure Wildfly micrometer to set name of application

Discussão em 'StackOverflow' iniciado por Stack, Dezembro 4, 2024.

  1. Stack

    Stack Membro Participativo

    We are using Wildfly 33 (jboss 7.1.0) and we have configured it to use micrometer. It now sends the metrics via an Open Telemetry collector to a prometheus instance. This works great but the problem we face is that all metrics are tagged with app=wildfly and job=wildfly

    datasources_jdbc_prepared_statement_cache_access_count{app="wildfly",deployment="",job="wildfly",name="****",subdeployment="",type="data-source"}
    undertow_request_count_total{app="****.ear",deployment="****.ear",job="wildfly",name="ApplicationConfig",subdeployment="****.war",type="servlet"}


    Does someone knew how we could change the name of the tag: app or/and job

    For example setting the tag

    app="wildfly_app_1", job="wildfly_job_1"

    Continue reading...

Compartilhe esta Página