-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add reporting task in nifi using nipyapi #352
Comments
Can you say how you are calling the code? The parameters to the function? |
Hi @ottobackwards , I called the below method. The list I am getting is attached. |
From what I can see the PrometheusRecordSink is the only Prometheus service, and it is returned: |
I think what you need is the flow api's get_reporting_task_types. This isn't exposed at the canvas layer yet. |
@ottobackwards, yeah in list of Prometheus services PrometheusRecordSink is only visible there which is not a reporting task. |
@ottobackwards |
What I am saying is that you are using the wrong method to get all the Reporting task type names, it isn' t controller types, it is the get_reporting_task_types. |
okkk , got it . |
Description
I have a usecase where I have to add reporting task (PrometheusReportingTask) using nipyapi , but not getting any method to do that.
What I Did
I tried listing all controller types in nifi env using nipyapi.canvas.list_all_controller_types() but not getting any controller of type PrometheusReportingTask. But using nifi UI I am getting option to add the same.
Urgency
For my production nifi flows I have to implement this, Please let me know If there is any method for adding a PrometheusReportingTask using nipyapi or any workaround for this.
@Chaffelson
The text was updated successfully, but these errors were encountered: