Skip to content

Commit

Permalink
ROX-15136: filter aws metrics by cluster name (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
stehessel authored Apr 11, 2023
1 parent 7f665da commit f42db1e
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 216 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,215 +4,134 @@ metadata:
name: cloudwatch-exporter-config
namespace: {{ include "cloudwatch.namespace" . }}
data:
config.yaml: |-
region: us-east-1
metrics:
- aws_metric_name: DatabaseConnections
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: ServerlessDatabaseCapacity
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: ACUUtilization
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: FreeableMemory
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: CPUUtilization
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: ReadLatency
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: ReadThroughput
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: WriteLatency
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: WriteThroughput
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: NetworkThroughput
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: AuroraReplicaLag
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: MaximumUsedTransactionIDs
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: TransactionLogsDiskUsage
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: Deadlocks
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
- aws_metric_name: BufferCacheHitRatio
aws_namespace: AWS/RDS
aws_dimensions:
- DBInstanceIdentifier
aws_statistics:
- Average
- Maximum
- Minimum
aws_extended_statistics:
- p90
- p95
- p99
use_get_metric_data: true
config.yml: |-
apiVersion: v1alpha1
discovery:
jobs:
- type: rds
regions:
- us-east-1
searchTags:
- key: DataplaneClusterName
value: ^{{ .Values.clusterName }}$
metrics:
- name: DatabaseConnections
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: ServerlessDatabaseCapacity
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: ACUUtilization
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: FreeableMemory
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: CPUUtilization
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: ReadLatency
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: ReadThroughput
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: WriteLatency
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: WriteThroughput
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: NetworkThroughput
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: AuroraReplicaLag
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: MaximumUsedTransactionIDs
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: TransactionLogsDiskUsage
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: Deadlocks
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
- name: BufferCacheHitRatio
statistics:
- Average
- Maximum
- Minimum
- p90
- p95
- p99
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ spec:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
args:
- "--config.file=/tmp/config.yml"
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
Expand All @@ -41,12 +43,11 @@ spec:
name: rhacs-cloudwatch-exporter
key: AWS_SECRET_ACCESS_KEY
volumeMounts:
- mountPath: /config/config.yml
- mountPath: /tmp
name: config
subPath: config.yaml
ports:
- name: monitoring
containerPort: 9106
containerPort: 5000
volumes:
- name: config
configMap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ aws:

clusterName: ""
environment: ""
image: "quay.io/prometheus/cloudwatch-exporter:v0.15.1"
image: "ghcr.io/nerdswords/yet-another-cloudwatch-exporter:v0.48.0-alpha"

0 comments on commit f42db1e

Please sign in to comment.