Skip to content

Outdated API version in the Metricbeat Azure module Billing set #20758

@toby-sutor

Description

@toby-sutor

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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions