Skip to content

Dynamic Parameters populated as indicies (instead of values) #30

Description

@pdolan

Hi there,

Given that I have a list of application IDs existing within the following path:
${stack}.incoming.metric.${appid}.AppSpecificMetrics.count

In order to provide 2x dropdowns in the appropriate graphitus dashboard, am using the following dynamic parameter config:

"parameters": {
    "stack": {
        "production": { "stack": "production" },
        "staging": { "stack": "staging" }
    },
    "appid": {
        "type": "dynamic",
        "query": "${Stack}.incoming.metric.*",
        "index": 3,
        "showAll": true
    }
}

However, the appid dropdown is being populated with the indexes (0..n) of my appids - the value is being passed correctly to dropdown but this isn't particularly useful!

E.G. want to draw dashboard for app ID 5 - select "5" from appid dropdown, but this instead draws the 5th item returned from the "${Stack}.incoming.metric.*" query.

Is there a config option I can use to handle this case?

Thanks and Regards!
-Paul

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions