Skip to main content
Version: v0.13 🚧

monitoring

monitoring can be used to define workspace-level monitoring configurations.

Attributes

Name and DescriptionTypeDefault ValueRequired
operatorMode
Whether the Prometheus instance installed in the cluster runs as a Kubernetes operator or not. This determines the different kinds of resources Kusion manages.
true | falsefalseoptional
monitorType
The kind of monitor to create. It only applies when operatorMode is set to True.
"Service" | "Pod""Service"optional
interval
The time interval which Prometheus scrapes metrics data. Only applicable when operator mode is set to true.
When operator mode is set to false, the scraping interval can only be set in the scraping job configuration, which kusion does not have permission to manage directly.
str30soptional
timeout
The timeout when Prometheus scrapes metrics data. Only applicable when operator mode is set to true.
When operator mode is set to false, the scraping timeout can only be set in the scraping job configuration, which kusion does not have permission to manage directly.
str15soptional
scheme
The scheme to scrape metrics from. Possible values are http and https.
"http" | "https"httpoptional

Examples

modules:
monitoring:
path: oci://ghcr.io/kusionstack/monitoring
version: 0.2.0
configs:
default:
operatorMode: True
monitorType: Pod
scheme: http
interval: 30s
timeout: 15s
low_frequency:
operatorMode: False
interval: 2m
timeout: 1m
projectSelector:
- foo
- bar
high_frequency:
monitorType: Service
interval: 10s
timeout: 5s
projectSelector:
- helloworld
- wordpress
- prometheus-sample-app