Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8536

PrometheusReportingTask and PrometheusRecordSink do not support variable registry for port

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14.0
    • Component/s: Extensions
    • Labels:
      None

      Description

      The documentation for both PrometheusReportingTask [1] (reporting task) and PrometheusRecordSink [2] (controller service) state that NiFi Variable Registry can be used to define the port. However, configuring NiFi EL in the port property results in:

      java.lang.NumberFormatException: For input string: "${<variable registry property name>}"

      Support variable registry here would allow user to set a unique port on each host in a NiFi cluster.

      [1] http://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-prometheus-nar/1.13.2/org.apache.nifi.reporting.prometheus.PrometheusReportingTask/index.html

      [2] http://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-prometheus-nar/1.13.2/org.apache.nifi.reporting.prometheus.PrometheusRecordSink/index.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                naddym Nadeem
                Reporter:
                msclarke Matthew Clarke
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m