Skip to content

Commit

Permalink
ci: sync metric filters
Browse files Browse the repository at this point in the history
  • Loading branch information
jta committed May 22, 2024
1 parent 94be065 commit 71ff8e0
Show file tree
Hide file tree
Showing 4 changed files with 283 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ jobs:
VERSION: latest
AWS_REGION: ${{ matrix.region }}

- name: sync metric filters
if: github.event_name == 'workflow_dispatch'
run: make upload-filters
env:
VERSION: ${{ needs.github-release.outputs.VERSION }}

- name: delete pre-releases
uses: dev-drprasad/delete-older-releases@v0.3.4
with:
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,9 @@ parameters:
@echo "|-----------------|---------|-------------|"
@python3 -c 'import sys, yaml, json; y=yaml.safe_load(sys.stdin.read()); print(json.dumps(y))' < $(SAM_BUILD_DIR)/$(APP)/$(AWS_REGION)/template.yaml | jq -r '.Parameters | to_entries[] | "| \(if .value.Default then "" else "**" end)`\(.key)`\(if .value.Default then "" else "**" end) | \(.value.Type) | \(.value.Description | gsub("[\\n\\t]"; " ")) |"'

.PHONY: help go-lint go-lint-all go-test sam-validate sam-validate-all sam-build sam-package sam-publish sam-package-all sam-publish-all build-App build-Forwarder
## upload-filters: upload cloudwatch metric filters
upload-filters:
$(call check_var,S3_BUCKET_PREFIX)
@aws s3 sync static s3://$(S3_BUCKET_PREFIX)/ --acl public-read --metadata Version=$(VERSION)

.PHONY: help go-lint go-lint-all go-test sam-validate sam-validate-all sam-build sam-package sam-publish sam-package-all sam-publish-all build-App build-Forwarder
1 change: 1 addition & 0 deletions static/cloudformation/filters/full.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ExcludeFilters: []
271 changes: 271 additions & 0 deletions static/cloudformation/filters/recommended.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,271 @@
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
# - NewConnections
- NonKeyTypeCmds
- NonKeyTypeCmdsLatency
# - Reclaimed
# - ReplicationBytes
# - ReplicationLag
# - SaveInProgress
# - SetTypeCmds
# - SetTypeCmdsLatency
# - SortedSetBasedCmds
# - SortedSetBasedCmdsLatency
# - StringBasedCmds
# - StringBasedCmdsLatency
# - SwapUsage
- TrafficManagementActive

0 comments on commit 71ff8e0

Please sign in to comment.