forked from envoyproxy/gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
design(docs/api): control plane metrics monitoring
Signed-off-by: bitliu <[email protected]>
- Loading branch information
Showing
13 changed files
with
826 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Copyright Envoy Gateway Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// The full text of the Apache license is available in the LICENSE file at | ||
// the root of the repo. | ||
|
||
package v1alpha1 | ||
|
||
// EnvoyGatewayMetrics defines control plane push/pull metrics configurations. | ||
type EnvoyGatewayMetrics struct { | ||
// Address defines the address of Envoy Gateway Metrics Server. | ||
Address *EnvoyGatewayMetricsAddress | ||
// Sinks defines the metric sinks where metrics are sent to. | ||
Sinks []EnvoyGatewayMetricSink `json:"sinks,omitempty"` | ||
// Prometheus defines the configuration for prometheus endpoint. | ||
Prometheus *EnvoyGatewayPrometheusProvider `json:"prometheus,omitempty"` | ||
} | ||
|
||
// EnvoyGatewayMetricSink defines control plane | ||
// metric sinks where metrics are sent to. | ||
type EnvoyGatewayMetricSink struct { | ||
// Type defines the metric sink type. | ||
// EG control plane currently supports OpenTelemetry. | ||
// +kubebuilder:validation:Enum=OpenTelemetry | ||
// +kubebuilder:default=OpenTelemetry | ||
Type MetricSinkType `json:"type"` | ||
// OpenTelemetry defines the configuration for OpenTelemetry sink. | ||
// It's required if the sink type is OpenTelemetry. | ||
OpenTelemetry *EnvoyGatewayOpenTelemetrySink `json:"openTelemetry,omitempty"` | ||
} | ||
|
||
type EnvoyGatewayOpenTelemetrySink struct { | ||
// Host define the sink service hostname. | ||
Host string `json:"host"` | ||
// Protocol define the sink service protocol. | ||
// +kubebuilder:validation:Enum=grpc;http | ||
Protocol string `json:"protocol"` | ||
// Port defines the port the sink service is exposed on. | ||
// | ||
// +optional | ||
// +kubebuilder:validation:Minimum=0 | ||
// +kubebuilder:default=4317 | ||
Port int32 `json:"port,omitempty"` | ||
} | ||
|
||
// EnvoyGatewayPrometheusProvider will expose prometheus endpoint in pull mode. | ||
type EnvoyGatewayPrometheusProvider struct { | ||
// Disable defines if disables the prometheus metrics in pull mode. | ||
// | ||
Disable bool `json:"disable,omitempty"` | ||
} | ||
|
||
// EnvoyGatewayMetricsAddress defines the Envoy Gateway Metrics Address configuration. | ||
type EnvoyGatewayMetricsAddress struct { | ||
// Port defines the port the metrics server is exposed on. | ||
// | ||
// +optional | ||
// +kubebuilder:validation:Minimum=0 | ||
// +kubebuilder:default=19001 | ||
Port int `json:"port,omitempty"` | ||
// Host defines the metrics server hostname. | ||
// | ||
// +optional | ||
// +kubebuilder:default="0.0.0.0" | ||
Host string `json:"host,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.