Skip to content

Logic calling Prometheus API Golang client out of date #4

@joshbwlng

Description

@joshbwlng

Get the following error when trying to build/execute main.go:

$ go build ./main.go 
# command-line-arguments
./main.go:64:14: assignment mismatch: 2 variables but api.Query returns 3 values

Need to add a variable that catches the new Warnings []string return value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions