-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With this commit as tenant box is added to the query UI. It can be used to specify which tenant to use when making a query. Signed-off-by: Jacob Baungard Hansen <jacobbaungard@redhat.com>
- Loading branch information
1 parent
ec6b8b6
commit a394cb5
Showing
9 changed files
with
110 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
declare const THANOS_QUERY_URL: string; | ||
declare const THANOS_TENANT_HEADER: string; | ||
declare const THANOS_DEFAULT_TENANT: string; | ||
|
||
export let queryURL = THANOS_QUERY_URL; | ||
if (queryURL === '' || queryURL === '{{ .queryURL }}') { | ||
queryURL = 'http://localhost:10902'; | ||
} | ||
|
||
export let defaultTenant = THANOS_DEFAULT_TENANT; | ||
if (defaultTenant === '' || defaultTenant === '{{ .defaultTenant }}') { | ||
defaultTenant = 'default-tenant'; | ||
} | ||
|
||
export let tenantHeader = THANOS_TENANT_HEADER; | ||
if (tenantHeader === '' || tenantHeader === '{{ .tenantHeader }}') { | ||
tenantHeader = 'thanos-tenant'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters