Skip to content

Commit

Permalink
add fritz exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
nolte committed Nov 7, 2021
1 parent 4af2c7e commit 642b4c3
Show file tree
Hide file tree
Showing 6 changed files with 139 additions and 0 deletions.
26 changes: 26 additions & 0 deletions charts/stable/fritz-exporter/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS
# helm-docs templates
*.gotmpl
22 changes: 22 additions & 0 deletions charts/stable/fritz-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: v2
appVersion: v2.0.0
description: FritzBox Exporter
name: fritz-exporter
version: 0.0.1
kubeVersion: ">=1.16.0-0"
keywords:
- fritz-exporter
- fritzbox
home: https://github.com/k8s-at-home/charts/tree/master/charts/incubator/fritzbox-exporter
sources:
- https://github.com/pdreker/fritz_exporter
maintainers: []
dependencies:
- name: common
repository: https://library-charts.k8s-at-home.com
version: 4.0.1
- name: external-secrets-manifests
version: 0.1.1
repository: https://nolte.github.io/helm-charts-repo/
alias: externalsecrets
condition: externalsecrets.enabled
1 change: 1 addition & 0 deletions charts/stable/fritz-exporter/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{- include "common.notes.defaultNotes" . -}}
1 change: 1 addition & 0 deletions charts/stable/fritz-exporter/templates/common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ include "common.all" . }}
24 changes: 24 additions & 0 deletions charts/stable/fritz-exporter/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{- if .Values.metrics.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "common.names.fullname" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
{{- with .Values.metrics.serviceMonitor.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
{{- include "common.labels.selectorLabels" . | nindent 6 }}
endpoints:
- port: metrics
{{- with .Values.metrics.serviceMonitor.interval }}
interval: {{ . }}
{{- end }}
{{- with .Values.metrics.serviceMonitor.scrapeTimeout }}
scrapeTimeout: {{ . }}
{{- end }}
path: /metrics
{{- end }}
65 changes: 65 additions & 0 deletions charts/stable/fritz-exporter/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#
# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
#

image:
# -- image repository
repository: pdreker/fritz_exporter
# -- image tag
tag: v2.0.0
# -- image pull policy
pullPolicy: IfNotPresent

controller:
strategy: RollingUpdate


# -- environment variables. See [application docs](https://docs.miguelndecarvalho.pt/projects/speedtest-exporter/) for more details.
# @default -- See below
env:
# -- Set the container timezone
TZ: UTC

# -- Configures service settings for the chart.
# @default -- See values.yaml
service:
main:
ports:
http:
enabled: false
metrics:
enabled: true
protocol: TCP
port: 9787

metrics:
# -- Enable and configure a Prometheus serviceMonitor for the chart under this key.
# @default -- See values.yaml
enabled: false
serviceMonitor:
labels: {}


envFrom:
- secretRef:
name: fritz-creds

externalsecrets:
enabled: true
secrets:
fritz-creds:
data:
- key: secrets-tf/data/services/router-fritz-box/users/admin
name: FRITZ_HOSTNAME
property: endpoint

- key: secrets-tf/data/services/router-fritz-box/users/admin
name: FRITZ_USERNAME
property: username

- key: secrets-tf/data/services/router-fritz-box/users/admin
name: FRITZ_PASSWORD
property: password

0 comments on commit 642b4c3

Please sign in to comment.