I am using Thanos Version: v0.23.1 and trying to use object Storage Provider: AZURE
I have deployed prometheus in Kubernetes and trying to configure object storage as Azure blob storage. To avoid using storage_account_key in the storage configuration, I am using aadpodidbinding in prometheus statefulset to use Azure blob storage. However, when I am running the prometheus, I am getting following error for thanos-sidecar container.
level=error ts=2022-03-09T10:43:39.627694164Z caller=main.go:131 err="invalid Azure storage configuration, no Azure storage_account_key specified while storage_account is present in config file; both should be present\ngithub.com/thanos-io/thanos/pkg/objstore/azure.(*Config).validate\n\t/home/circleci/project/pkg/objstore/azure/azure.go:136\ngithub.com/thanos-io/thanos/pkg/objstore/azure.NewBucket\n\t/home/circleci/project/pkg/objstore/azure/azure.go:172\ngithub.com/thanos-io/thanos/pkg/objstore/client.NewBucket\n\t/home/circleci/project/pkg/objstore/client/factory.go:67\nmain.runSidecar\n\t/home/circleci/project/cmd/thanos/sidecar.go:272\nmain.registerSidecar.func1\n\t/home/circleci/project/cmd/thanos/sidecar.go:72\nmain.main\n\t/home/circleci/project/cmd/thanos/main.go:129\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\ncreate AZURE client\ngithub.com/thanos-io/thanos/pkg/objstore/client.NewBucket\n\t/home/circleci/project/pkg/objstore/client/factory.go:82\nmain.runSidecar\n\t/home/circleci/project/cmd/thanos/sidecar.go:272\nmain.registerSidecar.func1\n\t/home/circleci/project/cmd/thanos/sidecar.go:72\nmain.main\n\t/home/circleci/project/cmd/thanos/main.go:129\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\npreparing sidecar command failed\nmain.main\n\t/home/circleci/project/cmd/thanos/main.go:131\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371"
My current object storage configuration is given below:
Please help, if anyone knows about it.
Thank You,