mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
feat(speedtest-prometheus): add namespace selection for serviceMonitor (#787)
Signed-off-by: Julen Dixneuf <julend@padok.fr> Co-authored-by: Jeff Billimek <jeff@billimek.com>
This commit is contained in:
parent
1ea9ae8c14
commit
46c148edbd
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: speedtest-prometheus
|
name: speedtest-prometheus
|
||||||
description: Prometheus Exporter for the official Speedtest CLI
|
description: Prometheus Exporter for the official Speedtest CLI
|
||||||
type: application
|
type: application
|
||||||
version: 2.1.3
|
version: 2.2.0
|
||||||
appVersion: 1.1.0
|
appVersion: 1.1.0
|
||||||
keywords:
|
keywords:
|
||||||
- speedtest
|
- speedtest
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# speedtest-prometheus
|
# speedtest-prometheus
|
||||||
|
|
||||||
![Version: 2.1.3](https://img.shields.io/badge/Version-2.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.0](https://img.shields.io/badge/AppVersion-1.1.0-informational?style=flat-square)
|
![Version: 2.2.0](https://img.shields.io/badge/Version-2.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.0](https://img.shields.io/badge/AppVersion-1.1.0-informational?style=flat-square)
|
||||||
|
|
||||||
Prometheus Exporter for the official Speedtest CLI
|
Prometheus Exporter for the official Speedtest CLI
|
||||||
|
|
||||||
@ -101,6 +101,12 @@ All notable changes to this application Helm chart will be documented in this fi
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
### [2.2.0]
|
||||||
|
|
||||||
|
#### Added
|
||||||
|
|
||||||
|
- namespace selection for the serviceMonitor
|
||||||
|
|
||||||
### [2.1.1]
|
### [2.1.1]
|
||||||
|
|
||||||
#### Added
|
#### Added
|
||||||
|
@ -9,6 +9,12 @@ All notable changes to this application Helm chart will be documented in this fi
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
### [2.2.0]
|
||||||
|
|
||||||
|
#### Added
|
||||||
|
|
||||||
|
- namespace selection for the serviceMonitor
|
||||||
|
|
||||||
### [2.1.1]
|
### [2.1.1]
|
||||||
|
|
||||||
#### Added
|
#### Added
|
||||||
|
@ -3,12 +3,18 @@ apiVersion: monitoring.coreos.com/v1
|
|||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "speedtest-prometheus.fullname" . }}
|
name: {{ include "speedtest-prometheus.fullname" . }}
|
||||||
|
{{- if .Values.serviceMonitor.namespace }}
|
||||||
|
namespace: {{ .Values.serviceMonitor.namespace }}
|
||||||
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "speedtest-prometheus.labels" . | nindent 4 }}
|
{{- include "speedtest-prometheus.labels" . | nindent 4 }}
|
||||||
{{- with .Values.serviceMonitor.additionalLabels }}
|
{{- with .Values.serviceMonitor.additionalLabels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
namespaceSelector:
|
||||||
|
matchNames:
|
||||||
|
- {{ .Release.Namespace }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "speedtest-prometheus.selectorLabels" . | nindent 6 }}
|
{{- include "speedtest-prometheus.selectorLabels" . | nindent 6 }}
|
||||||
|
@ -52,5 +52,5 @@ serviceMonitor:
|
|||||||
enabled: false
|
enabled: false
|
||||||
interval: "60m"
|
interval: "60m"
|
||||||
scrapeTimeout: 90s
|
scrapeTimeout: 90s
|
||||||
# namespace: default
|
# namespace: monitoring
|
||||||
additionalLabels: {}
|
additionalLabels: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user