rorycrispin
Add all of your required data sources will well known UIDs https://grafana.com/docs/grafana/latest/administration/provi... Then you can create a query panel and update the state with the desired query SQL and data source ID like so;
const logsQuery = new SceneQueryRunner({queries: []});
logsQuery.setState({
datasource: { uid: dataSourceID},
queries: [
{
"datasource": {
"type": "grafana-clickhouse-datasource",
"uid": dataSourceID,
},
"queryType": "sql",
"rawSql": logsQuerySQL,
...
],
});- Pick a different schema based on the query parameters. For instance we have different schemas for different applications (Keeper/Server/Generic K8s app) and the app picks the necessary schema
- Always show the full generated SQL query on the page (We like to use Grafana UI to start off and then jump into fully manual SQL for deeper analysis)
- Take one filter value (for instance, k8s namespace) and look up all of the other filters required (pod names which were live during the time period, region, cell ect.)
- Some small gadgets like enabling users to import the time range from another application URL like DataDog. Oftentimes we start by looking at metrics in another source and then want to jump into the logs.
https://play.google.com/store/apps/details?id=com.tendadigit...
Chocolatey Quickstart: https://github.com/RoryCrispin/Chocolatey-Quickstart