Skip to content

Commit

Permalink
make charts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommy12789 committed Jun 19, 2024
1 parent 594f1b6 commit 0a065ad
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,30 @@ spec:
matchLabels:
app: fleet-controller
{{- end }}
---
{{- if .Values.rancherMonitoring.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels: {{ include "kube-prometheus-stack.labels" . | nindent 4 }}
name: monitoring-gitops-controller
namespace: cattle-fleet-system
spec:
endpoints:
- port: metrics
metricRelabelings:
{{ if .Values.global.cattle.clusterId }}
- sourceLabels: [__address__]
targetLabel: cluster_id
replacement: {{ .Values.global.cattle.clusterId }}
{{- end }}
{{ if .Values.global.cattle.clusterName}}
- sourceLabels: [__address__]
targetLabel: cluster_name
replacement: {{ .Values.global.cattle.clusterName }}
{{- end }}
jobLabel: fleet
selector:
matchLabels:
app: gitjob
{{- end }}
4 changes: 2 additions & 2 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16332,7 +16332,7 @@ entries:
catalog.cattle.io/upstream-version: 45.31.1
apiVersion: v2
appVersion: v0.65.1
created: "2024-06-10T12:37:43.31781474+05:30"
created: "2024-06-19T12:08:12.806421+02:00"
dependencies:
- condition: grafana.enabled
name: grafana
Expand Down Expand Up @@ -16426,7 +16426,7 @@ entries:
and Prometheus rules combined with documentation and scripts to provide easy
to operate end-to-end Kubernetes cluster monitoring with Prometheus using the
Prometheus Operator.
digest: 2253fd78b306d6a60dc8d385a01c80bc581ae75e580298a44b6da85fdb9b0829
digest: 791c182386812ec8a0620bbc49eb3e37830f725243317e798c02802601c5c0ba
home: https://github.com/prometheus-operator/kube-prometheus
icon: file://assets/logos/rancher-monitoring.png
keywords:
Expand Down

0 comments on commit 0a065ad

Please sign in to comment.