chore: changed default sample alert to High RPS (#497)

This commit is contained in:
Ankit Nayan 2021-12-11 11:26:02 +05:30 committed by GitHub
parent dc9ffcdd45
commit 8bf0123370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ import { ButtonContainer, Title } from './styles';
const CreateAlert = (): JSX.Element => {
const value = useRef<string>(
`\n alert: <alert name>\n expr: system_cpu_load_average_1m > 0.01\n for: 0m\n labels:\n severity: warning\n annotations:\n summary: High CPU load\n description: "CPU load is > 0.01\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"\n `,
`\n alert: High RPS\n expr: sum(rate(signoz_latency_count{span_kind="SPAN_KIND_SERVER"}[2m])) by (service_name) > 100\n for: 0m\n labels:\n severity: warning\n annotations:\n summary: High RPS of Applications\n description: "RPS is > 100\n\t\t\t VALUE = {{ $value }}\n\t\t\t LABELS = {{ $labels }}"\n `,
);
const [newAlertState, setNewAlertState] = useState<