[adguard-home] remove useless prometheus references (#1175)

This commit is contained in:
j_r0dd 2021-09-12 16:42:13 -04:00 committed by GitHub
parent abc787fd38
commit ae5e2b23dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 34 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v0.106.3
description: DNS proxy as ad-blocker for local network
name: adguard-home
version: 5.0.1
version: 5.0.2
kubeVersion: ">=1.16.0-0"
keywords:
- adguard-home

View File

@ -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).
### [5.1.0]
#### Removed
- Removed serviceMonitor since AdguardHome doesn't have prometheus metrics. An exporter would be needed instead.
### [5.0.1]
#### Changed
@ -55,6 +61,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[5.1.0]: #510
[5.0.1]: #501
[5.0.0]: #500
[4.0.1]: #401

View File

@ -1,21 +0,0 @@
{{- if .Values.prometheus.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ template "common.names.fullname" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
{{- with .Values.prometheus.serviceMonitor.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
{{- include "common.labels.selectorLabels" . | nindent 6 }}
endpoints:
- port: http
{{- with .Values.prometheus.serviceMonitor.interval }}
interval: {{ . }}
{{- end }}
path: /
{{- end }}

View File

@ -94,18 +94,6 @@ persistence:
enabled: false
mountPath: /opt/adguardhome/work
prometheus:
# -- Enable and configure a Prometheus serviceMonitor for the chart under this key.
# @default -- See values.yaml
serviceMonitor:
enabled: false
interval: 30s
additionalLabels: {}
# podAnnotations:
# prometheus.io/scrape: "true"
# prometheus.io/port: "api"
# config -- AdGuard Home configuration. For a full list of options see https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration.
# @default -- See values.yaml
config: |