forked from grafana/grafana
-
Notifications
You must be signed in to change notification settings - Fork 8
PMM-14080: Lack of guidance on Fired Alerts to set up Alerting after install #858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dmitri-saricev-3pillargloball
merged 4 commits into
v3
from
PMM-14080-Lack-of-guidance-on-Fired-Alerts-to-set-up-Alerting-after-install
Dec 2, 2025
+68
−6
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
f3f5614
PMM-14080: Lack of guidance on Fired Alerts to set up Alerting after …
dmitri-saricev-3pillargloball 96dbe91
PMM-14080: change text
dmitri-saricev-3pillargloball 1295e63
PMM-14080: resolve comments from Matej
dmitri-saricev-3pillargloball a4572e5
PMM-14080: change AlertsEmptyState
dmitri-saricev-3pillargloball File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
public/app/percona/integrated-alerting/components/Alerts/AlertsEmptyState.messages.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| export const Messages = { | ||
| heading: 'No alerts detected', | ||
| templateLink: 'Alert rule templates', | ||
| alertRulesLink: 'Alert rules', | ||
| firstParagraph: | ||
| 'custom made by our database experts, for a faster start, and configure how you want to receive them at', | ||
| secondParagraph: 'For more information please visit our', | ||
| documentationLink: 'Percona Alerting documentation page', | ||
| }; |
22 changes: 22 additions & 0 deletions
22
public/app/percona/integrated-alerting/components/Alerts/AlertsEmptyState.styles.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { css } from '@emotion/css'; | ||
|
|
||
| import { GrafanaTheme2 } from '@grafana/data'; | ||
|
|
||
| export const getStyles = (theme: GrafanaTheme2) => { | ||
| return { | ||
| container: css({ | ||
| textAlign: 'center', | ||
| maxWidth: '600px', | ||
| margin: '0 auto', | ||
| }), | ||
| heading: css({ | ||
| marginBottom: theme.spacing(2), | ||
| }), | ||
| paragraph: css({ | ||
| marginTop: theme.spacing(2), | ||
| fontSize: theme.typography.body.fontSize, | ||
| lineHeight: theme.typography.body.lineHeight, | ||
| color: theme.colors.text.secondary, | ||
| }), | ||
| }; | ||
| }; | ||
36 changes: 36 additions & 0 deletions
36
public/app/percona/integrated-alerting/components/Alerts/AlertsEmptyState.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| import { FC } from 'react'; | ||
|
|
||
| import { Icon, TextLink, useStyles2 } from '@grafana/ui'; | ||
|
|
||
| import { Messages } from './AlertsEmptyState.messages'; | ||
| import { getStyles } from './AlertsEmptyState.styles'; | ||
|
|
||
| export const AlertsEmptyState: FC = () => { | ||
| const styles = useStyles2(getStyles); | ||
|
|
||
| return ( | ||
| <div className={styles.container}> | ||
| <h1 className={styles.heading}> | ||
| <Icon name="check-circle" size="xxl" /> {Messages.heading} | ||
| </h1> | ||
| <p className={styles.paragraph}> | ||
| Use{' '} | ||
matejkubinec marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <TextLink href="/alerting/alert-rule-templates" inline> | ||
| {Messages.templateLink},{' '} | ||
| </TextLink>{' '} | ||
| {Messages.firstParagraph}{' '} | ||
| <TextLink href="/alerting/list" inline> | ||
| {Messages.alertRulesLink} | ||
| </TextLink> | ||
| . | ||
| </p> | ||
| <p className={styles.paragraph}> | ||
| {Messages.secondParagraph}{' '} | ||
| <TextLink href="https://per.co.na/alerting" external inline> | ||
| {Messages.documentationLink} | ||
| </TextLink> | ||
| . | ||
| </p> | ||
| </div> | ||
| ); | ||
| }; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.