mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 15:36:48 +00:00
chore(statsreporter): fix azure IMDS endpoint in statsreporter (#9243)
This commit is contained in:
parent
1b1aa4915b
commit
101b3668b5
@ -141,7 +141,7 @@ func detectPlatform() string {
|
||||
}
|
||||
|
||||
// Azure metadata
|
||||
if req, err := http.NewRequest(http.MethodGet, "http://169.254.169.254/metadata/instance", nil); err == nil {
|
||||
if req, err := http.NewRequest(http.MethodGet, "http://169.254.169.254/metadata/instance?api-version=2017-03-01", nil); err == nil {
|
||||
req.Header.Add("Metadata", "true")
|
||||
if resp, err := client.Do(req); err == nil {
|
||||
resp.Body.Close()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user