-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #390 from vshn/addMetrics
Adding PrometheusAlertRules for cloud billing
- Loading branch information
Showing
20 changed files
with
523 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
37 changes: 37 additions & 0 deletions
37
.../cloudscale-metrics-collector-cloud/appcat/appcat/cloud_billing/30_cloudscale_alerts.yaml
This file contains 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,37 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: billing-collector-cloudservices | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: billing-collector-cloudservices | ||
automated-billing: 'true' | ||
name: cloudservices-billing | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: odoo_http_failures | ||
rules: | ||
- alert: HighOdooHTTPFailureRate | ||
annotations: | ||
description: The rate of failed Odoo HTTP requests (`billing_cloud_collector_http_requests_odoo_failed_total`) | ||
has increased significantly in the last minute. | ||
summary: High rate of Odoo HTTP failures detected | ||
expr: | | ||
billing_cloud_collector_http_requests_odoo_failed_total != 0 | ||
for: 1m | ||
labels: | ||
severity: critical | ||
syn_team: schedar | ||
- alert: HighProviderHTTPFailureRate | ||
annotations: | ||
description: The rate of failed Odoo HTTP requests (`billing_cloud_collector_http_requests_provider_failed_total`) | ||
has increased significantly in the last minute. | ||
summary: High rate of Automated-billing collector's providers HTTP failures | ||
detected | ||
expr: | | ||
billing_cloud_collector_http_requests_provider_failed_total != 0 | ||
for: 1m | ||
labels: | ||
severity: critical | ||
syn_team: schedar |
16 changes: 16 additions & 0 deletions
16
...ale-metrics-collector-cloud/appcat/appcat/cloud_billing/40_cloudscale_servicemonitor.yaml
This file contains 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,16 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: billing-collector-cloudservices | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: billing-collector-cloudservices | ||
automated-billing: 'true' | ||
name: cloudservices-servicemonitor | ||
namespace: syn-appcat | ||
spec: | ||
endpoints: | ||
- port: metrics | ||
selector: | ||
matchLabels: | ||
automated-billing: 'true' |
This file contains 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
37 changes: 37 additions & 0 deletions
37
...loudscale-metrics-collector-managed/appcat/appcat/cloud_billing/30_cloudscale_alerts.yaml
This file contains 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,37 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: billing-collector-cloudservices | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: billing-collector-cloudservices | ||
automated-billing: 'true' | ||
name: cloudservices-billing | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: odoo_http_failures | ||
rules: | ||
- alert: HighOdooHTTPFailureRate | ||
annotations: | ||
description: The rate of failed Odoo HTTP requests (`billing_cloud_collector_http_requests_odoo_failed_total`) | ||
has increased significantly in the last minute. | ||
summary: High rate of Odoo HTTP failures detected | ||
expr: | | ||
billing_cloud_collector_http_requests_odoo_failed_total != 0 | ||
for: 1m | ||
labels: | ||
severity: critical | ||
syn_team: schedar | ||
- alert: HighProviderHTTPFailureRate | ||
annotations: | ||
description: The rate of failed Odoo HTTP requests (`billing_cloud_collector_http_requests_provider_failed_total`) | ||
has increased significantly in the last minute. | ||
summary: High rate of Automated-billing collector's providers HTTP failures | ||
detected | ||
expr: | | ||
billing_cloud_collector_http_requests_provider_failed_total != 0 | ||
for: 1m | ||
labels: | ||
severity: critical | ||
syn_team: schedar |
16 changes: 16 additions & 0 deletions
16
...e-metrics-collector-managed/appcat/appcat/cloud_billing/40_cloudscale_servicemonitor.yaml
This file contains 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,16 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: billing-collector-cloudservices | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: billing-collector-cloudservices | ||
automated-billing: 'true' | ||
name: cloudservices-servicemonitor | ||
namespace: syn-appcat | ||
spec: | ||
endpoints: | ||
- port: metrics | ||
selector: | ||
matchLabels: | ||
automated-billing: 'true' |
Oops, something went wrong.