1
0
Fork 0
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:
Matthias Loibl 2018-04-09 12:27:42 +02:00
parent 139fdacaf6
commit d8bcab8d70
No known key found for this signature in database
GPG key ID: B1C7DF661ABB2C1A
4 changed files with 6 additions and 4 deletions
Documentation
example/prometheus-operator-crd
pkg/client/monitoring/v1

View file

@ -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)

View file

@ -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

View file

@ -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{

View file

@ -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"`
}