You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/controller/telemetry/collector.go
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ import (
4
4
"context"
5
5
"errors"
6
6
"fmt"
7
+
"os"
7
8
"runtime"
8
9
"sort"
9
10
"strings"
@@ -40,7 +41,7 @@ type ConfigurationGetter interface {
40
41
// Data is telemetry data.
41
42
//
42
43
//go:generate go run -tags generator github.com/nginx/telemetry-exporter/cmd/generator -type=Data -scheme -scheme-protocol=NGFProductTelemetry -scheme-df-datatype=ngf-product-telemetry
43
-
typeDatastruct {
44
+
typeDatastruct {//nolint //required to skip golangci-lint-full fieldalignment
44
45
// ImageSource tells whether the image was built by GitHub or locally (values are 'gha', 'local', or 'unknown')
45
46
ImageSourcestring
46
47
tel.Data// embedding is required by the generator.
@@ -68,6 +69,8 @@ type Data struct {
68
69
NginxOneConnectionEnabledbool
69
70
// InferencePoolCount is the number of InferencePools that are referenced by at least one Route.
70
71
InferencePoolCountint64
72
+
// BuildOS is the base operating system the control plane was built on (e.g. alpine, ubi).
73
+
BuildOSstring
71
74
}
72
75
73
76
// NGFResourceCounts stores the counts of all relevant resources that NGF processes and generates configuration from.
@@ -123,6 +126,8 @@ type DataCollectorConfig struct {
123
126
Versionstring
124
127
// ImageSource is the source of the NGF image.
125
128
ImageSourcestring
129
+
// BuildOS is the base operating system the control plane was built on (e.g. alpine, ubi).
130
+
BuildOSstring
126
131
// Flags contains the command-line NGF flag keys and values.
127
132
Flags config.Flags
128
133
// NginxOneConsoleConnection is a boolean that indicates whether the connection to the Nginx One Console is enabled.
0 commit comments