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
This commit is contained in:
Brendan O'Handley
2024-07-24 12:27:10 -05:00
committed by GitHub
parent fd39017153
commit e0d0322036
@@ -4,7 +4,7 @@ import * as React from 'react';
import { DataSourceSettings } from '@grafana/data';
import { Auth, ConnectionSettings, convertLegacyAuthProps, AuthMethod } from '@grafana/experimental';
import { PromOptions, docsTip, overhaulStyles } from '@grafana/prometheus';
import { SecureSocksProxySettings, useTheme2 } from '@grafana/ui';
import { Alert, SecureSocksProxySettings, useTheme2 } from '@grafana/ui';
// NEED TO EXPORT THIS FROM GRAFANA/UI FOR EXTERNAL DS
import { AzureAuthSettings } from '@grafana/ui/src/components/DataSourceSettings/types';
@@ -134,6 +134,12 @@ export const DataSourcehttpSettingsOverhaul = (props: Props) => {
urlTooltip={urlTooltip}
/>
<hr className={`${styles.hrTopSpace} ${styles.hrBottomSpace}`} />
{sigV4Selected && (
<Alert title="Deprecation Notice" severity="warning">
The SigV4 authentication in the core Prometheus data source is deprecated. Please use the Amazon Managed
Service for Prometheus data source to authenticate with SigV4.
</Alert>
)}
<Auth
{...newAuthProps}
customMethods={customMethods}