GoogleCloudPlatform / prometheus-engine

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

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

Closed TheSpiritXIII closed 2 months ago

TheSpiritXIII commented 4 months 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.

For now, this is only settable at startup time. https://github.com/GoogleCloudPlatform/prometheus-engine/pull/1129 allows setting on runtime.