It seems like we are referencing an outdated API version in the (Beta) Azure module / Billing metricset for Metricbeat.
E.g. in
|
"github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2019-01-01/consumption" |
|
"github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2019-01-01/consumption" |
|
"github.com/Azure/azure-sdk-for-go/services/consumption/mgmt/2019-01-01/consumption" |
we’re referring to API version 2019-01-01 but in the Microsoft docs the API version is 2019-10-01.
This leads to error:
INFO module/wrapper.go:259 Error fetching data for metricset azure.billing: error retrieving usage information:
Retrieving usage details failed in client: consumption.UsageDetailsClient#List: Failure responding to request:
StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="400"
Message="Subscription scope usage is not supported for current api version. Please use api version after 2019-10-01
It seems like we are referencing an outdated API version in the (Beta) Azure module / Billing metricset for Metricbeat.
E.g. in
beats/x-pack/metricbeat/module/azure/billing/client.go
Line 13 in 496e3c9
beats/x-pack/metricbeat/module/azure/billing/service.go
Line 10 in 496e3c9
beats/x-pack/metricbeat/module/azure/billing/data.go
Line 12 in 496e3c9
we’re referring to API version
2019-01-01but in the Microsoft docs the API version is2019-10-01.This leads to error: