-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fixture based test for bool metrics
- Loading branch information
Showing
3 changed files
with
766 additions
and
0 deletions.
There are no files selected for viewing
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
65 changes: 65 additions & 0 deletions
65
exporter/collector/integrationtest/testdata/fixtures/metrics/boolean_gauge_metrics.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,65 @@ | ||
{ | ||
"resourceMetrics": [ | ||
{ | ||
"resource": { | ||
"attributes": [ | ||
{ | ||
"key": "service.name", | ||
"value": { | ||
"stringValue": "unknown_service:sample" | ||
} | ||
}, | ||
{ | ||
"key": "telemetry.sdk.language", | ||
"value": { | ||
"stringValue": "go" | ||
} | ||
}, | ||
{ | ||
"key": "telemetry.sdk.name", | ||
"value": { | ||
"stringValue": "opentelemetry" | ||
} | ||
}, | ||
{ | ||
"key": "telemetry.sdk.version", | ||
"value": { | ||
"stringValue": "1.16.0" | ||
} | ||
} | ||
] | ||
}, | ||
"scopeMetrics": [ | ||
{ | ||
"scope": { | ||
"name": "github.com/GoogleCloudPlatform/opentelemetry-operations-go/example/collector/metric" | ||
}, | ||
"metrics": [ | ||
{ | ||
"name": "observer-boolean-collector", | ||
"unit": "{gcp.BOOL}", | ||
"gauge": { | ||
"dataPoints": [ | ||
{ | ||
"attributes": [ | ||
{ | ||
"key": "key", | ||
"value": { | ||
"stringValue": "value" | ||
} | ||
} | ||
], | ||
"startTimeUnixNano": "11651379494838206464", | ||
"timeUnixNano": "1687377293673694987", | ||
"asInt": "0" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"schemaUrl": "https://opentelemetry.io/schemas/1.17.0" | ||
} | ||
] | ||
} |
Oops, something went wrong.