mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-21 11:48:53 +00:00
Add experimental to comment for StaticTargets
This commit is contained in:
parent
139fdacaf6
commit
d8bcab8d70
4 changed files with 6 additions and 4 deletions
Documentation
example/prometheus-operator-crd
pkg/client/monitoring/v1
|
@ -152,7 +152,7 @@ Endpoint defines a scrapeable endpoint serving Prometheus metrics.
|
|||
| honorLabels | HonorLabels chooses the metric's labels on collisions with target labels. | bool | false |
|
||||
| basicAuth | BasicAuth allow an endpoint to authenticate over basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints | *[BasicAuth](#basicauth) | false |
|
||||
| metricRelabelings | MetricRelabelConfigs to apply to samples before ingestion. | []*[RelabelConfig](#relabelconfig) | false |
|
||||
| staticTargets | StaticTargets with targets to scrape. | []string | false |
|
||||
| staticTargets | StaticTargets with targets to scrape. This is an experimental feature, it may change in any upcoming release in a breaking way. | []string | false |
|
||||
|
||||
[Back to TOC](#table-of-contents)
|
||||
|
||||
|
|
|
@ -141,7 +141,9 @@ spec:
|
|||
description: Timeout after which the scrape is ended
|
||||
type: string
|
||||
staticTargets:
|
||||
description: StaticTargets with targets to scrape.
|
||||
description: StaticTargets with targets to scrape. This is an
|
||||
experimental feature, it may change in any upcoming release
|
||||
in a breaking way.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
|
|
|
@ -541,7 +541,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
|
|||
},
|
||||
"staticTargets": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "StaticTargets with targets to scrape.",
|
||||
Description: "StaticTargets with targets to scrape. This is an experimental feature, it may change in any upcoming release in a breaking way.",
|
||||
Type: []string{"array"},
|
||||
Items: &spec.SchemaOrArray{
|
||||
Schema: &spec.Schema{
|
||||
|
|
|
@ -332,7 +332,7 @@ type Endpoint struct {
|
|||
BasicAuth *BasicAuth `json:"basicAuth,omitempty"`
|
||||
// MetricRelabelConfigs to apply to samples before ingestion.
|
||||
MetricRelabelConfigs []*RelabelConfig `json:"metricRelabelings,omitempty"`
|
||||
// StaticTargets with targets to scrape.
|
||||
// StaticTargets with targets to scrape. This is an experimental feature, it may change in any upcoming release in a breaking way.
|
||||
StaticTargets []string `json:"staticTargets,omitempty"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue