Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Sep 27, 2024
1 parent afc7613 commit aa7afa6
Show file tree
Hide file tree
Showing 11 changed files with 8,764 additions and 8,569 deletions.
2,276 changes: 1,212 additions & 1,064 deletions functional_tests/testdata/expected_kind_values/expected_internal_metrics.yaml

Large diffs are not rendered by default.

2,610 changes: 1,305 additions & 1,305 deletions functional_tests/testdata_histogram/expected/v1.25/controller_manager_metrics.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ resourceMetrics:
stringValue: kind-control-plane
- key: k8s.pod.name
value:
stringValue: coredns-787d4945fb-jfz8p
stringValue: coredns-565d847f94-dxx72
- key: k8s.pod.uid
value:
stringValue: 485281d9-4cec-4fa4-9047-3746fa550353
stringValue: 929b5afc-e030-4dc3-933a-5d806ddc074e
- key: net.host.name
value:
stringValue: 10.244.0.4
Expand Down Expand Up @@ -49,7 +49,7 @@ resourceMetrics:
schemaUrl: https://opentelemetry.io/schemas/1.6.1
scopeMetrics:
- metrics:
- description: Size of the EDNS0 UDP buffer in bytes (64K for TCP) per zone and protocol.
- description: Size of the returned response in bytes.
histogram:
aggregationTemporality: 2
dataPoints:
Expand All @@ -65,9 +65,9 @@ resourceMetrics:
stringValue: .
bucketCounts:
- "0"
- "8"
- "1"
- "0"
- "12"
- "3"
- "0"
- "0"
- "0"
Expand All @@ -79,7 +79,7 @@ resourceMetrics:
- "0"
- "0"
- "0"
count: "9"
count: "15"
explicitBounds:
- 0
- 100
Expand All @@ -96,95 +96,40 @@ resourceMetrics:
- 48000
- 64000
startTimeUnixNano: "1000000"
sum: 653
sum: 2409
timeUnixNano: "1000000"
metadata:
- key: prometheus.type
value:
stringValue: histogram
name: coredns_dns_request_size_bytes
- description: Histogram of the time (in seconds) each request took per zone.
histogram:
aggregationTemporality: 2
dataPoints:
- attributes:
- key: server
value:
stringValue: dns://:53
- key: zone
value:
stringValue: .
bucketCounts:
- "5"
- "0"
- "0"
- "1"
- "0"
- "1"
- "1"
- "0"
- "1"
- "0"
- "0"
- "0"
- "0"
- "0"
- "0"
- "0"
- "0"
count: "9"
explicitBounds:
- 0.00025
- 0.0005
- 0.001
- 0.002
- 0.004
- 0.008
- 0.016
- 0.032
- 0.064
- 0.128
- 0.256
- 0.512
- 1.024
- 2.048
- 4.096
- 8.192
startTimeUnixNano: "1000000"
sum: 0.080724527
timeUnixNano: "1000000"
metadata:
- key: prometheus.type
value:
stringValue: histogram
name: coredns_dns_request_duration_seconds
name: coredns_dns_response_size_bytes
- description: Histogram of the time (in seconds) each request took.
histogram:
aggregationTemporality: 2
dataPoints:
- bucketCounts:
- "0"
- "125"
- "0"
- "136"
- "3"
- "0"
- "0"
- "0"
count: "125"
count: "139"
explicitBounds:
- 0.00025
- 0.0025
- 0.025
- 0.25
- 2.5
startTimeUnixNano: "1000000"
sum: 0.06260746900000001
sum: 0.07822562700000006
timeUnixNano: "1000000"
metadata:
- key: prometheus.type
value:
stringValue: histogram
name: coredns_health_request_duration_seconds
- description: Size of the returned response in bytes.
- description: Size of the EDNS0 UDP buffer in bytes (64K for TCP) per zone and protocol.
histogram:
aggregationTemporality: 2
dataPoints:
Expand All @@ -200,9 +145,9 @@ resourceMetrics:
stringValue: .
bucketCounts:
- "0"
- "12"
- "3"
- "0"
- "8"
- "1"
- "0"
- "0"
- "0"
Expand All @@ -214,7 +159,7 @@ resourceMetrics:
- "0"
- "0"
- "0"
count: "9"
count: "15"
explicitBounds:
- 0
- 100
Expand All @@ -231,13 +176,68 @@ resourceMetrics:
- 48000
- 64000
startTimeUnixNano: "1000000"
sum: 1407
sum: 1123
timeUnixNano: "1000000"
metadata:
- key: prometheus.type
value:
stringValue: histogram
name: coredns_dns_response_size_bytes
name: coredns_dns_request_size_bytes
- description: Histogram of the time (in seconds) each request took per zone.
histogram:
aggregationTemporality: 2
dataPoints:
- attributes:
- key: server
value:
stringValue: dns://:53
- key: zone
value:
stringValue: .
bucketCounts:
- "9"
- "0"
- "0"
- "0"
- "1"
- "3"
- "0"
- "1"
- "1"
- "0"
- "0"
- "0"
- "0"
- "0"
- "0"
- "0"
- "0"
count: "15"
explicitBounds:
- 0.00025
- 0.0005
- 0.001
- 0.002
- 0.004
- 0.008
- 0.016
- 0.032
- 0.064
- 0.128
- 0.256
- 0.512
- 1.024
- 2.048
- 4.096
- 8.192
startTimeUnixNano: "1000000"
sum: 0.08552541900000002
timeUnixNano: "1000000"
metadata:
- key: prometheus.type
value:
stringValue: histogram
name: coredns_dns_request_duration_seconds
- description: Histogram of the time each request took.
histogram:
aggregationTemporality: 2
Expand All @@ -253,6 +253,7 @@ resourceMetrics:
- "0"
- "0"
- "0"
- "0"
- "1"
- "0"
- "0"
Expand All @@ -266,7 +267,6 @@ resourceMetrics:
- "0"
- "0"
- "0"
- "0"
count: "2"
explicitBounds:
- 0.00025
Expand All @@ -286,7 +286,7 @@ resourceMetrics:
- 4.096
- 8.192
startTimeUnixNano: "1000000"
sum: 0.011487233
sum: 0.02882215
timeUnixNano: "1000000"
- attributes:
- key: rcode
Expand All @@ -301,7 +301,7 @@ resourceMetrics:
- "0"
- "0"
- "0"
- "1"
- "3"
- "0"
- "0"
- "1"
Expand All @@ -313,7 +313,7 @@ resourceMetrics:
- "0"
- "0"
- "0"
count: "2"
count: "4"
explicitBounds:
- 0.00025
- 0.0005
Expand All @@ -332,7 +332,7 @@ resourceMetrics:
- 4.096
- 8.192
startTimeUnixNano: "1000000"
sum: 0.06821759699999999
sum: 0.055191014000000004
timeUnixNano: "1000000"
metadata:
- key: prometheus.type
Expand All @@ -341,4 +341,4 @@ resourceMetrics:
name: coredns_forward_request_duration_seconds
scope:
name: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver
version: v0.109.0
version: v0.110.0
Loading

0 comments on commit aa7afa6

Please sign in to comment.