Class CloudwatchEventMonitor
java.lang.Object
org.openmetadata.service.monitoring.EventMonitor
org.openmetadata.service.monitoring.CloudwatchEventMonitor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCloudwatchEventMonitor(EventMonitorProvider eventMonitorProvider, EventMonitorConfiguration config, String clusterPrefix) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest>buildMetricRequest(ChangeEvent event) protected voidclose()protected software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequestlogPipelineCreated(String fqn, String pipelineType, Long timestamp) protected software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequestlogPipelineDeleted(String fqn, String pipelineType, Long timestamp) protected software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequestlogPipelineStatus(String fqn, String pipelineType, Long timestamp, String metricName) protected List<software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest>logPipelineUpdated(String fqn, String pipelineType, Long timestamp, ChangeDescription changeDescription) protected voidpushMetric(ChangeEvent event) We want to control the lifecycle of an Ingestion Pipeline.Methods inherited from class org.openmetadata.service.monitoring.EventMonitor
buildMetricNamespace
-
Field Details
-
ACCESS_KEY_ID
- See Also:
-
SECRET_ACCESS_KEY
- See Also:
-
REGION
- See Also:
-
INGESTION_PIPELINE_CREATED
- See Also:
-
INGESTION_PIPELINE_UPDATED
- See Also:
-
INGESTION_PIPELINE_DELETED
- See Also:
-
NAMESPACE
- See Also:
-
PIPELINE_STATUS
- See Also:
-
-
Constructor Details
-
CloudwatchEventMonitor
public CloudwatchEventMonitor(EventMonitorProvider eventMonitorProvider, EventMonitorConfiguration config, String clusterPrefix)
-
-
Method Details
-
pushMetric
We want to control the lifecycle of an Ingestion Pipeline. We will push metrics for: 1. eventType "entityCreated": log when a pipeline was first created. Push the FQN and timestamp 2. eventType "entityUpdated": log when there is a `pipelineStatus` change with the status type 3. eventType "entityDeleted": log when an ingestionPipeline is removed- Specified by:
pushMetricin classEventMonitor
-
buildMetricRequest
protected List<software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest> buildMetricRequest(ChangeEvent event) -
logPipelineCreated
-
logPipelineDeleted
-
logPipelineUpdated
protected List<software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest> logPipelineUpdated(String fqn, String pipelineType, Long timestamp, ChangeDescription changeDescription) -
logPipelineStatus
-
close
protected void close()- Specified by:
closein classEventMonitor
-