Hi,
First of all, thank you for this exporter, (and the others) that help me monitoring Azure everyday.
I got a message when lauching this with the default example.yaml config file :
"udb-deployment-method" is not a valid label name for metric "azure_resources_tags"
Full error :
2024/10/04 16:00:39 http: panic serving [::1]:38526: descriptor Desc{fqName: "azure_resources_tags", help: "azure_resources_tags", constLabels: {}, variableLabels: {udb-deployment-method,udb-maintainer-infra,udb-business-unit,udb-application-id,udb-environment,resourceId,udb-product-id}} is invalid: "udb-deployment-method" is not a valid label name for metric "azure_resources_tags
goroutine 15 [running]:
net/http.(*conn).serve.func1()
/opt/hostedtoolcache/go/1.23.1/x64/src/net/http/server.go:1947 +0xbe
panic({0xbe0500?, 0xc00009d080?})
/opt/hostedtoolcache/go/1.23.1/x64/src/runtime/panic.go:785 +0x132
github.com/prometheus/client_golang/prometheus.(*Registry).MustRegister(...)
/home/runner/work/azure-resourcegraph-exporter/azure-resourcegraph-exporter/vendor/github.com/prometheus/client_golang/prometheus/registry.go:406
main.handleProbeRequest({0xdfe970, 0xc0003082a0}, 0xc0000b8a00)
/home/runner/work/azure-resourcegraph-exporter/azure-resourcegraph-exporter/probe.go:196 +0x1cd8
net/http.HandlerFunc.ServeHTTP(0xc0003081c0?, {0xdfe970?, 0xc0003082a0?}, 0x74b596?)
/opt/hostedtoolcache/go/1.23.1/x64/src/net/http/server.go:2220 +0x29
net/http.(*ServeMux).ServeHTTP(0x46ac59?, {0xdfe970, 0xc0003082a0}, 0xc0000b8a00)
/opt/hostedtoolcache/go/1.23.1/x64/src/net/http/server.go:2747 +0x1ca
net/http.serverHandler.ServeHTTP({0xc000316e70?}, {0xdfe970?, 0xc0003082a0?}, 0x6?)
/opt/hostedtoolcache/go/1.23.1/x64/src/net/http/server.go:3210 +0x8e
net/http.(*conn).serve(0xc0000be6c0, {0xdfff30, 0xc000316c90})
/opt/hostedtoolcache/go/1.23.1/x64/src/net/http/server.go:2092 +0x5d0
created by net/http.(*Server).Serve in goroutine 1
/opt/hostedtoolcache/go/1.23.1/x64/src/net/http/server.go:3360 +0x485
Got this message for a couple of my tags.
I never tried to work with GO language, but i think we need to "slugify" the resources labels, am i right?
Thanks
Hi,
First of all, thank you for this exporter, (and the others) that help me monitoring Azure everyday.
I got a message when lauching this with the default example.yaml config file :
"udb-deployment-method" is not a valid label name for metric "azure_resources_tags"Full error :
2024/10/04 16:00:39 http: panic serving [::1]:38526: descriptor Desc{fqName: "azure_resources_tags", help: "azure_resources_tags", constLabels: {}, variableLabels: {udb-deployment-method,udb-maintainer-infra,udb-business-unit,udb-application-id,udb-environment,resourceId,udb-product-id}} is invalid: "udb-deployment-method" is not a valid label name for metric "azure_resources_tags goroutine 15 [running]: net/http.(*conn).serve.func1() /opt/hostedtoolcache/go/1.23.1/x64/src/net/http/server.go:1947 +0xbe panic({0xbe0500?, 0xc00009d080?}) /opt/hostedtoolcache/go/1.23.1/x64/src/runtime/panic.go:785 +0x132 github.com/prometheus/client_golang/prometheus.(*Registry).MustRegister(...) /home/runner/work/azure-resourcegraph-exporter/azure-resourcegraph-exporter/vendor/github.com/prometheus/client_golang/prometheus/registry.go:406 main.handleProbeRequest({0xdfe970, 0xc0003082a0}, 0xc0000b8a00) /home/runner/work/azure-resourcegraph-exporter/azure-resourcegraph-exporter/probe.go:196 +0x1cd8 net/http.HandlerFunc.ServeHTTP(0xc0003081c0?, {0xdfe970?, 0xc0003082a0?}, 0x74b596?) /opt/hostedtoolcache/go/1.23.1/x64/src/net/http/server.go:2220 +0x29 net/http.(*ServeMux).ServeHTTP(0x46ac59?, {0xdfe970, 0xc0003082a0}, 0xc0000b8a00) /opt/hostedtoolcache/go/1.23.1/x64/src/net/http/server.go:2747 +0x1ca net/http.serverHandler.ServeHTTP({0xc000316e70?}, {0xdfe970?, 0xc0003082a0?}, 0x6?) /opt/hostedtoolcache/go/1.23.1/x64/src/net/http/server.go:3210 +0x8e net/http.(*conn).serve(0xc0000be6c0, {0xdfff30, 0xc000316c90}) /opt/hostedtoolcache/go/1.23.1/x64/src/net/http/server.go:2092 +0x5d0 created by net/http.(*Server).Serve in goroutine 1 /opt/hostedtoolcache/go/1.23.1/x64/src/net/http/server.go:3360 +0x485Got this message for a couple of my tags.
I never tried to work with GO language, but i think we need to "slugify" the resources labels, am i right?
Thanks