mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 06:40:39 +00:00
feat: Update OneUptime chart to use probes
instead of probe
for probe configuration
This commit is contained in:
parent
8a77ae977e
commit
3bf74edae4
@ -89,7 +89,7 @@ Usage:
|
||||
value: {{ printf "false" | squote }}
|
||||
|
||||
- name: OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT
|
||||
value: {{ $.Values.openTelemetryExporter.endpoint.client }}
|
||||
value: {{ $.Values.openTelemetryExporter.endpoint }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "oneuptime.env.oneuptimeSecret" }}
|
||||
@ -109,7 +109,7 @@ Usage:
|
||||
value: {{ printf "true" | squote }}
|
||||
|
||||
- name: OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT
|
||||
value: {{ $.Values.openTelemetryExporter.endpoint.server }}
|
||||
value: {{ $.Values.openTelemetryExporter.endpoint }}
|
||||
|
||||
- name: NOTIFICATION_WEBHOOK_ON_CREATED_USER
|
||||
value: {{ $.Values.notifications.webhooks.onCreateUser }}
|
||||
|
@ -1,5 +1,5 @@
|
||||
# OneUptime accounts Deployment
|
||||
{{- $accountsEnv := dict "OPENTELEMETRY_EXPORTER_OTLP_HEADERS" $.Values.openTelemetryExporter.headers.accounts "PORT" $.Values.port.accounts -}}
|
||||
{{- $accountsEnv := dict "OPENTELEMETRY_EXPORTER_OTLP_HEADERS" $.Values.openTelemetryExporter.headers "PORT" $.Values.port.accounts -}}
|
||||
{{- $accountsPorts := dict "port" $.Values.port.accounts -}}
|
||||
{{- $accountsDeploymentArgs :=dict "IsUI" true "ServiceName" "accounts" "Ports" $accountsPorts "Release" $.Release "Values" $.Values "Env" $accountsEnv -}}
|
||||
{{- include "oneuptime.deployment" $accountsDeploymentArgs }}
|
||||
|
@ -1,5 +1,5 @@
|
||||
# OneUptime adminDashboard Deployment
|
||||
{{- $adminDashboardEnv := dict "OPENTELEMETRY_EXPORTER_OTLP_HEADERS" $.Values.openTelemetryExporter.headers.adminDashboard "PORT" $.Values.port.adminDashboard -}}
|
||||
{{- $adminDashboardEnv := dict "OPENTELEMETRY_EXPORTER_OTLP_HEADERS" $.Values.openTelemetryExporter.headers "PORT" $.Values.port.adminDashboard -}}
|
||||
{{- $adminDashboardPorts := dict "port" $.Values.port.adminDashboard -}}
|
||||
{{- $adminDashboardDeploymentArgs :=dict "IsUI" true "ServiceName" "admin-dashboard" "Ports" $adminDashboardPorts "Release" $.Release "Values" $.Values "Env" $adminDashboardEnv -}}
|
||||
{{- include "oneuptime.deployment" $adminDashboardDeploymentArgs }}
|
||||
|
@ -62,7 +62,7 @@ spec:
|
||||
{{- include "oneuptime.env.commonServer" . | nindent 12 }}
|
||||
{{- include "oneuptime.env.oneuptimeSecret" . | nindent 12 }}
|
||||
- name: OPENTELEMETRY_EXPORTER_OTLP_HEADERS
|
||||
value: {{ $.Values.openTelemetryExporter.headers.app }}
|
||||
value: {{ $.Values.openTelemetryExporter.headers }}
|
||||
- name: PORT
|
||||
value: {{ $.Values.port.app | quote }}
|
||||
- name: SMS_HIGH_RISK_COST_IN_CENTS
|
||||
|
@ -1,6 +1,6 @@
|
||||
# OneUptime dashboard Deployment
|
||||
{{- $dashboardPorts := dict "port" $.Values.port.dashboard -}}
|
||||
{{- $dashboardEnv := dict "OPENTELEMETRY_EXPORTER_OTLP_HEADERS" $.Values.openTelemetryExporter.headers.dashboard "PORT" $.Values.port.dashboard -}}
|
||||
{{- $dashboardEnv := dict "OPENTELEMETRY_EXPORTER_OTLP_HEADERS" $.Values.openTelemetryExporter.headers "PORT" $.Values.port.dashboard -}}
|
||||
{{- $dashboardDeploymentArgs :=dict "IsUI" true "ServiceName" "dashboard" "Ports" $dashboardPorts "Release" $.Release "Values" $.Values "Env" $dashboardEnv -}}
|
||||
{{- include "oneuptime.deployment" $dashboardDeploymentArgs }}
|
||||
---
|
||||
|
@ -71,7 +71,7 @@ spec:
|
||||
{{- include "oneuptime.env.commonServer" . | nindent 12 }}
|
||||
{{- include "oneuptime.env.oneuptimeSecret" . | nindent 12 }}
|
||||
- name: OPENTELEMETRY_EXPORTER_OTLP_HEADERS
|
||||
value: {{ $.Values.openTelemetryExporter.headers.ingestor }}
|
||||
value: {{ $.Values.openTelemetryExporter.headers }}
|
||||
- name: PORT
|
||||
value: {{ $.Values.port.ingestor | quote }}
|
||||
ports:
|
||||
|
@ -46,7 +46,7 @@ spec:
|
||||
{{- include "oneuptime.env.common" . | nindent 12 }}
|
||||
{{- include "oneuptime.env.oneuptimeSecret" . | nindent 12 }}
|
||||
- name: OPENTELEMETRY_EXPORTER_OTLP_HEADERS
|
||||
value: {{ $.Values.openTelemetryExporter.headers.isolatedVM }}
|
||||
value: {{ $.Values.openTelemetryExporter.headers }}
|
||||
- name: PORT
|
||||
value: {{ $.Values.port.isolatedVM | quote }}
|
||||
|
||||
|
@ -87,7 +87,7 @@ spec:
|
||||
- name: ONEUPTIME_HTTP_PORT
|
||||
value: {{ $.Values.port.nginxHttp | quote }}
|
||||
- name: OPENTELEMETRY_EXPORTER_OTLP_HEADERS
|
||||
value: {{ $.Values.openTelemetryExporter.headers.nginx }}
|
||||
value: {{ $.Values.openTelemetryExporter.headers }}
|
||||
- name: PORT
|
||||
value: "7851" # Port for the nodejs server for live and ready status
|
||||
ports:
|
||||
|
@ -49,7 +49,7 @@ spec:
|
||||
- name: OPENTELEMETRY_EXPORTER_OTLP_HEADERS
|
||||
value: {{ $val.openTelemetryExporter.headers }}
|
||||
- name: OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT
|
||||
value: {{ $.Values.openTelemetryExporter.endpoint.server }}
|
||||
value: {{ $.Values.openTelemetryExporter.endpoint }}
|
||||
- name: ONEUPTIME_URL
|
||||
value: http://{{ $.Release.Name }}-ingestor.{{ $.Release.Namespace }}.svc.{{ $.Values.global.clusterDomain }}:{{ $.Values.port.ingestor }}
|
||||
- name: PROBE_NAME
|
||||
|
@ -1,6 +1,6 @@
|
||||
# OneUptime statusPage Deployment
|
||||
{{- $statusPagePorts := dict "port" $.Values.port.statusPage -}}
|
||||
{{- $statusPageEnv := dict "OPENTELEMETRY_EXPORTER_OTLP_HEADERS" $.Values.openTelemetryExporter.headers.statusPage "PORT" $.Values.port.statusPage -}}
|
||||
{{- $statusPageEnv := dict "OPENTELEMETRY_EXPORTER_OTLP_HEADERS" $.Values.openTelemetryExporter.headers "PORT" $.Values.port.statusPage -}}
|
||||
{{- $statusPageDeploymentArgs :=dict "IsUI" true "ServiceName" "status-page" "Ports" $statusPagePorts "Release" $.Release "Values" $.Values "Env" $statusPageEnv -}}
|
||||
{{- include "oneuptime.deployment" $statusPageDeploymentArgs }}
|
||||
---
|
||||
|
@ -161,9 +161,6 @@ probes:
|
||||
replicaCount: 1
|
||||
syntheticMonitorScriptTimeoutInMs: 60000
|
||||
customCodeMonitorScriptTimeoutInMs: 60000
|
||||
# Feel free to leave this blank if you're not integrating this with OpenTelemetry Backend.
|
||||
openTelemetryExporter:
|
||||
headers:
|
||||
# two:
|
||||
# name: "Probe 2"
|
||||
# description: "Probe 2"
|
||||
@ -173,8 +170,6 @@ probes:
|
||||
# replicaCount: 1
|
||||
# syntheticMonitorScriptTimeoutInMs: 60000
|
||||
# customCodeMonitorScriptTimeoutInMs: 60000
|
||||
# openTelemetryExporter:
|
||||
# headers:
|
||||
|
||||
port:
|
||||
app: 3002
|
||||
@ -200,17 +195,9 @@ testServer:
|
||||
|
||||
|
||||
openTelemetryExporter:
|
||||
endpoint:
|
||||
server:
|
||||
client:
|
||||
endpoint:
|
||||
# This can be for example: x-oneuptime-token=<YOUR_ONEUPTIME_TELEMETRY_INGEST_TOKEN>
|
||||
headers:
|
||||
app:
|
||||
dashboard:
|
||||
accounts:
|
||||
statusPage:
|
||||
adminDashboard:
|
||||
ingestor:
|
||||
nginx:
|
||||
|
||||
containerSecurityContext:
|
||||
podSecurityContext:
|
||||
|
@ -2,8 +2,8 @@ extensions:
|
||||
headers_setter:
|
||||
headers:
|
||||
- action: upsert
|
||||
key: x-oneuptime-service-token
|
||||
from_context: x-oneuptime-service-token
|
||||
key: x-oneuptime-token
|
||||
from_context: x-oneuptime-token
|
||||
|
||||
processors:
|
||||
|
||||
|
@ -199,19 +199,12 @@ SERVER_OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT=
|
||||
# You can set the env var to http://localhost/otlp if you want instrumentation to be sent to local otel collector.
|
||||
CLIENT_OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT=
|
||||
|
||||
# You can set the env var to "x-oneuptime-token=<YOUR_ONEUPTIME_SERVICE_TOKEN>"
|
||||
APP_OPENTELEMETRY_EXPORTER_OTLP_HEADERS=
|
||||
PROBE_OPENTELEMETRY_EXPORTER_OTLP_HEADERS=
|
||||
DASHBOARD_OPENTELEMETRY_EXPORTER_OTLP_HEADERS=
|
||||
STATUS_PAGE_OPENTELEMETRY_EXPORTER_OTLP_HEADERS=
|
||||
ACCOUNTS_OPENTELEMETRY_EXPORTER_OTLP_HEADERS=
|
||||
ADMIN_DASHBOARD_OPENTELEMETRY_EXPORTER_OTLP_HEADERS=
|
||||
|
||||
# You can set the env var to "x-oneuptime-token=<YOUR_ONEUPTIME_TELEMETRY_INGEST_TOKEN>"
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS=
|
||||
|
||||
# This can be one of ERROR, WARN, INFO, DEBUG
|
||||
LOG_LEVEL=ERROR
|
||||
|
||||
|
||||
# Thse env vars are for E2E tests
|
||||
E2E_TEST_IS_USER_REGISTERED=false
|
||||
E2E_TEST_REGISTERED_USER_EMAIL=
|
||||
|
@ -173,7 +173,7 @@ services:
|
||||
<<: *common-ui-variables
|
||||
PORT: ${ACCOUNTS_PORT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT: ${CLIENT_OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${ACCOUNTS_OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
|
||||
logging:
|
||||
driver: "local"
|
||||
@ -205,7 +205,7 @@ services:
|
||||
<<: *common-ui-variables
|
||||
PORT: ${ADMIN_DASHBOARD_PORT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT: ${CLIENT_OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${ADMIN_DASHBOARD_OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
logging:
|
||||
driver: "local"
|
||||
options:
|
||||
@ -219,7 +219,7 @@ services:
|
||||
<<: *common-ui-variables
|
||||
PORT: ${DASHBOARD_PORT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT: ${CLIENT_OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${DASHBOARD_OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
logging:
|
||||
driver: "local"
|
||||
options:
|
||||
@ -235,7 +235,7 @@ services:
|
||||
<<: *common-ui-variables
|
||||
PORT: ${STATUS_PAGE_PORT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT: ${CLIENT_OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${STATUS_PAGE_OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
logging:
|
||||
driver: "local"
|
||||
options:
|
||||
@ -271,7 +271,7 @@ services:
|
||||
INTERNAL_SMTP_FROM_NAME: ${INTERNAL_SMTP_FROM_NAME}
|
||||
INTERNAL_SMTP_PASSWORD: ${INTERNAL_SMTP_PASSWORD}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT: ${SERVER_OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${APP_OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
logging:
|
||||
driver: "local"
|
||||
options:
|
||||
@ -293,7 +293,7 @@ services:
|
||||
ONEUPTIME_URL: ${GLOBAL_PROBE_1_ONEUPTIME_URL}
|
||||
PROBE_MONITOR_FETCH_LIMIT: ${GLOBAL_PROBE_1_MONITOR_FETCH_LIMIT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT: ${SERVER_OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${PROBE_OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
logging:
|
||||
driver: "local"
|
||||
options:
|
||||
@ -315,7 +315,7 @@ services:
|
||||
PROBE_CUSTOM_CODE_MONITOR_SCRIPT_TIMEOUT_IN_MS: ${GLOBAL_PROBE_2_CUSTOM_CODE_MONITOR_SCRIPT_TIMEOUT_IN_MS}
|
||||
PROBE_MONITOR_FETCH_LIMIT: ${GLOBAL_PROBE_2_MONITOR_FETCH_LIMIT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT: ${SERVER_OPENTELEMETRY_EXPORTER_OTLP_ENDPOINT}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${PROBE_OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
OPENTELEMETRY_EXPORTER_OTLP_HEADERS: ${OPENTELEMETRY_EXPORTER_OTLP_HEADERS}
|
||||
logging:
|
||||
driver: "local"
|
||||
options:
|
||||
|
Loading…
Reference in New Issue
Block a user