Skip to content

Commit

Permalink
feat(tibber) add tibber-exporter chart.
Browse files Browse the repository at this point in the history
  • Loading branch information
dniel committed Apr 11, 2022
1 parent 196e43f commit 0568e8d
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 0 deletions.
22 changes: 22 additions & 0 deletions charts/tibber-exporter/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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/
11 changes: 11 additions & 0 deletions charts/tibber-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
name: tibber-exporter
description: Prometheus tibber-exporter container.
type: application
version: 0.0.1
appVersion: v0.18.3

dependencies:
- name: common
repository: https://library-charts.k8s-at-home.com
version: 4.3.0
1 change: 1 addition & 0 deletions charts/tibber-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/tibber-exporter/templates/common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ include "common.all" . }}
22 changes: 22 additions & 0 deletions charts/tibber-exporter/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "common.names.fullname" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
{{- with .Values.serviceMonitor.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
{{- include "common.labels.selectorLabels" . | nindent 6 }}
endpoints:
- port: http
{{- with .Values.serviceMonitor.interval }}
interval: {{ . }}
{{- end }}
{{- with .Values.serviceMonitor.scrapeTimeout }}
scrapeTimeout: {{ . }}
{{- end }}
path: /metrics
16 changes: 16 additions & 0 deletions charts/tibber-exporter/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Default values for the prometheus vmware-exporter container
image:
repository: pryorda/vmware_exporter
pullPolicy: IfNotPresent
tag: v0.18.3

env:
TZ: UTC
PUID: "1001"
PGID: "1001"

service:
main:
ports:
http:
port: "9501"

0 comments on commit 0568e8d

Please sign in to comment.