mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Docs feedback (#88125)
update OK to Normal label, matching instances to instances
This commit is contained in:
parent
3e77768144
commit
8cc944f64f
@ -243,7 +243,7 @@ You can configure the alert instance state when its evaluation returns no data:
|
||||
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| No Data | The default option. Sets alert instance state to `No data`. <br/> The alert rule also creates a new alert instance `DatasourceNoData` with the name and UID of the alert rule, and UID of the datasource that returned no data as labels. |
|
||||
| Alerting | Sets alert instance state to `Alerting`. It waits until the [pending period](ref:pending-period) has finished. |
|
||||
| Ok | Sets alert instance state to `Normal`. |
|
||||
| Normal | Sets alert instance state to `Normal`. |
|
||||
| Keep Last State | Maintains the alert instance in its last state. Useful for mitigating temporary issues, refer to [Keep last state](ref:keep-last-state). |
|
||||
|
||||
You can also configure the alert instance state when its evaluation returns an error or timeout.
|
||||
@ -252,7 +252,7 @@ You can also configure the alert instance state when its evaluation returns an e
|
||||
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| Error | The default option. Sets alert instance state to `Error`. <br/> The alert rule also creates a new alert instance `DatasourceError` with the name and UID of the alert rule, and UID of the datasource that returned no data as labels. |
|
||||
| Alerting | Sets alert instance state to `Alerting`. It waits until the [pending period](ref:pending-period) has finished. |
|
||||
| Ok | Sets alert instance state to `Normal`. |
|
||||
| Normal | Sets alert instance state to `Normal`. |
|
||||
| Keep Last State | Maintains the alert instance in its last state. Useful for mitigating temporary issues, refer to [Keep last state](ref:keep-last-state). |
|
||||
|
||||
## Create alerts from panels
|
||||
|
@ -462,7 +462,7 @@ describe('RuleList', () => {
|
||||
|
||||
expect(ruleDetails).toHaveTextContent('Expressiontopk ( 5 , foo ) [ 5m ]');
|
||||
expect(ruleDetails).toHaveTextContent('messagegreat alert');
|
||||
expect(ruleDetails).toHaveTextContent('Matching instances');
|
||||
expect(ruleDetails).toHaveTextContent('Instances');
|
||||
|
||||
// finally, check instances table
|
||||
const instancesTable = byTestId('dynamic-table').get(ruleDetails);
|
||||
|
@ -13,7 +13,7 @@ type Props = Omit<SelectBaseProps<GrafanaAlertStateDecision>, 'options'> & {
|
||||
const options: SelectableValue[] = [
|
||||
{ value: GrafanaAlertStateDecision.Alerting, label: 'Alerting' },
|
||||
{ value: GrafanaAlertStateDecision.NoData, label: 'No Data' },
|
||||
{ value: GrafanaAlertStateDecision.OK, label: 'OK' },
|
||||
{ value: GrafanaAlertStateDecision.OK, label: 'Normal' },
|
||||
{ value: GrafanaAlertStateDecision.Error, label: 'Error' },
|
||||
{ value: GrafanaAlertStateDecision.KeepLast, label: 'Keep Last State' },
|
||||
];
|
||||
|
@ -53,7 +53,7 @@ export const RuleDetails = ({ rule }: Props) => {
|
||||
<RuleDetailsDataSources rulesSource={rulesSource} rule={rule} />
|
||||
</div>
|
||||
</div>
|
||||
<DetailsField label="Matching instances" horizontal={true}>
|
||||
<DetailsField label="Instances" horizontal={true}>
|
||||
<RuleDetailsMatchingInstances rule={rule} itemsDisplayLimit={INSTANCES_DISPLAY_LIMIT} />
|
||||
</DetailsField>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user