Skip to content

prometheus

Prometheus storage, used to define open-source Prometheus or Prometheus-compatible endpoint metadata for query planning.

Kind: prometheus

Every element shares the standard envelope kind · metadata · schema.

spec fields

FieldTypeRequiredDefaultDescription
endpointstringyesThe endpoint URL of Prometheus or a Prometheus-compatible service, for example http://prometheus:9090.
api_prefixstring/api/v1Prometheus HTTP API prefix. Defaults to /api/v1.
default_query_typeenum: instant, rangeinstantDefault PromQL query type. instant means instant query and range means range query.
default_stepstringDefault step for range queries, for example 60s or 1m.
lookback_deltastringDefault PromQL lookback window used by query planning, for example 5m.
tenantstringOptional tenant identifier for multi-tenant Prometheus-compatible systems.
tenant_headerstringTenant HTTP header name used by multi-tenant systems, for example X-Scope-OrgID.
credential_refstringCredential reference, for example secret://prometheus-prod-readonly. Plaintext usernames, passwords, or tokens must not be stored in UModel.
tls_verifybooleantrueWhether TLS certificates should be verified. Defaults to true.
external_labelsmap<string, string>Prometheus external labels used to enrich query-planning context or describe result origin.
headersmap<string, string>Non-sensitive HTTP headers for tenant or routing context. Authentication secrets must not be stored here.
propertiesmap<string, string>Additional non-sensitive Prometheus configuration, stored as key-value pairs.
tagsmap<string, string>Tags used to describe this Prometheus storage.

Released under the Apache-2.0 License.