-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal/comparetest] Add support for all metric types
- Loading branch information
Showing
26 changed files
with
994 additions
and
22 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
.chloggen/comparetest-add-support-for-all-metric-types.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: internal/comparetest | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Add support for all metric types | ||
|
||
# One or more tracking issues related to the change | ||
issues: [17538] |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
internal/comparetest/testdata/metrics/exp-histogram-data-point-count-mismatch/actual.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"scopeMetrics": [ | ||
{ | ||
"metrics": [ | ||
{ | ||
"name": "exponential_histogram.one", | ||
"exponentialHistogram": { | ||
"dataPoints": [ | ||
{ | ||
"count": 654 | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
22 changes: 22 additions & 0 deletions
22
internal/comparetest/testdata/metrics/exp-histogram-data-point-count-mismatch/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"scopeMetrics": [ | ||
{ | ||
"metrics": [ | ||
{ | ||
"name": "exponential_histogram.one", | ||
"exponentialHistogram": { | ||
"dataPoints": [ | ||
{ | ||
"count": 123 | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
...omparetest/testdata/metrics/exp-histogram-data-point-negative-offset-mismatch/actual.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"scopeMetrics": [ | ||
{ | ||
"metrics": [ | ||
{ | ||
"name": "exponential_histogram.one", | ||
"exponentialHistogram": { | ||
"dataPoints": [ | ||
{ | ||
"negative": { | ||
"offset": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
...paretest/testdata/metrics/exp-histogram-data-point-negative-offset-mismatch/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"scopeMetrics": [ | ||
{ | ||
"metrics": [ | ||
{ | ||
"name": "exponential_histogram.one", | ||
"exponentialHistogram": { | ||
"dataPoints": [ | ||
{ | ||
"negative": { | ||
"offset": 10 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
...mparetest/testdata/metrics/exp-histogram-data-point-positive-buckets-mismatch/actual.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"scopeMetrics": [ | ||
{ | ||
"metrics": [ | ||
{ | ||
"name": "exponential_histogram.one", | ||
"exponentialHistogram": { | ||
"dataPoints": [ | ||
{ | ||
"positive": { | ||
"bucketCounts": [3, 2, 1] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
...aretest/testdata/metrics/exp-histogram-data-point-positive-buckets-mismatch/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"scopeMetrics": [ | ||
{ | ||
"metrics": [ | ||
{ | ||
"name": "exponential_histogram.one", | ||
"exponentialHistogram": { | ||
"dataPoints": [ | ||
{ | ||
"positive": { | ||
"bucketCounts": [1, 2, 3] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
22 changes: 22 additions & 0 deletions
22
internal/comparetest/testdata/metrics/exp-histogram-data-point-sum-mismatch/actual.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"scopeMetrics": [ | ||
{ | ||
"metrics": [ | ||
{ | ||
"name": "exponential_histogram.one", | ||
"exponentialHistogram": { | ||
"dataPoints": [ | ||
{ | ||
"sum": 654.321000 | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
22 changes: 22 additions & 0 deletions
22
internal/comparetest/testdata/metrics/exp-histogram-data-point-sum-mismatch/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"scopeMetrics": [ | ||
{ | ||
"metrics": [ | ||
{ | ||
"name": "exponential_histogram.one", | ||
"exponentialHistogram": { | ||
"dataPoints": [ | ||
{ | ||
"sum": 123.456000 | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
22 changes: 22 additions & 0 deletions
22
internal/comparetest/testdata/metrics/histogram-data-point-buckets-mismatch/actual.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"scopeMetrics": [ | ||
{ | ||
"metrics": [ | ||
{ | ||
"name": "histogram.one", | ||
"histogram": { | ||
"dataPoints": [ | ||
{ | ||
"bucketCounts": [3, 2, 1] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
22 changes: 22 additions & 0 deletions
22
internal/comparetest/testdata/metrics/histogram-data-point-buckets-mismatch/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"scopeMetrics": [ | ||
{ | ||
"metrics": [ | ||
{ | ||
"name": "histogram.one", | ||
"histogram": { | ||
"dataPoints": [ | ||
{ | ||
"bucketCounts": [1, 2, 3] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.