Skip to content

Commit

Permalink
update untyped fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Apr 23, 2024
1 parent dfe917a commit 0f075c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
Expand Up @@ -350,11 +350,7 @@ var MetricsTestCases = []TestCase{
Name: "[GMP] Untyped Gauge becomes a GCM Gauge and a Cumulative with /unknown and /unknown:counter suffixes",
OTLPInputFixturePath: "testdata/fixtures/metrics/untyped_gauge.json",
ExpectFixturePath: "testdata/fixtures/metrics/untyped_gauge_gmp_expect.json",
ConfigureCollector: func(cfg *collector.Config) {
configureGMPCollector(cfg)
//nolint:errcheck
featuregate.GlobalRegistry().Set("gcp.untypedDoubleExport", true)
},
ConfigureCollector: configureGMPCollector,
// prometheus_target is not supported by the SDK
SkipForSDK: true,
},
Expand Down
Expand Up @@ -38,20 +38,22 @@
"value": {
"stringValue": "13"
}
},
{
"key": "prometheus.googleapis.com/internal/untyped_metric",
"value": {
"stringValue": "true"
}
}
],
"startTimeUnixNano": "1649443416286000000",
"timeUnixNano": "1649443516286000000",
"asDouble": 3
}
]
}
},
"metadata": [
{
"key": "prometheus.type",
"value": {
"stringValue": "unknown"
}
}
]
}
]
}
Expand Down
Expand Up @@ -7,8 +7,7 @@
"metric": {
"type": "workload.googleapis.com/fake_untyped_metric",
"labels": {
"ex_com_lemons_untyped": "13",
"prometheus_googleapis_com_internal_untyped_metric": "true"
"ex_com_lemons_untyped": "13"
}
},
"resource": {
Expand Down Expand Up @@ -45,9 +44,6 @@
"labels": [
{
"key": "ex_com_lemons_untyped"
},
{
"key": "prometheus_googleapis_com_internal_untyped_metric"
}
],
"metricKind": "GAUGE",
Expand Down

0 comments on commit 0f075c3

Please sign in to comment.