mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Always allow configuring AM configuration (#57522)
This commit is contained in:
parent
7414ba7279
commit
8788f7d2d8
@ -130,8 +130,6 @@ export const ExternalAlertmanagers = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const noAlertmanagers = externalAlertManagers?.length === 0;
|
const noAlertmanagers = externalAlertManagers?.length === 0;
|
||||||
const noDsAlertmanagers = externalDsAlertManagers?.length === 0;
|
|
||||||
const hasExternalAlertmanagers = !(noAlertmanagers && noDsAlertmanagers);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
@ -149,20 +147,18 @@ export const ExternalAlertmanagers = () => {
|
|||||||
inactive={alertmanagersChoice === AlertmanagerChoice.Internal}
|
inactive={alertmanagersChoice === AlertmanagerChoice.Internal}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{hasExternalAlertmanagers && (
|
<div className={styles.amChoice}>
|
||||||
<div className={styles.amChoice}>
|
<Field
|
||||||
<Field
|
label="Send alerts to"
|
||||||
label="Send alerts to"
|
description="Configures how the Grafana alert rule evaluation engine Alertmanager handles your alerts. Internal (Grafana built-in Alertmanager), External (All Alertmanagers configured above), or both."
|
||||||
description="Configures how the Grafana alert rule evaluation engine Alertmanager handles your alerts. Internal (Grafana built-in Alertmanager), External (All Alertmanagers configured above), or both."
|
>
|
||||||
>
|
<RadioButtonGroup
|
||||||
<RadioButtonGroup
|
options={alertmanagerChoices}
|
||||||
options={alertmanagerChoices}
|
value={alertmanagersChoice}
|
||||||
value={alertmanagersChoice}
|
onChange={(value) => onChangeAlertmanagerChoice(value!)}
|
||||||
onChange={(value) => onChangeAlertmanagerChoice(value!)}
|
/>
|
||||||
/>
|
</Field>
|
||||||
</Field>
|
</div>
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<h5>Alertmanagers by URL</h5>
|
<h5>Alertmanagers by URL</h5>
|
||||||
<Alert severity="warning" title="Deprecation Notice">
|
<Alert severity="warning" title="Deprecation Notice">
|
||||||
|
Loading…
Reference in New Issue
Block a user