Skip to content

Commit

Permalink
Adding docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rivToadd committed Mar 1, 2024
1 parent 62db99b commit 3cc85e9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apis/v1alpha1/opentelemetrycollector_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ type MetricsConfigSpec struct {
//
// +optional
// +kubebuilder:validation:Optional
// Deprecated: use Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations instead.
// Deprecated: use "OpenTelemetryCollector.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations" instead.
DisablePrometheusAnnotations bool `json:"DisablePrometheusAnnotations,omitempty"`
// DisableAutomaticPrometheusAnnotations controls the automatic addition of default Prometheus annotations
// ('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.io/path')
Expand Down
12 changes: 11 additions & 1 deletion bundle/manifests/opentelemetry.io_opentelemetrycollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3870,7 +3870,12 @@ spec:
DisablePrometheusAnnotations:
description: DisablePrometheusAnnotations controls the automatic
addition of default Prometheus annotations ('prometheus.io/scrape',
'prometheus.io/port', and 'prometheus.io/path')
'prometheus.io/port', and 'prometheus.
type: boolean
disableAutomaticPrometheusAnnotations:
description: DisableAutomaticPrometheusAnnotations controls
the automatic addition of default Prometheus annotations
('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.io/path')
type: boolean
enableMetrics:
description: EnableMetrics specifies if ServiceMonitor or
Expand Down Expand Up @@ -5214,6 +5219,11 @@ spec:
DisablePrometheusAnnotations:
description: DisablePrometheusAnnotations controls the
automatic addition of default Prometheus annotations
('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.
type: boolean
disableAutomaticPrometheusAnnotations:
description: DisableAutomaticPrometheusAnnotations controls
the automatic addition of default Prometheus annotations
('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.io/path')
type: boolean
enableMetrics:
Expand Down
12 changes: 11 additions & 1 deletion config/crd/bases/opentelemetry.io_opentelemetrycollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3867,7 +3867,12 @@ spec:
DisablePrometheusAnnotations:
description: DisablePrometheusAnnotations controls the automatic
addition of default Prometheus annotations ('prometheus.io/scrape',
'prometheus.io/port', and 'prometheus.io/path')
'prometheus.io/port', and 'prometheus.
type: boolean
disableAutomaticPrometheusAnnotations:
description: DisableAutomaticPrometheusAnnotations controls
the automatic addition of default Prometheus annotations
('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.io/path')
type: boolean
enableMetrics:
description: EnableMetrics specifies if ServiceMonitor or
Expand Down Expand Up @@ -5211,6 +5216,11 @@ spec:
DisablePrometheusAnnotations:
description: DisablePrometheusAnnotations controls the
automatic addition of default Prometheus annotations
('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.
type: boolean
disableAutomaticPrometheusAnnotations:
description: DisableAutomaticPrometheusAnnotations controls
the automatic addition of default Prometheus annotations
('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.io/path')
type: boolean
enableMetrics:
Expand Down
18 changes: 16 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -17815,7 +17815,14 @@ Metrics defines the metrics configuration for operands.
<td><b>DisablePrometheusAnnotations</b></td>
<td>boolean</td>
<td>
DisablePrometheusAnnotations controls the automatic addition of default Prometheus annotations ('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.io/path')<br/>
DisablePrometheusAnnotations controls the automatic addition of default Prometheus annotations ('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>disableAutomaticPrometheusAnnotations</b></td>
<td>boolean</td>
<td>
DisableAutomaticPrometheusAnnotations controls the automatic addition of default Prometheus annotations ('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.io/path')<br/>
</td>
<td>false</td>
</tr><tr>
Expand Down Expand Up @@ -20325,7 +20332,14 @@ Metrics defines the metrics configuration for operands.
<td><b>DisablePrometheusAnnotations</b></td>
<td>boolean</td>
<td>
DisablePrometheusAnnotations controls the automatic addition of default Prometheus annotations ('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.io/path')<br/>
DisablePrometheusAnnotations controls the automatic addition of default Prometheus annotations ('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>disableAutomaticPrometheusAnnotations</b></td>
<td>boolean</td>
<td>
DisableAutomaticPrometheusAnnotations controls the automatic addition of default Prometheus annotations ('prometheus.io/scrape', 'prometheus.io/port', and 'prometheus.io/path')<br/>
</td>
<td>false</td>
</tr><tr>
Expand Down

0 comments on commit 3cc85e9

Please sign in to comment.