Skip to content

Add openvsx alert #11717

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
merged 1 commit into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,5 @@
* Licensed under the MIT License. See License-MIT.txt in the project root for license information.
*/

// When implementing the first alerts and recording rules, please follow the same folder structure used by other teams' mixins
// Ping @ArthurSens if necessary
{
prometheusAlerts+:: {
groups+: [],
// IDE team doesn have any alerts yet
},

prometheusRules+:: {
groups+: [],
// IDE team doesn have any recording rules yet
},
}
(import './openvsx-proxy/alerts.libsonnet') +
(import './openvsx-proxy/rules.libsonnet')
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
* Licensed under the MIT License. See License-MIT.txt in the project root for license information.
*/

{
prometheusAlerts+:: {
groups+: [
{
name: 'gitpod-component-openvsx-proxy-alerts',
rules: [
{
alert: 'GitpodOpenVSXRegistryDown',
labels: {
severity: 'critical',
},
'for': '20m',
annotations: {
runbook_url: 'https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodOpenVsxRegistryDown.md',
summary: 'Open-VSX registry is possibly down',
description: 'Open-VSX registry is possibly down. We cannot pull VSCode extensions we don\'t have in our caches',
},
expr:
|||
sum(rate(gitpod_openvsx_proxy_requests_total{status=~"5..|error"}[5m])) / sum(rate(gitpod_openvsx_proxy_requests_total[5m])) > 0.01
|||,
},
],
},
],
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
* Licensed under the MIT License. See License-MIT.txt in the project root for license information.
*/

{
prometheusRules+:: {
groups+: [],
// There is no recording rules for this component.
},
}