generator-jhipster-micronaut icon indicating copy to clipboard operation
generator-jhipster-micronaut copied to clipboard

Missing name tag for metric warnings

Open mraible opened this issue 4 months ago • 0 comments

Overview of the issue

These messages show up in the logs when you visit the metrics page of an app generated with jhipster jdl default --skip-jhipster-dependencies:

16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.evictions
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.evictions
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.evictions
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.puts
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.puts
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.puts
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.puts
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.evictions
16:53:25.958 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.removals
16:53:25.959 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.removals
16:53:25.959 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.removals
16:53:25.959 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.removals
Reproduce the error

Create an app with jhipster jdl default --skip-jhipster-dependencies.

Related issues
Suggest a Fix
JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "applicationIndex": 0,
    "backendType": "Micronaut",
    "baseName": "jhipster",
    "blueprints": [
      {
        "name": "generator-jhipster-micronaut",
        "version": "3.0.0"
      }
    ],
    "creationTimestamp": 1708559039230,
    "devServerPort": 4200,
    "entities": [],
    "jhipsterVersion": "8.1.0",
    "languages": [
      "en"
    ],
    "nativeLanguage": "en",
    "prodDatabaseType": "postgresql",
    "skipJhipsterDependencies": true
  }
}
Environment and Tools

openjdk version "21.0.2" 2024-01-16 LTS OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode)

git version 2.39.3 (Apple Git-145)

node: v20.11.0 npm: 10.4.0

Docker version 25.0.3, build 4debf41

JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions

mraible avatar Feb 21 '24 23:02 mraible