mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tempo: Remove tempoApmTable feature flag (#62499)
Remove tempoApmTable feature flag
This commit is contained in:
parent
317f044e70
commit
5e1506dea0
@ -293,7 +293,6 @@ For details, refer to the [APM dashboard documentation](/docs/tempo/latest/metri
|
|||||||
|
|
||||||
**To display the APM table:**
|
**To display the APM table:**
|
||||||
|
|
||||||
1. Activate the `tempoApmTable` [feature toggle]({{< relref "../../setup-grafana/configure-grafana#feature_toggles" >}}) in your `grafana.ini` file.
|
|
||||||
1. Link a Prometheus data source in the Tempo data source settings.
|
1. Link a Prometheus data source in the Tempo data source settings.
|
||||||
1. Navigate to [Explore]({{< relref "../../explore/" >}}).
|
1. Navigate to [Explore]({{< relref "../../explore/" >}}).
|
||||||
1. Select the Tempo data source.
|
1. Select the Tempo data source.
|
||||||
|
@ -64,7 +64,6 @@ Alpha features might be changed or removed without prior notice.
|
|||||||
| `live-pipeline` | Enable a generic live processing pipeline |
|
| `live-pipeline` | Enable a generic live processing pipeline |
|
||||||
| `live-service-web-worker` | This will use a webworker thread to processes events rather than the main thread |
|
| `live-service-web-worker` | This will use a webworker thread to processes events rather than the main thread |
|
||||||
| `queryOverLive` | Use Grafana Live WebSocket to execute backend queries |
|
| `queryOverLive` | Use Grafana Live WebSocket to execute backend queries |
|
||||||
| `tempoApmTable` | Show APM table |
|
|
||||||
| `publicDashboards` | Enables public access to dashboards |
|
| `publicDashboards` | Enables public access to dashboards |
|
||||||
| `lokiLive` | Support WebSocket streaming for loki (early prototype) |
|
| `lokiLive` | Support WebSocket streaming for loki (early prototype) |
|
||||||
| `lokiDataframeApi` | Use experimental loki api for WebSocket streaming (early prototype) |
|
| `lokiDataframeApi` | Use experimental loki api for WebSocket streaming (early prototype) |
|
||||||
|
@ -28,7 +28,6 @@ export interface FeatureToggles {
|
|||||||
['live-service-web-worker']?: boolean;
|
['live-service-web-worker']?: boolean;
|
||||||
queryOverLive?: boolean;
|
queryOverLive?: boolean;
|
||||||
panelTitleSearch?: boolean;
|
panelTitleSearch?: boolean;
|
||||||
tempoApmTable?: boolean;
|
|
||||||
prometheusAzureOverrideAudience?: boolean;
|
prometheusAzureOverrideAudience?: boolean;
|
||||||
showFeatureFlagsInUI?: boolean;
|
showFeatureFlagsInUI?: boolean;
|
||||||
publicDashboards?: boolean;
|
publicDashboards?: boolean;
|
||||||
|
@ -72,12 +72,6 @@ var (
|
|||||||
Description: "Search for dashboards using panel title",
|
Description: "Search for dashboards using panel title",
|
||||||
State: FeatureStateBeta,
|
State: FeatureStateBeta,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Name: "tempoApmTable",
|
|
||||||
Description: "Show APM table",
|
|
||||||
State: FeatureStateAlpha,
|
|
||||||
FrontendOnly: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Name: "prometheusAzureOverrideAudience",
|
Name: "prometheusAzureOverrideAudience",
|
||||||
Description: "Experimental. Allow override default AAD audience for Azure Prometheus endpoint",
|
Description: "Experimental. Allow override default AAD audience for Azure Prometheus endpoint",
|
||||||
|
@ -55,10 +55,6 @@ const (
|
|||||||
// Search for dashboards using panel title
|
// Search for dashboards using panel title
|
||||||
FlagPanelTitleSearch = "panelTitleSearch"
|
FlagPanelTitleSearch = "panelTitleSearch"
|
||||||
|
|
||||||
// FlagTempoApmTable
|
|
||||||
// Show APM table
|
|
||||||
FlagTempoApmTable = "tempoApmTable"
|
|
||||||
|
|
||||||
// FlagPrometheusAzureOverrideAudience
|
// FlagPrometheusAzureOverrideAudience
|
||||||
// Experimental. Allow override default AAD audience for Azure Prometheus endpoint
|
// Experimental. Allow override default AAD audience for Azure Prometheus endpoint
|
||||||
FlagPrometheusAzureOverrideAudience = "prometheusAzureOverrideAudience"
|
FlagPrometheusAzureOverrideAudience = "prometheusAzureOverrideAudience"
|
||||||
|
@ -3,7 +3,6 @@ import React, { useEffect, useState } from 'react';
|
|||||||
import useAsync from 'react-use/lib/useAsync';
|
import useAsync from 'react-use/lib/useAsync';
|
||||||
|
|
||||||
import { GrafanaTheme2 } from '@grafana/data';
|
import { GrafanaTheme2 } from '@grafana/data';
|
||||||
import { config } from '@grafana/runtime';
|
|
||||||
import { Alert, InlineField, InlineFieldRow, useStyles2 } from '@grafana/ui';
|
import { Alert, InlineField, InlineFieldRow, useStyles2 } from '@grafana/ui';
|
||||||
|
|
||||||
import { AdHocFilter } from '../../../../features/variables/adhoc/picker/AdHocFilter';
|
import { AdHocFilter } from '../../../../features/variables/adhoc/picker/AdHocFilter';
|
||||||
@ -72,9 +71,7 @@ export function ServiceGraphSection({
|
|||||||
datasource={{ uid: graphDatasourceUid }}
|
datasource={{ uid: graphDatasourceUid }}
|
||||||
filters={filters}
|
filters={filters}
|
||||||
getTagKeysOptions={{
|
getTagKeysOptions={{
|
||||||
series: config.featureToggles.tempoApmTable
|
series: ['traces_service_graph_request_total', 'traces_spanmetrics_calls_total'],
|
||||||
? ['traces_service_graph_request_total', 'traces_spanmetrics_calls_total']
|
|
||||||
: ['traces_service_graph_request_total'],
|
|
||||||
}}
|
}}
|
||||||
addFilter={(filter: AdHocVariableFilter) => {
|
addFilter={(filter: AdHocVariableFilter) => {
|
||||||
onChange({
|
onChange({
|
||||||
|
@ -20,7 +20,6 @@ import {
|
|||||||
setDataSourceSrv,
|
setDataSourceSrv,
|
||||||
TemplateSrv,
|
TemplateSrv,
|
||||||
} from '@grafana/runtime';
|
} from '@grafana/runtime';
|
||||||
import config from 'app/core/config';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
DEFAULT_LIMIT,
|
DEFAULT_LIMIT,
|
||||||
@ -442,7 +441,6 @@ describe('Tempo apm table', () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
config.featureToggles.tempoApmTable = true;
|
|
||||||
setDataSourceSrv(backendSrvWithPrometheus as any);
|
setDataSourceSrv(backendSrvWithPrometheus as any);
|
||||||
const response = await lastValueFrom(
|
const response = await lastValueFrom(
|
||||||
ds.query({ targets: [{ queryType: 'serviceMap' }], range: getDefaultTimeRange() } as any)
|
ds.query({ targets: [{ queryType: 'serviceMap' }], range: getDefaultTimeRange() } as any)
|
||||||
|
@ -259,19 +259,15 @@ export class TempoDatasource extends DataSourceWithBackend<TempoQuery, TempoJson
|
|||||||
|
|
||||||
const dsId = this.serviceMap.datasourceUid;
|
const dsId = this.serviceMap.datasourceUid;
|
||||||
const tempoDsUid = this.uid;
|
const tempoDsUid = this.uid;
|
||||||
if (config.featureToggles.tempoApmTable) {
|
subQueries.push(
|
||||||
subQueries.push(
|
serviceMapQuery(options, dsId, tempoDsUid).pipe(
|
||||||
serviceMapQuery(options, dsId, tempoDsUid).pipe(
|
concatMap((result) =>
|
||||||
concatMap((result) =>
|
rateQuery(options, result, dsId).pipe(
|
||||||
rateQuery(options, result, dsId).pipe(
|
concatMap((result) => errorAndDurationQuery(options, result, dsId, tempoDsUid))
|
||||||
concatMap((result) => errorAndDurationQuery(options, result, dsId, tempoDsUid))
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
)
|
||||||
} else {
|
);
|
||||||
subQueries.push(serviceMapQuery(options, dsId, tempoDsUid));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return merge(...subQueries);
|
return merge(...subQueries);
|
||||||
|
Loading…
Reference in New Issue
Block a user