Skip to content

Implement a standalone datasource gateway#37

Draft
sudosalim wants to merge 19 commits into
mainfrom
datasource_gateway_proxy
Draft

Implement a standalone datasource gateway#37
sudosalim wants to merge 19 commits into
mainfrom
datasource_gateway_proxy

Conversation

@sudosalim

Copy link
Copy Markdown
Collaborator

Initial implementation to the standalone datasource. This routes per snapshot to a different datasource.
It moved the promql logic from the Grafana app and outside grafana all together. This way Grafana dashboards, tools and cbmonitor talk to a single datasource irregardless of the metrics storage.

The gateway is the generalisation of the https://github.com/m-tarhon/SyncedApp  implementation.

}

return strings.Join(conditions, " AND ")
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of this code is also present in cbmonitor/pkg/querybuilder. Is there any way to centralise this code? Do we even need the pkg folder anymore when this PR gets merged?

default:
return StoreCouchbase
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could just be understanding it wrong, but why is the default StoreCouchbase?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants