diff --git a/packages/jaeger-ui/src/components/App/TopNav.tsx b/packages/jaeger-ui/src/components/App/TopNav.tsx index 4cf3b78b6c..1bdf5d742f 100644 --- a/packages/jaeger-ui/src/components/App/TopNav.tsx +++ b/packages/jaeger-ui/src/components/App/TopNav.tsx @@ -64,7 +64,7 @@ if (getConfigValue('qualityMetrics.menuEnabled')) { NAV_LINKS.push({ to: qualityMetrics.getUrl(), matches: qualityMetrics.matches, - text: 'Quality Metrics', + text: getConfigValue('qualityMetrics.menuLabel'), }); } diff --git a/packages/jaeger-ui/src/constants/default-config.tsx b/packages/jaeger-ui/src/constants/default-config.tsx index 198b84f9a3..5fd6bf472e 100644 --- a/packages/jaeger-ui/src/constants/default-config.tsx +++ b/packages/jaeger-ui/src/constants/default-config.tsx @@ -25,6 +25,10 @@ export default deepFreeze( menuEnabled: true, }, linkPatterns: [], + qualityMetrics: { + menuEnabled: false, + menuLabel: 'Trace Quality', + }, menu: [ { label: 'About Jaeger', diff --git a/packages/jaeger-ui/src/types/config.tsx b/packages/jaeger-ui/src/types/config.tsx index a34a461f46..899be04904 100644 --- a/packages/jaeger-ui/src/types/config.tsx +++ b/packages/jaeger-ui/src/types/config.tsx @@ -38,6 +38,7 @@ export type LinkPatternsConfig = { text: string; }; +// Default values are provided in packages/jaeger-ui/src/constants/default-config.tsx export type Config = { archiveEnabled?: boolean; deepDependencies?: { @@ -48,6 +49,7 @@ export type Config = { pathAgnosticDecorations?: TPathAgnosticDecorationSchema[]; qualityMetrics?: { menuEnabled?: boolean; + menuLabel?: string; }; search?: { maxLookback: { label: string; value: string }; maxLimit: number }; scripts?: TScript[];