qonto / prometheus-rds-exporter

Prometheus exporter for AWS RDS
MIT License
60 stars 10 forks source link

Question: RDS in multiple regions - single exporter deployment #194

Closed lunarangelo closed 1 month ago

lunarangelo commented 2 months ago

Is it possible to retrieve metrics from multiple RDS instances across multiple AWS regions in a single installation or deployment?

Thank you.

qfritz commented 1 month ago

Hello,

This exporter uses AWS API in its deployment, therefore it cannot do more than what the API provides in the current environment with aws rds describe-db-instances.

However, using the provided chart, you may declare multiple environment in your values.yaml like in the example below:

german-monitoring: #the name here doesn't matter
  env:
    AWS_DEFAULT_REGION: eu-central-1
    AWS_REGION: eu-central-1
    PROMETHEUS_RDS_EXPORTER_DEBUG: true
    PROMETHEUS_RDS_EXPORTER_AWS_ASSUME_ROLE_ARN: arn:aws:iam::.....

  serviceAccount:
    annotations:
      eks.amazonaws.com/role-arn: arn:aws:iam::.....

spanish-monitoring:
  env:
    AWS_DEFAULT_REGION: eu-south-2
    AWS_REGION: eu-south-2
    PROMETHEUS_RDS_EXPORTER_DEBUG: false
    PROMETHEUS_RDS_EXPORTER_AWS_ASSUME_ROLE_ARN: arn:aws:iam::.....

  serviceAccount:
    annotations:
      eks.amazonaws.com/role-arn: arn:aws:iam::.....

Does it answer your question?

qfritz commented 1 month ago

Closing in favour of similar issue: https://github.com/qonto/prometheus-rds-exporter/issues/130