monitoring
monitoring
can be used to define workspace-level monitoring configurations.
Attributes
Name and Description | Type | Default Value | Required |
---|---|---|---|
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 | false | false | optional |
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. | str | 30s | optional |
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. | str | 15s | optional |
scheme The scheme to scrape metrics from. Possible values are http and https. | "http" | "https" | http | optional |
Examples
modules:
kusionstack/monitoring@0.1.0:
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