简体   繁体   中英

Custom name for grouping metrics with same tags

My application based on spring-boot and I'm using micrometer with AWS cloudwatch for collecting specific metrics. Faced an issue that it is hard to find needed metric if it has many additional tags, because of AWS naming metric groups (metrics with the same dimensions) by simple joining tags' names.

Here is an example: 在此处输入图像描述

At the same time, for default aws services' metrics here present readable titles. 在此处输入图像描述

Does anyone know how can I configure these titles? And can I configure them at all?

You can't configure that. You'll see pretty labels on metrics publish by AWS services that integrate with CloudWatch in the background.

Custom metrics will have a top level namespace and then you'll have metrics grouped by different dimensions used (what you see in the screenshot).

I'm not familiar with spring boot or micrometer, but if you have the ability to configure it, you could try some of these things:

  1. Split metrics into different namespaces (cache metrics for example could go into a separate namespace).
  2. Remove some of the detail (do you need per instance metrics).
  3. Move some dimensions into metric name (if you just want the info of the dimension value, but don't need the ability to aggregate and graph across that dimension, you can have it as part of the metric name).
  4. Use search to find the metric you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM