Github user JPercivall commented on the issue:
https://github.com/apache/nifi/pull/655
@Ramizjon, the gauges make sense but the last part, "DropWizard framework
gets metric values from that structure with specified period of time", doesn't.
It seems (looking at this line of code[1]) that the "start" method of the
DatadogReporter is causing the reporting with a specified period of time. If
you just used one of the "report"[2] methods every onTrigger call you would
achieve what I am suggesting.
Installing an agent may be very simple, I don't like the idea of requiring
a user to install something on the box in order to work (the person configuring
the flow may not have access to install locally). I would very much prefer go
the extra mile to make this work without an agent locally. You mention that
it's the "best way", this means you're able to report without having an agent
locally?
[1]
https://github.com/apache/nifi/pull/655/files#diff-3f6f231dd20c75c7f8830cc0fd156770R55
[2]
https://github.com/coursera/metrics-datadog/blob/master/metrics-datadog/src/main/java/org/coursera/metrics/datadog/DatadogReporter.java#L71
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---