Skip to content

Commit e6d30d3

Browse files
author
github-actions
committed
Update perfectscale-agent chart with new package version v1.0.46
1 parent 7bf892d commit e6d30d3

File tree

6 files changed

+45
-3
lines changed

6 files changed

+45
-3
lines changed

charts/perfectscale-agent/Chart.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ description: PerfectScale data exporter
44
type: application
55
version: 0.1.0
66
appVersion: 1.0.0
7-
7+
kubeVersion: '>=1.21.0-0'
88
dependencies:
99
- name: kube-state-metrics
1010
version: "5.13.0"
1111
repository: https://prometheus-community.github.io/helm-charts
1212
condition: settings.deployKubeStateMetrics
13+
annotations:
14+
charts.openshift.io/name: exporter

charts/perfectscale-agent/templates/prometheus-rule.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,23 @@ spec:
1717
groups:
1818
- name: {{ $fullName }}
1919
rules:
20+
{{- if .Values.prometheusRule.cpuUtilization.enable }}
21+
- alert: PerfectScale exporter high CPU utilization
22+
annotations:
23+
description: "More than {{ .Values.prometheusRule.cpuUtilization.threshold }} CPU cores where utilized by PerfectScale's exporter in the last 5 minutes."
24+
runbook: "Please, contact PerfectScale support"
25+
summary: "{{ $fullName }} high CPU utilization by exporter"
26+
expr: |
27+
avg_over_time(rate(container_cpu_usage_seconds_total{pod=~"{{ $fullName }}-.*", container="{{ .Chart.Name }}"}[1m])[5m:1s]) > {{ .Values.prometheusRule.cpuUtilization.threshold }}
28+
for: 30m
29+
labels:
30+
{{- if .Values.prometheusRule.team }}
31+
team: {{ .Values.prometheusRule.team }}
32+
{{- end}}
33+
{{- if .Values.prometheusRule.severity }}
34+
severity: {{ .Values.prometheusRule.severity }}
35+
{{- end}}
36+
{{- end }}
2037
- alert: PerfectScale exporter High KSM Scraping Error Rate
2138
annotations:
2239
description: "More than 30% of kube-state-metrics scraping attempts resulted in an error in the last 30 minutes."

charts/perfectscale-agent/templates/secret.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{{- $fullName := include "helm.fullname" . -}}
2-
---
32
{{- if .Values.secret.create -}}
43
apiVersion: v1
54
kind: Secret

charts/perfectscale-agent/templates/tests/test-connection.yaml

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"properties": {
5+
"image": {
6+
"type": "object",
7+
"properties": {
8+
"repository": {
9+
"type": "string",
10+
"description": "Docker repository for the image"
11+
},
12+
"tag": {
13+
"type": "string",
14+
"description": "Tag for the image"
15+
}
16+
},
17+
"required": ["repository", "tag"]
18+
}
19+
},
20+
"required": ["image"]
21+
}

charts/perfectscale-agent/values.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ replicaCount: 1
22
image:
33
repository: public.ecr.aws/perfectscale-io/psc-exporter
44
pullPolicy: Always
5-
tag: "v1.0.45"
5+
tag: "v1.0.46"
66
initContainer:
77
image:
88
repository: public.ecr.aws/perfectscale-io/alpine
@@ -139,6 +139,9 @@ prometheusRule:
139139
cAdvisorScraping:
140140
timeRange: "30m"
141141
threshold: 0.3
142+
cpuUtilization:
143+
enable: false
144+
threshold: 8 # default value
142145
grafana:
143146
dashboard:
144147
enabled: false

0 commit comments

Comments
 (0)