Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exporter: add namespace to internal metric label #684

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -25,7 +25,7 @@ import (
const (
// Special attribute key used by Ops Agent prometheus receiver to denote untyped
// prometheus metric. Internal use only.
GCPOpsAgentUntypedMetricKey = "prometheus_untyped_metric"
GCPOpsAgentUntypedMetricKey = "prometheus.googleapis.com/internal/untyped_metric"

gcpUntypedDoubleExportGateKey = "gcp.untyped_double_export"
)
Expand Down
@@ -1,61 +1,61 @@
{
"resourceMetrics":[
{
"resourceMetrics": [
{
"resource": {
"attributes": [
{
"key": "cloud.availability_zone",
"value": {
"stringValue": "us-central1-c"
"attributes": [
{
"key": "cloud.availability_zone",
"value": {
"stringValue": "us-central1-c"
}
},
{
"key": "service.name",
"value": {
"stringValue": "demo"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "10.92.5.2:15692"
}
}
},
{
"key": "service.name",
"value": {
"stringValue": "demo"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "10.92.5.2:15692"
}
}
]
]
},
"scopeMetrics":[
{
"scope":{},
"metrics":[
{
"name":"fake_untyped_metric",
"gauge":{
"dataPoints":[
"scopeMetrics": [
{
"scope": {},
"metrics": [
{
"name": "fake_untyped_metric",
"gauge": {
"dataPoints": [
{
"attributes":[
"attributes": [
{
"key":"ex_com_lemons_untyped",
"value":{
"stringValue":"13"
"key": "ex_com_lemons_untyped",
"value": {
"stringValue": "13"
}
},
{
"key":"prometheus_untyped_metric",
"value":{
"stringValue":"true"
"key": "prometheus.googleapis.com/internal/untyped_metric",
"value": {
"stringValue": "true"
}
}
],
"startTimeUnixNano":"1649443416286000000",
"timeUnixNano":"1649443516286000000",
"asDouble":3
"startTimeUnixNano": "1649443416286000000",
"timeUnixNano": "1649443516286000000",
"asDouble": 3
}
]
}
}
]
}
]
}
]
}
}
]
}
]
}
]
}
Expand Up @@ -8,7 +8,7 @@
"type": "workload.googleapis.com/fake_untyped_metric",
"labels": {
"ex_com_lemons_untyped": "13",
"prometheus_untyped_metric": "true"
"prometheus_googleapis_com_internal_untyped_metric": "true"
}
},
"resource": {
Expand Down Expand Up @@ -47,7 +47,7 @@
"key": "ex_com_lemons_untyped"
},
{
"key": "prometheus_untyped_metric"
"key": "prometheus_googleapis_com_internal_untyped_metric"
}
],
"metricKind": "GAUGE",
Expand Down