NIFI-5417: Add missing component status and metrics to S2SStatusReportingTask and PrometheusReportingTask#3554
Conversation
|
@mattyb149 is this intended to address the granularity issue we discussed in the initial PR? |
|
No NIFI-6352 did that, this just extended from the fact that things like "terminated thread count" are available but aren't being reported by the ReportingTasks that are responsible for it. I'll be writing a follow-on for the PrometheusReportingTask so we don't register the Gauges we don't need. They're all static members on the class and are all registered, even if we don't pick "All Components" as the strategy. I should've done it under NIFI-6352 but I didn't notice until after it went in. If I can get it changed before 1.10 I'll reopen the Jira and do the work under that. |
| { "name" : "invocations", "type" : ["long", "null"]}, | ||
| { "name" : "processingNanos", "type" : ["long", "null"]} | ||
| { "name" : "processingNanos", "type" : ["long", "null"]}, | ||
| { "name" : "counters", "type": { "type": "map", "values": "string" }} |
There was a problem hiding this comment.
@mattyb149 should executionNode also be included?
There was a problem hiding this comment.
Yes I missed that one, thanks! Will update
|
@mattyb149 I took a look at this PR and things looked good. Below were my test cases: Prometheus Reporting:
SiteToSiteStatusReporting:
My only outstanding question is posted as inline comments related to executionNode (not clear if this was purposefully excluded from schema and docs?). I think once that's cleared we're good to go. |
…sk and PrometheusReportingTask
|
@mattyb149 thanks for the update all looks good +1 Will squash and merge |
…tingTask and PrometheusReportingTask (apache#3554) * NIFI-5417: Add missing component status and metrics to S2SReportingTask and PrometheusReportingTask * NIFI-5417: Added executionNode to schema and doc This closes apache#3554 Signed-off-by: Yolanda M. Davis <yolanda.m.davis@gmail.com>
Thank you for submitting a contribution to Apache NiFi.
Please provide a short description of the PR here:
Description of PR
Adds missing status fields (run status, e.g.) and metrics (terminated thread count, e.g.) to SiteToSiteStatusReportingTask and PrometheusReportingTask.
PrometheusMetricsUtilhad CRLF line endings so I removed them, please ignore whitespace while reviewing, thanks!In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically
master)?Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not
squashor use--forcewhen pushing to allow for clean monitoring of changes.For code changes:
mvn -Pcontrib-check clean installat the rootnififolder?LICENSEfile, including the mainLICENSEfile undernifi-assembly?NOTICEfile, including the mainNOTICEfile found undernifi-assembly?.displayNamein addition to .name (programmatic access) for each of the new properties?For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.