Package org.qubership.nifi.service
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
FieldsModifier and TypeFieldDescriptionstatic final org.apache.nifi.components.PropertyDescriptorprotected Stringstatic final org.apache.nifi.components.PropertyDescriptorio.micrometer.prometheus.PrometheusMeterRegistrystatic final org.apache.nifi.components.PropertyDescriptorprotected StringFields inherited from interface org.apache.nifi.record.sink.RecordSinkService
RECORD_WRITER_FACTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected Stringprotected List<org.apache.nifi.components.PropertyDescriptor> voidonScheduled(org.apache.nifi.controller.ConfigurationContext context) voidvoidorg.apache.nifi.serialization.WriteResultsendData(org.apache.nifi.serialization.record.RecordSet recordSet, Map<String, String> map, boolean b) protected voidMethods inherited from class org.apache.nifi.controller.AbstractControllerService
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStatefulMethods inherited from interface org.apache.nifi.record.sink.RecordSinkService
reset
-
Field Details
-
meterRegistry
public io.micrometer.prometheus.PrometheusMeterRegistry meterRegistry -
namespace
-
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
- Overrides:
getSupportedPropertyDescriptorsin classorg.apache.nifi.components.AbstractConfigurableComponent
-
startServer
protected void startServer() -
getNamespace
-
getHostname
-
onScheduled
@OnEnabled public void onScheduled(org.apache.nifi.controller.ConfigurationContext context) -
onStopped
- Throws:
Exception
-
onShutDown
- 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:
sendDatain interfaceorg.apache.nifi.record.sink.RecordSinkService- Throws:
IOException
-