Skip to content

Commit

Permalink
fix and make options configurable (#17)
Browse files Browse the repository at this point in the history
* fix and make options configurable

* update dep
  • Loading branch information
eumel8 authored Dec 9, 2024
1 parent d551809 commit 335b6dc
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 51 deletions.
6 changes: 3 additions & 3 deletions chart/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: kepler
repository: https://sustainable-computing-io.github.io/kepler-helm-chart
version: 0.5.7
digest: sha256:06e69896b39d58fa3bb05a05062f4cab4af4975cbe770d29baa3d17b63b4b1f5
generated: "2024-07-31T08:52:31.96331+02:00"
version: 0.5.12
digest: sha256:f9d92b78b165920760a8107aeff9e6d52908b552828464221ac6a1c417ffbb2e
generated: "2024-12-09T08:43:28.946969+01:00"
7 changes: 4 additions & 3 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ annotations:
catalog.cattle.io/display-name: CaaS Carbon Footprint
name: caas-carbon-footprint
description: A Helm chart for carbon footprint measurement
version: "0.0.14"
appVersion: "0.0.14"
version: "0.0.15"
appVersion: "0.0.15"
keywords:
- monitoring
dependencies:
- name: kepler
version: "0.5.7"
version: "0.5.12"
repository: "https://sustainable-computing-io.github.io/kepler-helm-chart"
condition: kepler.enabled
sources:
- https://github.com/sustainable-computing-io/kepler
maintainers:
Expand Down
Binary file added chart/charts/kepler-0.5.12.tgz
Binary file not shown.
3 changes: 2 additions & 1 deletion chart/templates/entsoe-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ if .Values.entsoe.enabled }}
{{- if .Values.entsoe.entsoe_api_key}}
apiVersion: v1
kind: Secret
Expand All @@ -12,4 +13,4 @@ metadata:
data:
entsoe_api_key: {{ .Values.entsoe.entsoe_api_key | b64enc | quote }}
{{- end }}

{{- end }}
2 changes: 2 additions & 0 deletions chart/templates/entsoe-servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ if .Values.entsoe.enabled }}
{{ if .Values.entsoe.serviceMonitor.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
Expand Down Expand Up @@ -27,3 +28,4 @@ spec:
app.kubernetes.io/component: entsoe
{{- include "caas-carbon-footprint.selectorLabels" . | nindent 6 }}
{{ end }}
{{ end }}
2 changes: 2 additions & 0 deletions chart/templates/grafana-dashboards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
{{- end }}
labels:
grafana_dashboard: "1"
{{- if .Values.rancher.cattleDashboards }}
release: rancher-monitoring
{{- end }}
data:
{{ (.Files.Glob "files/*").AsConfig | indent 2 }}
41 changes: 0 additions & 41 deletions chart/templates/kepler-servicemonitor.yaml

This file was deleted.

15 changes: 12 additions & 3 deletions chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Install Kepler Exporter from Kepler Chart
kepler:
enabled: true
# dashboard setting remark: https://www.eia.gov/tools/faqs/faq.php?id=74&t=11
global:
namespace: cattle-monitoring-system
#global:
# namespace: cattle-monitoring-system
selectorLabels:
app.kubernetes.io/name: caas-carbon-footprint
image:
Expand All @@ -16,6 +17,13 @@ kepler:
requests:
cpu: 200m
memory: 128Mi
rbac:
create: true
serviceAccount:
create: true
# name:
serviceMonitor:
enabled: true

# Install Entsoe Exporter
entsoe:
Expand Down Expand Up @@ -55,6 +63,7 @@ entsoe:
# beware of the API request limit
# sec. 1.8 https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html
serviceMonitor:
enabled: true
interval: 10m
# hours back when entsoe metrics should collected
# note: sometimes no real time data for Germany, must be at least one day back
Expand All @@ -63,5 +72,5 @@ entsoe:
# install app in Rancher environment
# this will user Rancher defined namespaces and labels
rancher:
enabled: true
enabled: false
cattleDashboards: false

0 comments on commit 335b6dc

Please sign in to comment.