Skip to content

Commit 39e5683

Browse files
committed
add wireguard prometheus stats feature flag
- also add .gitignore for IDE files (copied over from felix repo)
1 parent 586917f commit 39e5683

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@
1616
.go-pkg-cache/
1717
Makefile.common*
1818
bin/
19+
20+
# IDE files
21+
/.idea/
22+
/.vscode/

pkg/apis/projectcalico/v3/felixconfig.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ type FelixConfigurationSpec struct {
230230
PrometheusGoMetricsEnabled *bool `json:"prometheusGoMetricsEnabled,omitempty"`
231231
// PrometheusProcessMetricsEnabled disables process metrics collection, which the Prometheus client does by default, when
232232
// set to false. This reduces the number of metrics reported, reducing Prometheus load. [Default: true]
233-
PrometheusProcessMetricsEnabled *bool `json:"prometheusProcessMetricsEnabled,omitempty"`
233+
PrometheusProcessMetricsEnabled *bool `json:"prometheusProcessMetricsEnabled,omitempty"`
234+
PrometheusWireGuardMetricsEnabled *bool `json:"prometheusWireGuardMetricsEnabled,omitempty"`
234235

235236
// FailsafeInboundHostPorts is a list of UDP/TCP ports and CIDRs that Felix will allow incoming traffic to host endpoints
236237
// on irrespective of the security policy. This is useful to avoid accidentally cutting off a host with incorrect configuration.

pkg/apis/projectcalico/v3/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/openapi/openapi_generated.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)