Skip to content

Commit

Permalink
Update perfectscale-agent chart with new package version v1.0.46
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 29, 2024
1 parent 7bf892d commit e6d30d3
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 3 deletions.
4 changes: 3 additions & 1 deletion charts/perfectscale-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ description: PerfectScale data exporter
type: application
version: 0.1.0
appVersion: 1.0.0

kubeVersion: '>=1.21.0-0'
dependencies:
- name: kube-state-metrics
version: "5.13.0"
repository: https://prometheus-community.github.io/helm-charts
condition: settings.deployKubeStateMetrics
annotations:
charts.openshift.io/name: exporter
17 changes: 17 additions & 0 deletions charts/perfectscale-agent/templates/prometheus-rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@ spec:
groups:
- name: {{ $fullName }}
rules:
{{- if .Values.prometheusRule.cpuUtilization.enable }}
- alert: PerfectScale exporter high CPU utilization
annotations:
description: "More than {{ .Values.prometheusRule.cpuUtilization.threshold }} CPU cores where utilized by PerfectScale's exporter in the last 5 minutes."
runbook: "Please, contact PerfectScale support"
summary: "{{ $fullName }} high CPU utilization by exporter"
expr: |
avg_over_time(rate(container_cpu_usage_seconds_total{pod=~"{{ $fullName }}-.*", container="{{ .Chart.Name }}"}[1m])[5m:1s]) > {{ .Values.prometheusRule.cpuUtilization.threshold }}
for: 30m
labels:
{{- if .Values.prometheusRule.team }}
team: {{ .Values.prometheusRule.team }}
{{- end}}
{{- if .Values.prometheusRule.severity }}
severity: {{ .Values.prometheusRule.severity }}
{{- end}}
{{- end }}
- alert: PerfectScale exporter High KSM Scraping Error Rate
annotations:
description: "More than 30% of kube-state-metrics scraping attempts resulted in an error in the last 30 minutes."
Expand Down
1 change: 0 additions & 1 deletion charts/perfectscale-agent/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- $fullName := include "helm.fullname" . -}}
---
{{- if .Values.secret.create -}}
apiVersion: v1
kind: Secret
Expand Down
Empty file.
21 changes: 21 additions & 0 deletions charts/perfectscale-agent/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"image": {
"type": "object",
"properties": {
"repository": {
"type": "string",
"description": "Docker repository for the image"
},
"tag": {
"type": "string",
"description": "Tag for the image"
}
},
"required": ["repository", "tag"]
}
},
"required": ["image"]
}
5 changes: 4 additions & 1 deletion charts/perfectscale-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1
image:
repository: public.ecr.aws/perfectscale-io/psc-exporter
pullPolicy: Always
tag: "v1.0.45"
tag: "v1.0.46"
initContainer:
image:
repository: public.ecr.aws/perfectscale-io/alpine
Expand Down Expand Up @@ -139,6 +139,9 @@ prometheusRule:
cAdvisorScraping:
timeRange: "30m"
threshold: 0.3
cpuUtilization:
enable: false
threshold: 8 # default value
grafana:
dashboard:
enabled: false
Expand Down

0 comments on commit e6d30d3

Please sign in to comment.