Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
alerting
/
unified
/
components
/
contact-points
/
components
/
File Content:
GlobalConfigAlert.tsx
import React from 'react'; import { Alert, LinkButton } from '@grafana/ui'; import { AlertmanagerAction } from '../../../hooks/useAbilities'; import { isVanillaPrometheusAlertManagerDataSource } from '../../../utils/datasource'; import { makeAMLink } from '../../../utils/misc'; import { Authorize } from '../../Authorize'; interface GlobalConfigAlertProps { alertManagerName: string; } export const GlobalConfigAlert = ({ alertManagerName }: GlobalConfigAlertProps) => { const isVanillaAM = isVanillaPrometheusAlertManagerDataSource(alertManagerName); return ( <Authorize actions={[AlertmanagerAction.UpdateExternalConfiguration]}> <Alert severity="info" title="Global config for contact points"> <p> For each external Alertmanager you can define global settings, like server addresses, usernames and password, for all the supported contact points. </p> <LinkButton href={makeAMLink('alerting/notifications/global-config', alertManagerName)} variant="secondary"> {isVanillaAM ? 'View global config' : 'Edit global config'} </LinkButton> </Alert> </Authorize> ); };
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
ContactPointsFilter.tsx
1662 bytes
0644
GlobalConfig.tsx
838 bytes
0644
GlobalConfigAlert.tsx
1161 bytes
0644
Modals.tsx
2630 bytes
0644
UnusedBadge.tsx
330 bytes
0644
N4ST4R_ID | Naxtarrr