-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(metricstrea): set recommended filter by omission
Previously we were collecting all metrics by omission. This commit instead loads a recommended set of filters from a file on disk. The file is kept in sync with the filter we provide for cloudformation. We could have loaded the filter dynamically directly from the hosted URL, but that would be at odds with the idempotent nature of terraform modules. Since we already have to update the binary versions of lambda functions, we can piggyback on that process to mirror the file.
- Loading branch information
Showing
8 changed files
with
307 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,268 @@ | ||
ExcludeFilters: | ||
- Namespace: AWS/RDS | ||
# https://docs.datadoghq.com/integrations/amazon_rds/ | ||
MetricNames: | ||
- AbortedClients | ||
# - ActiveTransactions | ||
# - AuroraBinlogReplicaLag | ||
- AuroraDMLRejectedMasterFull | ||
- AuroraDMLRejectedWriterFull | ||
- AuroraEstimatedSharedMemoryBytes | ||
# - AuroraReplicaLag | ||
# - AuroraReplicaLagMaximum | ||
# - AuroraReplicaLagMinimum | ||
- AuroraSlowConnectionHandleCount | ||
- AuroraSlowHandshakeCount | ||
- AuroraVolumeBytesLeftTotal | ||
- Aurora_pq_request_attempted | ||
- Aurora_pq_request_executed | ||
- Aurora_pq_request_failed | ||
- Aurora_pq_request_in_progress | ||
- Aurora_pq_request_not_chosen | ||
- Aurora_pq_request_not_chosen_below_min_rows | ||
- Aurora_pq_request_not_chosen_column_bit | ||
- Aurora_pq_request_not_chosen_column_geometry | ||
- Aurora_pq_request_not_chosen_column_lob | ||
- Aurora_pq_request_not_chosen_column_virtual | ||
- Aurora_pq_request_not_chosen_custom_charset | ||
- Aurora_pq_request_not_chosen_fast_ddl | ||
- Aurora_pq_request_not_chosen_few_pages_outside_buffer_pool | ||
- Aurora_pq_request_not_chosen_full_text_index | ||
- Aurora_pq_request_not_chosen_high_buffer_pool_pct | ||
- Aurora_pq_request_not_chosen_index_hint | ||
- Aurora_pq_request_not_chosen_innodb_table_format | ||
- Aurora_pq_request_not_chosen_instant_ddl | ||
- Aurora_pq_request_not_chosen_long_trx | ||
- Aurora_pq_request_not_chosen_no_where_clause | ||
- Aurora_pq_request_not_chosen_range_scan | ||
- Aurora_pq_request_not_chosen_row_length_too_long | ||
- Aurora_pq_request_not_chosen_small_table | ||
- Aurora_pq_request_not_chosen_temporary_table | ||
- Aurora_pq_request_not_chosen_tx_isolation | ||
- Aurora_pq_request_not_chosen_unsupported_access | ||
- Aurora_pq_request_not_chosen_unsupported_storage_type | ||
- Aurora_pq_request_not_chosen_update_delete_stmts | ||
- Aurora_pq_request_throttled | ||
- AvailabilityPercentage | ||
# - BackupRetentionPeriodStorageUsed | ||
# - BinLogDiskUsage | ||
# - BlockedTransactions | ||
# - BufferCacheHitRatio | ||
# - BurstBalance | ||
- CheckpointLag | ||
- ClientConnections | ||
- ClientConnectionsClosed | ||
- ClientConnectionsNoTLS | ||
- ClientConnectionsReceived | ||
- ClientConnectionsSetupSucceeded | ||
- ClientConnectionsTLS | ||
# - CommitLatency | ||
# - CommitThroughput | ||
- ConnectionAttempts | ||
# - CommitThroughput | ||
# - CPUCreditBalance | ||
# - CPUCreditUsage | ||
# - CPUSurplusCreditBalance | ||
# - CPUSurplusCreditsCharged | ||
# - CPUUtilization | ||
# - DBLoad | ||
# - DBLoadCPU | ||
# - DBLoadNonCPU | ||
# - DDLLatency | ||
# - DDLThroughput | ||
- DatabaseConnectionRequests | ||
- DatabaseConnectionRequestsWithTLS | ||
- DatabaseConnections | ||
- DatabaseConnectionsBorrowLatency | ||
- DatabaseConnectionsCurrentlyBorrowed | ||
- DatabaseConnectionsCurrentlyInTransaction | ||
- DatabaseConnectionsCurrentlySessionPinned | ||
- DatabaseConnectionsSetupSucceeded | ||
- DatabaseConnectionsWithTLS | ||
# - Deadlocks | ||
# - DeleteLatency | ||
# - DeleteThroughput | ||
# - DiskQueueDepth | ||
# - DMLLatency | ||
# - DMLThroughput | ||
- EBSByteBalance% | ||
- EBSIOBalance% | ||
# - EngineUptime | ||
- ForwardingMasterDMLLatency | ||
- ForwardingMasterDMLThroughput | ||
- ForwardingMasterOpenSessions | ||
- ForwardingReplicaDMLLatency | ||
- ForwardingReplicaDMLThroughput | ||
- ForwardingReplicaOpenSessions | ||
- ForwardingReplicaReadWaitLatency | ||
- ForwardingReplicaReadWaitThroughput | ||
- ForwardingReplicaSelectLatency | ||
- ForwardingReplicaSelectThroughput | ||
- ForwardingWriterDMLLatency | ||
- ForwardingWriterDMLThroughput | ||
- ForwardingWriterOpenSessions | ||
# - FreeLocalStorage | ||
# - FreeStorageSpace | ||
# - FreeableMemory | ||
# - InsertLatency | ||
# - InsertThroughput | ||
# - LoginFailures | ||
- MaxDatabaseConnectionsAllowed | ||
# - MaximumUsedTransactionIDs | ||
# - NetworkReceiveThroughput | ||
# - NetworkThroughput | ||
# - NetworkTransmitThroughput | ||
- NumBinaryLogFiles | ||
# - OldestReplicationSlotLag | ||
- PurgeBoundary | ||
- PurgeFinishedPoint | ||
# - Queries | ||
- QueryDatabaseResponseLatency | ||
- QueryRequests | ||
- QueryRequestsTLS | ||
- QueryResponseLatency | ||
- RDSToAuroraPostgreSQLReplicaLag | ||
# - ReadIOPS | ||
# - ReadLatency | ||
# - ReadThroughput | ||
# - ReplicationSlotDiskUsage | ||
# - ResultSetCacheHitRatio | ||
- RollbackSegmentHistoryListLength | ||
- RowLockTime | ||
# - SelectLatency | ||
# - SelectThroughput | ||
- StorageNetworkReceiveThroughput | ||
- StorageNetworkThroughput | ||
- StorageNetworkTransmitThroughput | ||
- SumBinaryLogSize | ||
# - SwapUsage | ||
# - TotalBackupStorageBilled | ||
# - TransactionLogsDiskUsage | ||
# - TransactionLogsGeneration | ||
- TruncateFinishedPoint | ||
# - UpdateLatency | ||
# - UpdateThroughput | ||
# - VolumeBytesUsed | ||
# - VolumeReadIOPs | ||
# - VolumeWriteIOPs | ||
# - WriteIOPS | ||
# - WriteLatency | ||
# - WriteThroughput | ||
- Namespace: AWS/ApplicationELB | ||
# https://docs.datadoghq.com/integrations/amazon_elb/#metrics | ||
MetricNames: | ||
# - ActiveConnectionCount | ||
- AnomalousHostCount | ||
# - ClientTLSNegotiationErrorCount | ||
# - ConsumedLCUs | ||
- DesyncMitigationMode_NonCompliant_Request_Count | ||
- ForwardedInvalidHeaderRequestCount | ||
# - HealthyHostCount | ||
- HealthyStateDNS | ||
- HealthyStateRouting | ||
- HTTPCode_ELB_3XX_Count | ||
# - HTTPCode_ELB_4XX_Count | ||
# - HTTPCode_ELB_502_Count | ||
# - HTTPCode_ELB_503_Count | ||
# - HTTPCode_ELB_504_Count | ||
# - HTTPCode_ELB_5XX_Count | ||
# - HTTPCode_Target_2XX_Count | ||
# - HTTPCode_Target_3XX_Count | ||
# - HTTPCode_Target_4XX_Count | ||
# - HTTPCode_Target_5XX_Count | ||
# - HTTP_Redirect_Count | ||
- MitigatedHostCount | ||
# - NewConnectionCount | ||
# - ProcessedBytes | ||
# - RequestCount | ||
# - RequestCountPerTarget | ||
# - TargetResponseTime | ||
# - UnHealthyHostCount | ||
- UnhealthyStateDNS | ||
- UnhealthyStateRouting | ||
- Namespace: AWS/AmazonMQ | ||
# https://docs.datadoghq.com/integrations/amazon_mq/ | ||
MetricNames: | ||
# - AckRate | ||
# - ChannelCount | ||
# - ConfirmRate | ||
# - ConnectionCount | ||
# - ConsumerCount | ||
# - ExchangeCount | ||
# - MessageCount | ||
# - MessageReadyCount | ||
# - MessageUnacknowledgedCount | ||
# - PublishRate | ||
# - QueueCount | ||
# - RabbitMQDiskFree | ||
# - RabbitMQDiskFreeLimit | ||
# - RabbitMQFdUsed | ||
- RabbitMQIOReadAverageTime | ||
- RabbitMQIOWriteAverageTime | ||
# - RabbitMQMemLimit | ||
# - RabbitMQMemUsed | ||
# - SystemCpuUtilization | ||
- Namespace: AWS/ElastiCache | ||
# https://docs.datadoghq.com/integrations/amazon_elasticache/ | ||
MetricNames: | ||
# - ActiveDefragHits | ||
- AuthenticationFailures | ||
# - BytesUsedForCache | ||
# - CacheHitRate | ||
# - CacheHits | ||
# - CacheMisses | ||
- ChannelAuthorizationFailures | ||
- CommandAuthorizationFailures | ||
# - CPUCreditBalance | ||
# - CPUCreditUsage | ||
# - CPUUtilization | ||
# - CurrConnections | ||
# - CurrItems | ||
- CurrVolatileItems | ||
- DatabaseCapacityUsageCountedForEvictPercentage | ||
- DatabaseCapacityUsagePercentage | ||
- DatabaseMemoryUsageCountedForEvictPercentage | ||
# - DatabaseMemoryUsagePercentage | ||
# - DB0AverageTTL | ||
# - EngineCPUUtilization | ||
# - EvalBasedCmds | ||
# - Evictions | ||
# - FreeableMemory | ||
# - GetTypeCmds | ||
# - GetTypeCmdsLatency | ||
# - HashBasedCmds | ||
- IamAuthenticationExpirations | ||
- IamAuthenticationThrottling | ||
# - IsMaster | ||
- KeyAuthorizationFailures | ||
# - KeyBasedCmds | ||
# - KeyBasedCmdsLatency | ||
- KeysTracked | ||
# - ListBasedCmds | ||
- ListBasedCmdsLatency | ||
# - MasterLinkHealthStatus | ||
# - MemoryFragmentationRatio | ||
- NetworkBandwidthInAllowanceExceeded | ||
- NetworkBandwidthOutAllowanceExceeded | ||
# - NetworkBytesIn | ||
# - NetworkBytesOut | ||
- NetworkConntrackAllowanceExceeded | ||
- NetworkMaxBytesIn | ||
- NetworkMaxBytesOut | ||
- NetworkMaxPacketsIn | ||
- NetworkMaxPacketsOut | ||
# - NetworkPacketsIn | ||
# - NetworkPacketsOut | ||
- NetworkPacketsPerSecondAllowanceExceeded | ||
# - Reclaimed | ||
# - ReplicationBytes | ||
# - ReplicationLag | ||
# - SaveInProgress | ||
# - SetTypeCmds | ||
# - SetTypeCmdsLatency | ||
# - SortedSetBasedCmds | ||
# - SortedSetBasedCmdsLatency | ||
# - StringBasedCmds | ||
# - StringBasedCmdsLatency | ||
# - SwapUsage | ||
- TrafficManagementActive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
DIE() { echo "$*" 1>&2; exit 1; } | ||
|
||
BUCKET=${BUCKET:-observeinc} | ||
|
||
FILTERS=recommended.yaml | ||
|
||
for FILTER in ${FILTERS}; do \ | ||
curl -s https://${BUCKET}.s3.amazonaws.com/cloudwatchmetrics/filters/${FILTER} > modules/metricstream/filters/${FILTER} | ||
done; | ||
|