GoogleCloudPlatform / prometheus-engine

Google Cloud Managed Service for Prometheus libraries and manifests.
https://g.co/cloud/managedprometheus
Apache License 2.0
189 stars 86 forks source link

feat: allow loading rule-evaluator query options from config #1059

Open TheSpiritXIII opened 1 month ago

TheSpiritXIII commented 1 month ago

Pre-req: https://github.com/GoogleCloudPlatform/prometheus-engine/pull/1104

The following are now settable in the rule-evaluator Prometheus config:

google_cloud:
  query:
    project_id: []string
    generator_url: string
    credentials: string

When both CLI arguments and configurations are present, the CLI arguments will be the default and the set configurations will override the CLI arguments.