Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Is there a way to add a query string? #4

Open
GoncaloGarcia opened this issue Jun 21, 2019 · 0 comments
Open

Is there a way to add a query string? #4

GoncaloGarcia opened this issue Jun 21, 2019 · 0 comments

Comments

@GoncaloGarcia
Copy link

Hi!

I see that to add a new target to my dashboard i have to do something like

`/ define a target
target := grafanaclient.NewTarget()

//specify the measurement to use
target.Measurement = "cadvisor_version_info"
target.

// group stats by name tag values
target.GroupByTag("name")
target.GroupByTag("host")

// filter by host tag
target.FilterByTag("host", "test")

// Adding everything
graphPanel.AddTarget(target)`

But for me it would be easier to simply add the Prometheus query string. Is this possible?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant