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
featuregate.WithRegisterDescription("When enabled, the receiver will emit the 'nginx.connections_current' metric as a nonmonotonic sum, rather than a gauge."),
Copy file name to clipboardExpand all lines: receiver/nginxreceiver/testdata/integration/expected.yaml
+3-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,8 @@ resourceMetrics:
12
12
isMonotonic: true
13
13
unit: connections
14
14
- description: The current number of nginx connections by state
15
-
gauge:
15
+
sum:
16
+
aggregationTemporality: 2
16
17
dataPoints:
17
18
- asInt: "1"
18
19
attributes:
@@ -38,6 +39,7 @@ resourceMetrics:
38
39
value:
39
40
stringValue: waiting
40
41
timeUnixNano: "1643729289485220000"
42
+
isMonotonic: false
41
43
name: nginx.connections_current
42
44
unit: connections
43
45
- description: The total number of handled connections. Generally, the parameter value is the same as nginx.connections_accepted unless some resource limits have been reached (for example, the worker_connections limit).
Copy file name to clipboardExpand all lines: receiver/nginxreceiver/testdata/scraper/expected.yaml
+3-2
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@ resourceMetrics:
12
12
isMonotonic: true
13
13
unit: connections
14
14
- description: The current number of nginx connections by state
15
-
gauge:
15
+
name: nginx.connections_current
16
+
sum:
17
+
aggregationTemporality: 2
16
18
dataPoints:
17
19
- asInt: "291"
18
20
attributes:
@@ -38,7 +40,6 @@ resourceMetrics:
38
40
value:
39
41
stringValue: writing
40
42
timeUnixNano: "1638471548185885000"
41
-
name: nginx.connections_current
42
43
unit: connections
43
44
- description: The total number of handled connections. Generally, the parameter value is the same as nginx.connections_accepted unless some resource limits have been reached (for example, the worker_connections limit).
Copy file name to clipboardExpand all lines: receiver/nginxreceiver/testdata/scraper/expected_with_connections_as_gauge.yaml
+2-3
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,7 @@ resourceMetrics:
12
12
isMonotonic: true
13
13
unit: connections
14
14
- description: The current number of nginx connections by state
15
-
name: nginx.connections_current
16
-
sum:
17
-
aggregationTemporality: 2
15
+
gauge:
18
16
dataPoints:
19
17
- asInt: "291"
20
18
attributes:
@@ -40,6 +38,7 @@ resourceMetrics:
40
38
value:
41
39
stringValue: writing
42
40
timeUnixNano: "1638471548185885000"
41
+
name: nginx.connections_current
43
42
unit: connections
44
43
- description: The total number of handled connections. Generally, the parameter value is the same as nginx.connections_accepted unless some resource limits have been reached (for example, the worker_connections limit).
0 commit comments