Skip to content

Commit e0d0322

Browse files
authored
Prometheus: Deprecation message for SigV4 in core Prom (#90250)
* add deprecation message for SigV4 in core Prom * remove extra things * change name to Amazon Prometheus * update AMP name
1 parent fd39017 commit e0d0322

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

public/app/plugins/datasource/prometheus/configuration/DataSourceHttpSettingsOverhaulPackage.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as React from 'react';
44
import { DataSourceSettings } from '@grafana/data';
55
import { Auth, ConnectionSettings, convertLegacyAuthProps, AuthMethod } from '@grafana/experimental';
66
import { PromOptions, docsTip, overhaulStyles } from '@grafana/prometheus';
7-
import { SecureSocksProxySettings, useTheme2 } from '@grafana/ui';
7+
import { Alert, SecureSocksProxySettings, useTheme2 } from '@grafana/ui';
88
// NEED TO EXPORT THIS FROM GRAFANA/UI FOR EXTERNAL DS
99
import { AzureAuthSettings } from '@grafana/ui/src/components/DataSourceSettings/types';
1010

@@ -134,6 +134,12 @@ export const DataSourcehttpSettingsOverhaul = (props: Props) => {
134134
urlTooltip={urlTooltip}
135135
/>
136136
<hr className={`${styles.hrTopSpace} ${styles.hrBottomSpace}`} />
137+
{sigV4Selected && (
138+
<Alert title="Deprecation Notice" severity="warning">
139+
The SigV4 authentication in the core Prometheus data source is deprecated. Please use the Amazon Managed
140+
Service for Prometheus data source to authenticate with SigV4.
141+
</Alert>
142+
)}
137143
<Auth
138144
{...newAuthProps}
139145
customMethods={customMethods}

0 commit comments

Comments
 (0)