Closed Krithikavv closed 2 years ago
@Krithikavv I'm not sure you want to be sharing your API token here as this is public and viewable by anyone. I have edited the issue description to redact it, but anyone watching this repository has potentially seen it. You probably should delete that API token and generate a new one to use so others don't use yours.
@pirgeo I'm not sure if you're able to help here, or should @Krithikavv open a support ticket through Dynatrace's support channels instead?
@shakuzen thanks for redacting it. I agree that you should delete it and create a new one to make sure nobody else can use it.
@Krithikavv Do I understand correctly, that system metrics are correctly exported and show up in Dynatrace, but custom metrics that you created yourself in code do not show up? If that is the case, @shakuzen, do you know if there is something one needs to specify explicitly to export custom metrics from Spring Boot as well? My understanding was that all metrics collected (including custom ones) will automatically be exported to all registries.
There is already an issue on the Dynatrace Community forums. If this issue persists, please consider opening a support ticket, so our team can take a closer look. Thanks!
Hi sure, thanks yes I removed the token and uri and details and changed it. outside world wont have access to the secure page as well. thanks for heads up. yes I was also thinking that spring boot apps must bring out all the metrics including custom metrics. I have called custom metrics in my app and able to see the details. Between, yes I have used simple meter registry to export contents to dynatrace and spring boot apps have config to talk to dynatrace. I don't see this custom metrics (say counter, timer,etc) published to exporter. should I use dynatracemeterregistry ? for this production integration instead of simple meter registry.
Hi guys, I guess I was looking at simple meter registry so was not able to see details in prod. changed to dynatrace meter registry and able to see them in dynatrace. but my qq is some of the meter values are empty and not proper in this dynatrace meter registry which I saw in simple meter registry.. let me just put that alone here.. I don't see mean/count of event(which was one in simple meter registry ) /total time.. why does this discrepancy arise ?
.a.m.c.micrometertest.MicroLibImpl : event count metric:0 2022-03-11 12:41:05.411 INFO 12651 --- [nio-9401-exec-9] c.a.m.c.micrometertest.MicroLibImpl : events totaltime ns:0.0 2022-03-11 12:41:05.411 INFO 12651 --- [nio-9401-exec-9] c.a.m.c.micrometertest.MicroLibImpl : single event maxtime ns:118.121266 2022-03-11 12:41:05.411 INFO 12651 --- [nio-9401-exec-9] c.a.m.c.micrometertest.MicroLibImpl : print all events mean ns:0.0
Hi @Krithikavv,
Thanks for reporting back that using the DynatraceMeterRegistry
fixed the problem of metrics not showing up in Dynatrace.
As for your second question: Does the problem only show up when working with Timers in nanosecond resolution, or is this the case for other instruments too (especially for non-time related ones, like DistributionSummary
)?
hi so basically I see the metric not printing for even counter(increment still showed 0) or distribution summary type of objects as well not just timer.
Hi do I need to raise a ticket for this separately ? I don't see most of details printed.. even for counter increment() is not wokring to export detail to dynatrace.
For looking further into this problem it would be helpful to have access to your environment and this would have to by handled by our support team, so if you'd like to get their assistance please open a support ticket with them.
Hi sure, is there a uri that you can guide me so that I can raise a support ticket ?
Hi, please take a look here: https://support.dynatrace.com/. There should be a link for you to open a support ticket there.
It sounds like the originally reported problem has been solved. If there's any change needed in Micrometer related to the new issue, let's track that in a new issue with details once support has had a chance to look at it. Thanks for the help @pirgeo.
In case it helps in looking into this, SimpleMeterRegistry
by default reports cumulative values whereas DynatraceMeterRegistry
is a StepMeterRegistry
, which means it reports a value per step for the previous step interval. For example, if you increment a counter, the increment is reflected in the count during the next step interval. This is described in the documentation under Rate Aggregation
Describe the bug im working on integrating micrometer with dynatrace for monitoring purpose. I try to run spring boot app with spring boot actuator /config specific for Dynatrace integration on micrometer docs page. used the same configs. Tried changing log level but no luck to see custom metric. only the system metrics are exported from micrometer.
I see this , but metrics are not getting exported from app still.
config on spring boot app: not able to see any logs or details from micrometer dyantrace . also publishing is not happening to dynatrace. searched for spring.integration. as per standard spring docs support.
Environment from server hosted : managed host machine. https://apm.cf.us30.hana.ondemand.com/e/e584d4c6-69cf-459a-a685-2ad0673f5ff7/ui/metrics?gtf=-2h&gf=all latest version : 1.8.3 (micrometer) dyna micrometer registry : 1.8.3 OS: linux java: 1.8
java version "1.8.0_301" Java(TM) SE Runtime Environment (build 1.8.0_301-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.301-b09, mixed mode) To Reproduce How to reproduce the bug: expose any functionality API call from spring boot app to dynatrace with any metrics (timer,counter etc)
Expected behavior metrics should flow into dynatrace with name spring.integration. as name
Additional context Add any other context about the problem here, e.g. related issues.