Skip to content

Missing name tag for metric warnings #302

@mraible

Description

@mraible
Overview of the issue

These messages show up in the logs when you visit the metrics page of an app generated with mhipster 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions