Merge pull request #5687 from influxdata/5661/meta_query_templates

feat(ui/explore): add more meta query templates
testing/cypress
Pavel Závora 2021-03-09 18:23:04 +01:00 committed by GitHub
commit a620c23315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 0 deletions

View File

@ -16,6 +16,7 @@
1. [#5675](https://github.com/influxdata/chronograf/pull/5675): Add ServiceNow Event Handler configuration UI.
1. [#5675](https://github.com/influxdata/chronograf/pull/5675): Add ServiceNow Alert Handler configuration UI.
1. [#5681](https://github.com/influxdata/chronograf/pull/5681): Allow to hide/show histogram in Log Viewer.
1. [#5687](https://github.com/influxdata/chronograf/pull/5687): Add more meta query templates to Explore UI.
### Other

View File

@ -98,6 +98,12 @@ export const METAQUERY_TEMPLATE_OPTIONS: Array<
id: `mqtd-divider-2`,
type: DropdownChildTypes.Divider,
},
{
id: 'Show Field Keys',
text: 'Show Field Keys',
query: 'SHOW FIELD KEYS ON "db_name"',
type: DropdownChildTypes.Item,
},
{
id: 'Show Field Key Cardinality',
text: 'Show Field Key Cardinality',
@ -184,6 +190,12 @@ export const METAQUERY_TEMPLATE_OPTIONS: Array<
query: 'SHOW USERS',
type: DropdownChildTypes.Item,
},
{
id: 'Show Grants',
text: 'Show Grants',
query: 'SHOW GRANTS FOR "username"',
type: DropdownChildTypes.Item,
},
{
id: 'Create User',
text: 'Create User',
@ -231,6 +243,22 @@ export const METAQUERY_TEMPLATE_OPTIONS: Array<
id: `mqtd-divider-7`,
type: DropdownChildTypes.Divider,
},
{
id: 'Explain',
text: 'Explain',
query: 'EXPLAIN SELECT * FROM "db_name"."rp_name"."measurement"',
type: DropdownChildTypes.Item,
},
{
id: 'Explain Analyze',
text: 'Explain Analyze',
query: 'EXPLAIN ANALYZE SELECT * FROM "db_name"."rp_name"."measurement"',
type: DropdownChildTypes.Item,
},
{
id: `mqtd-divider-8`,
type: DropdownChildTypes.Divider,
},
{
id: 'Show Stats',
text: 'Show Stats',
@ -243,6 +271,30 @@ export const METAQUERY_TEMPLATE_OPTIONS: Array<
query: 'SHOW DIAGNOSTICS',
type: DropdownChildTypes.Item,
},
{
id: 'Show Subscriptions',
text: 'Show Subscriptions',
query: 'SHOW SUBSCRIPTIONS',
type: DropdownChildTypes.Item,
},
{
id: 'Show Queries',
text: 'Show Queries',
query: 'SHOW QUERIES',
type: DropdownChildTypes.Item,
},
{
id: 'Show Shards',
text: 'Show Shards',
query: 'SHOW SHARDS',
type: DropdownChildTypes.Item,
},
{
id: 'Show Shard Groups',
text: 'Show Shard Groups',
query: 'SHOW SHARD GROUPS',
type: DropdownChildTypes.Item,
},
]
export const WRITE_DATA_DOCS_LINK =