mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Added prometheus support to template
This commit is contained in:
@@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: template
|
name: template
|
||||||
description: A Helm library chart containing common templates, keeping application templates short
|
description: A Helm library chart containing common templates, keeping application templates short
|
||||||
type: library
|
type: library
|
||||||
version: 0.1.16
|
version: 0.1.17
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Jim Martens
|
- name: Jim Martens
|
||||||
url: https://2martens.de
|
url: https://2martens.de
|
||||||
@@ -11,7 +11,7 @@ sources:
|
|||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: added
|
- kind: added
|
||||||
description: Added revisionHistoryLimit config
|
description: Added prometheus support
|
||||||
artifacthub.io/signKey: |
|
artifacthub.io/signKey: |
|
||||||
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
|
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
|
||||||
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
|
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
|
||||||
|
|||||||
@@ -54,6 +54,9 @@ application:
|
|||||||
profile: prod
|
profile: prod
|
||||||
isSpring: true
|
isSpring: true
|
||||||
|
|
||||||
|
prometheus:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
# Overwrite with application specific environment variables
|
# Overwrite with application specific environment variables
|
||||||
# Each item has key and value, where the value is parsed as a template
|
# Each item has key and value, where the value is parsed as a template
|
||||||
environment: []
|
environment: []
|
||||||
|
|||||||
@@ -3,6 +3,16 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "template.fullname" . }}
|
name: {{ include "template.fullname" . }}
|
||||||
|
annotations:
|
||||||
|
{{- if .Values.prometheus.enabled }}
|
||||||
|
prometheus.io/scrape: "true"
|
||||||
|
{{- if .Values.application.isSpring }}
|
||||||
|
prometheus.io/path: /actuator/prometheus
|
||||||
|
{{- else }}
|
||||||
|
prometheus.io/path: /metrics
|
||||||
|
{{- end }}
|
||||||
|
prometheus.io/port: "{{ .Values.application.actuatorPort }}"
|
||||||
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "template.labels" . | nindent 4 }}
|
{{- include "template.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
Reference in New Issue
Block a user