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
+8-24Lines changed: 8 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -41,33 +41,17 @@ type ConfigurationGetter interface {
41
41
//
42
42
//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
43
typeDatastruct {
44
-
// ImageSource tells whether the image was built by GitHub or locally (values are 'gha', 'local', or 'unknown')
45
44
ImageSourcestring
46
-
tel.Data// embedding is required by the generator.
47
-
// FlagNames contains the command-line flag names.
48
-
FlagNames []string
49
-
// FlagValues contains the values of the command-line flags, where each value corresponds to the flag from FlagNames
50
-
// at the same index.
51
-
// Each value is either 'true' or 'false' for boolean flags and 'default' or 'user-defined' for non-boolean flags.
52
-
FlagValues []string
53
-
// SnippetsFiltersDirectives contains the directive-context strings of all applied SnippetsFilters.
54
-
// Both lists are ordered first by count, then by lexicographical order of the context string,
55
-
// then lastly by directive string.
56
-
SnippetsFiltersDirectives []string
57
-
// SnippetsFiltersDirectivesCount contains the count of the directive-context strings, where each count
58
-
// corresponds to the string from SnippetsFiltersDirectives at the same index.
59
-
// Both lists are ordered first by count, then by lexicographical order of the context string,
60
-
// then lastly by directive string.
45
+
BuildOSstring
46
+
tel.Data
47
+
FlagNames []string
48
+
FlagValues []string
49
+
SnippetsFiltersDirectives []string
61
50
SnippetsFiltersDirectivesCount []int64
62
-
NGFResourceCounts// embedding is required by the generator.
63
-
// NginxPodCount is the total number of Nginx data plane Pods.
64
-
NginxPodCountint64
65
-
// ControlPlanePodCount is the total number of NGF control plane Pods.
66
-
ControlPlanePodCountint64
67
-
// NginxOneConnectionEnabled is a boolean that indicates whether the connection to the Nginx One Console is enabled.
51
+
NGFResourceCounts
52
+
NginxPodCountint64
53
+
ControlPlanePodCountint64
68
54
NginxOneConnectionEnabledbool
69
-
// BuildOS is the OS the NGF and NGINX binary was built on.
70
-
BuildOSstring
71
55
}
72
56
73
57
// NGFResourceCounts stores the counts of all relevant resources that NGF processes and generates configuration from.
0 commit comments