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

Azure tags are not valid for metric labels #23

Open
satare opened this issue Oct 4, 2024 · 0 comments
Open

Azure tags are not valid for metric labels #23

satare opened this issue Oct 4, 2024 · 0 comments

Comments

@satare
Copy link

satare commented Oct 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant