-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
design: control plane metrics monitoring
Signed-off-by: bitliu <bitliu@tencent.com>
- Loading branch information
Showing
48 changed files
with
2,685 additions
and
264 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,43 @@ | ||
// 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 { | ||
// 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"` | ||
// Host define the sink service hostname. | ||
Host string `json:"host"` | ||
// Protocol define the sink service protocol. | ||
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 { | ||
// Enable defines if enables the prometheus metrics in pull mode. Default is true. | ||
// | ||
// +optional | ||
// +kubebuilder:default=true | ||
Enable bool `json:"enable,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.