forked from werdnum/kubernetes-pressurecooker
-
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.
added podmonitor for metrics scraping
- Loading branch information
1 parent
908210e
commit 026c1ba
Showing
3 changed files
with
29 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
name: kube-prometheus-stack-multicooker-metrics | ||
namespace: monitoring | ||
labels: | ||
#some of those labels should match the "spec.selector.matchLatels" of prometheus otherwise metrics won't be available in targets | ||
app: kube-prometheus-stack-operator | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
release: kube-prometheus-stack | ||
{{- range $key, $value := .Values.serviceMonitor.additionalLabels }} | ||
{{ $key }}: {{ $value | quote }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: {{ include "chart.name" . }} | ||
podMetricsEndpoints: | ||
- port: metrics | ||
- path: "/metrics" |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
image: | ||
repository: docmarr/kubernetes-multicooker | ||
tag: "1.0.0" | ||
tag: "1.0.2" | ||
pullPolicy: Always | ||
|
||
nameOverride: "" | ||
|