mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-02 13:23:13 +00:00
- Update paths and orchestration for deployers (compose/k8s/local/docker) - Consolidate scripts helpers and refresh book/README docs
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
{{- if .Values.prometheus.enabled }}
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: prometheus
|
|
labels:
|
|
{{- include "nomos-runner.prometheusLabels" . | nindent 4 }}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
{{- include "nomos-runner.prometheusLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{- include "nomos-runner.prometheusLabels" . | nindent 8 }}
|
|
spec:
|
|
containers:
|
|
- name: prometheus
|
|
image: {{ .Values.prometheus.image }}
|
|
imagePullPolicy: {{ .Values.prometheus.imagePullPolicy | default "IfNotPresent" }}
|
|
args:
|
|
- --config.file=/etc/prometheus/prometheus.yml
|
|
- --storage.tsdb.retention.time={{ .Values.prometheus.retention }}
|
|
- --web.enable-otlp-receiver
|
|
- --enable-feature=otlp-write-receiver
|
|
ports:
|
|
- containerPort: 9090
|
|
name: http
|
|
volumeMounts:
|
|
- name: prometheus-config
|
|
mountPath: /etc/prometheus
|
|
volumes:
|
|
- name: prometheus-config
|
|
configMap:
|
|
name: prometheus
|
|
{{- end }}
|