Class CloudwatchEventMonitor
- java.lang.Object
-
- org.openmetadata.service.monitoring.EventMonitor
-
- org.openmetadata.service.monitoring.CloudwatchEventMonitor
-
public class CloudwatchEventMonitor extends EventMonitor
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCESS_KEY_IDstatic StringINGESTION_PIPELINE_CREATEDstatic StringINGESTION_PIPELINE_DELETEDstatic StringINGESTION_PIPELINE_UPDATEDstatic StringNAMESPACEstatic StringPIPELINE_STATUSstatic StringREGIONstatic StringSECRET_ACCESS_KEY
-
Constructor Summary
Constructors Constructor Description CloudwatchEventMonitor(EventMonitorProvider eventMonitorProvider, EventMonitorConfiguration config, String clusterPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
ACCESS_KEY_ID
public static final String ACCESS_KEY_ID
- See Also:
- Constant Field Values
-
SECRET_ACCESS_KEY
public static final String SECRET_ACCESS_KEY
- See Also:
- Constant Field Values
-
REGION
public static final String REGION
- See Also:
- Constant Field Values
-
INGESTION_PIPELINE_CREATED
public static final String INGESTION_PIPELINE_CREATED
- See Also:
- Constant Field Values
-
INGESTION_PIPELINE_UPDATED
public static final String INGESTION_PIPELINE_UPDATED
- See Also:
- Constant Field Values
-
INGESTION_PIPELINE_DELETED
public static final String INGESTION_PIPELINE_DELETED
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
PIPELINE_STATUS
public static final String PIPELINE_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CloudwatchEventMonitor
public CloudwatchEventMonitor(EventMonitorProvider eventMonitorProvider, EventMonitorConfiguration config, String clusterPrefix)
-
-
Method Detail
-
pushMetric
protected void pushMetric(ChangeEvent event)
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
protected software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest logPipelineCreated(String fqn, String pipelineType, Long timestamp)
-
logPipelineDeleted
protected software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest logPipelineDeleted(String fqn, String pipelineType, Long timestamp)
-
logPipelineUpdated
protected List<software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest> logPipelineUpdated(String fqn, String pipelineType, Long timestamp, ChangeDescription changeDescription)
-
logPipelineStatus
protected software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest logPipelineStatus(String fqn, String pipelineType, Long timestamp, String metricName)
-
close
protected void close()
- Specified by:
closein classEventMonitor
-
-