Skip to content

Commit

Permalink
[collector] limit prometheus rules to opentelemetrycollector applicat…
Browse files Browse the repository at this point in the history
…ion (#885)

Signed-off-by: Andre Baptista Aguas <[email protected]>
  • Loading branch information
abaguas authored Sep 7, 2023
1 parent dd60679 commit a4e2d58
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion charts/opentelemetry-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-operator
version: 0.36.0
version: 0.37.0
description: OpenTelemetry Operator Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
annotations:
cert-manager.io/inject-ca-from: default/example-opentelemetry-operator-serving-cert
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -85,7 +85,7 @@ metadata:
annotations:
cert-manager.io/inject-ca-from: default/example-opentelemetry-operator-serving-cert
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -29,7 +29,7 @@ apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -214,7 +214,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -232,7 +232,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -25,7 +25,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -31,7 +31,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: opentelemetry-operator
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: "example-opentelemetry-operator-cert-manager"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: "example-opentelemetry-operator-metrics"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -43,7 +43,7 @@ metadata:
name: "example-opentelemetry-operator-webhook"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.36.0
helm.sh/chart: opentelemetry-operator-0.37.0
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.83.0"
app.kubernetes.io/managed-by: Helm
Expand Down
4 changes: 2 additions & 2 deletions charts/opentelemetry-operator/templates/prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ spec:
- name: managerRules
rules:
- alert: ReconcileErrors
expr: rate(controller_runtime_reconcile_total{result="error"}[5m]) > 0
expr: rate(controller_runtime_reconcile_total{controller="opentelemetrycollector",result="error"}[5m]) > 0
for: 5m
labels:
severity: warning
annotations:
description: '{{`Reconciliation errors for {{ $labels.controller }} is increasing and has now reached {{ humanize $value }} `}}'
runbook_url: 'Check manager logs for reasons why this might happen'
- alert: WorkqueueDepth
expr: workqueue_depth > 0
expr: workqueue_depth{name="opentelemetrycollector"} > 0
for: 5m
labels:
severity: warning
Expand Down

0 comments on commit a4e2d58

Please sign in to comment.