valiton / grafana-mongodb-atlas-datasource

Grafana Datasource for MongoDB Atlas/Public Cloud Metrics (Process, Database and Disk)
MIT License
48 stars 18 forks source link

Support for wildcard #34

Closed jorkzijlstra closed 3 years ago

jorkzijlstra commented 3 years ago

I currently need to spell out a separate query for each of the nodes in the cluster.

It would be nice if it would be possible to add a wildcard option for the atlas node name in the Dimension. It does already work for the metrics part (test * in the screenshot)

Something like: image

CapChrisCap commented 3 years ago

Hello @jorkzijlstra , thanks for the feature request. Unfortunately, this is not that easy because MongoDB Atlas does not provide an aggregated metric for that. Calculating this within Grafana would be a high overhead. I would rather recommend using the MetaQueries datasource to aggregate queries (or the pre-build Grafana Aggregations). This is e.g. how it looks with the Grafana Metaquery plugin (only with another DS, but our plugin can be also used): Source: https://grafana.com/grafana/plugins/goshposh-metaqueries-datasource

I will close this issue for now because this is not something where we can further improve unfortunately. If there are any questions left, re-open this issue.

jorkzijlstra commented 3 years ago

Thanks for the explanation. Ill have a look into the metaqueries or just use it as is.