Class QubershipPrometheusRecordSink

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.qubership.nifi.service.QubershipPrometheusRecordSink
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.controller.ControllerService, org.apache.nifi.record.sink.RecordSinkService

@Tags({"record","send","write","prometheus"}) public class QubershipPrometheusRecordSink extends org.apache.nifi.controller.AbstractControllerService implements org.apache.nifi.record.sink.RecordSinkService
Controller Services which allows to expose metrics to Prometheus.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.nifi.components.PropertyDescriptor
     
    protected String
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    io.micrometer.prometheus.PrometheusMeterRegistry
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    protected String
     

    Fields inherited from interface org.apache.nifi.record.sink.RecordSinkService

    RECORD_WRITER_FACTORY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
     
    protected String
     
    protected List<org.apache.nifi.components.PropertyDescriptor>
     
    void
    onScheduled(org.apache.nifi.controller.ConfigurationContext context)
     
    void
     
    void
     
    org.apache.nifi.serialization.WriteResult
    sendData(org.apache.nifi.serialization.record.RecordSet recordSet, Map<String,String> map, boolean b)
     
    protected void
     

    Methods inherited from class org.apache.nifi.controller.AbstractControllerService

    abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabled

    Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent

    customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.nifi.components.ConfigurableComponent

    getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate

    Methods inherited from interface org.apache.nifi.controller.ControllerService

    initialize, isStateful

    Methods inherited from interface org.apache.nifi.record.sink.RecordSinkService

    reset
  • Field Details

    • meterRegistry

      public io.micrometer.prometheus.PrometheusMeterRegistry meterRegistry
    • namespace

      protected String namespace
    • hostname

      protected String hostname
    • METRICS_ENDPOINT_PORT

      public static final org.apache.nifi.components.PropertyDescriptor METRICS_ENDPOINT_PORT
    • INSTANCE_ID

      public static final org.apache.nifi.components.PropertyDescriptor INSTANCE_ID
    • CLEAR_METRICS

      public static final org.apache.nifi.components.PropertyDescriptor CLEAR_METRICS
  • Constructor Details

    • QubershipPrometheusRecordSink

      public QubershipPrometheusRecordSink()
  • Method Details

    • getSupportedPropertyDescriptors

      protected List<org.apache.nifi.components.PropertyDescriptor> getSupportedPropertyDescriptors()
      Overrides:
      getSupportedPropertyDescriptors in class org.apache.nifi.components.AbstractConfigurableComponent
    • startServer

      protected void startServer()
    • getNamespace

      protected String getNamespace()
    • getHostname

      protected String getHostname()
    • onScheduled

      @OnEnabled public void onScheduled(org.apache.nifi.controller.ConfigurationContext context)
    • onStopped

      @OnDisabled public void onStopped() throws Exception
      Throws:
      Exception
    • onShutDown

      @OnShutdown public void onShutDown() throws Exception
      Throws:
      Exception
    • sendData

      public org.apache.nifi.serialization.WriteResult sendData(org.apache.nifi.serialization.record.RecordSet recordSet, Map<String,String> map, boolean b) throws IOException
      Specified by:
      sendData in interface org.apache.nifi.record.sink.RecordSinkService
      Throws:
      IOException