Compare commits
7
Commits
3ae6d51fb2
..
good
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5eddaf2c2 | ||
|
|
9b986a4953 | ||
|
|
1a2a820273 | ||
|
|
af850e4bd5 | ||
|
|
dddb91e2a7 | ||
|
|
9a125bb29d | ||
|
|
1420a0b354 |
@@ -10,10 +10,10 @@ helm template -n netdata netdata netdata/netdata \
|
||||
--set image.tag=edge \
|
||||
--set parent.claiming.enabled="true" \
|
||||
--set parent.claiming.token=CIlCwV6GawNWIfhrqMVmPAJixo_BSaGvwVbHKFOCQCHbYG5J8Ac0FDxKrObJ727F1dndg8J-v6apUhzGho6RIOlkrqJ_F7DKodjLqbsSWb7Ta-GSHkkuHcTXidxKxEo5RK0jiqU \
|
||||
--set parent.claiming.rooms=cd70f310-47a2-4b24-b7d3-0fc4205450d4 \
|
||||
--set parent.claiming.rooms=e15a4f12-89d7-4d5b-b588-6658fa835473 \
|
||||
--set child.claiming.enabled="true" \
|
||||
--set child.claiming.token=CIlCwV6GawNWIfhrqMVmPAJixo_BSaGvwVbHKFOCQCHbYG5J8Ac0FDxKrObJ727F1dndg8J-v6apUhzGho6RIOlkrqJ_F7DKodjLqbsSWb7Ta-GSHkkuHcTXidxKxEo5RK0jiqU \
|
||||
--set child.claiming.rooms=cd70f310-47a2-4b24-b7d3-0fc4205450d4 > /opt/kubernetes/netdata_kube/netdata_helm.yml
|
||||
--set child.claiming.rooms=e15a4f12-89d7-4d5b-b588-6658fa835473 > /opt/kubernetes/netdata_kube/netdata_helm.yml
|
||||
```
|
||||
|
||||
I had to manually add a namespace block
|
||||
@@ -22,7 +22,7 @@ I had to manually add a namespace block
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: bookstack
|
||||
name: netdata
|
||||
```
|
||||
|
||||
|
||||
|
||||
+161
-5
@@ -1,10 +1,9 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: netdata
|
||||
---
|
||||
|
||||
---
|
||||
# Source: netdata/templates/serviceaccount.yaml
|
||||
kind: ServiceAccount
|
||||
apiVersion: v1
|
||||
@@ -49,6 +48,34 @@ data:
|
||||
jobs:
|
||||
- name: local
|
||||
url: http://127.0.0.1:10249/metrics
|
||||
dnsquery: |
|
||||
update_every: 3600
|
||||
autodetection_retry: 0
|
||||
jobs:
|
||||
- name: job1
|
||||
record_types:
|
||||
- A
|
||||
- AAAA
|
||||
domains:
|
||||
- google.com
|
||||
- github.com
|
||||
- gitea.tryton.geeraert.eu
|
||||
servers:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
|
||||
x509check: |
|
||||
jobs:
|
||||
- name: my_site_cert
|
||||
source: https://gitea.tryton.geeraert.eu:443
|
||||
web_log: |
|
||||
jobs:
|
||||
- name: django_testing
|
||||
path: /host/var/log/pods/django-testing_django-testing-7f89d9ffc5-mcm9g_ad5b3bbf-33ca-410f-aa0e-457664c6345b/django-testing/0.log
|
||||
log_type: auto
|
||||
- name: nginx
|
||||
path: /host/var/log/pods/reverse-proxy_reverse-proxy-67c767c86f-pxvdz_af6033a7-dfcb-4430-a67b-ee75ea424cf7/reverse-proxy/0.log
|
||||
log_type: auto
|
||||
netdata: |
|
||||
[db]
|
||||
mode = ram
|
||||
@@ -58,6 +85,10 @@ data:
|
||||
enabled = no
|
||||
[ml]
|
||||
enabled = no
|
||||
[plugins]
|
||||
otel = yes
|
||||
[plugin:otel]
|
||||
command options = --otel-endpoint 0.0.0.0:4317 --otel-logs-journal-dir /var/log/netdata/otel/v1
|
||||
stream: |
|
||||
[stream]
|
||||
enabled = yes
|
||||
@@ -67,6 +98,103 @@ data:
|
||||
buffer size bytes = 1048576
|
||||
reconnect delay seconds = 5
|
||||
initial clock resync iterations = 60
|
||||
|
||||
otel: |
|
||||
# OpenTelemetry Plugin Configuration
|
||||
# This file configures the OpenTelemetry metrics and logs ingestion for Netdata
|
||||
#
|
||||
# To customize, run: edit-config otel.yaml
|
||||
# Only include the fields you want to change — missing fields keep their defaults.
|
||||
|
||||
endpoint:
|
||||
# gRPC endpoint to listen on for OpenTelemetry data
|
||||
path: "127.0.0.1:4317"
|
||||
|
||||
# Path to TLS certificate file (enables TLS when provided)
|
||||
tls_cert_path: null
|
||||
|
||||
# Path to TLS private key file (required when TLS certificate is provided)
|
||||
tls_key_path: null
|
||||
|
||||
# Path to TLS CA certificate file for client authentication (optional)
|
||||
tls_ca_cert_path: null
|
||||
|
||||
metrics:
|
||||
# Directory with configuration files for mapping OTEL metrics to Netdata charts
|
||||
chart_configs_dir: /etc/netdata/otel.d/v1/metrics
|
||||
|
||||
# Collection interval in seconds (1–3600). Defines the Netdata chart update frequency.
|
||||
interval_secs: 10
|
||||
|
||||
# Grace period in seconds. After the last data point, the plugin waits this long
|
||||
# before gap-filling. When interval_secs is overridden, this auto-derives as
|
||||
# 5 * interval_secs unless explicitly set.
|
||||
grace_period_secs: 60
|
||||
|
||||
# Expiry duration in seconds. Charts with no data for this long are removed.
|
||||
expiry_duration_secs: 900
|
||||
|
||||
# Maximum number of new charts that can be created per gRPC request.
|
||||
# Limits cardinality explosion from high-cardinality label combinations.
|
||||
max_new_charts_per_request: 100
|
||||
|
||||
# Directory where OpenTelemetry logs and traces are stored.
|
||||
# Must be an absolute path.
|
||||
base_dir: /var/log/netdata/otel/v2
|
||||
|
||||
remote_storage:
|
||||
# Upload data to remote object storage, in addition to keeping it on local
|
||||
# disk. One backend is shared by logs and traces.
|
||||
enabled: false
|
||||
|
||||
# NEVER put credentials in this file or in the URI below. Credentials are
|
||||
# read from the netdata process environment and the standard cloud
|
||||
# locations — for S3: AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY,
|
||||
# ~/.aws/credentials, or an attached instance role (nothing to configure).
|
||||
# To pass environment variables to the netdata service, use a root-only
|
||||
# systemd EnvironmentFile.
|
||||
|
||||
# Remote storage location. The scheme selects the backend (fs, s3);
|
||||
# non-secret backend options go in the query string. Examples:
|
||||
# fs:///var/lib/netdata/otel/remote
|
||||
# s3://bucket/prefix?region=us-east-1
|
||||
# s3://bucket/prefix?region=us-east-1&endpoint=https://minio.example:9000
|
||||
uri: "fs:///var/log/netdata/otel/v2/remote"
|
||||
|
||||
# Data deleted from local disk by retention but still in remote storage is
|
||||
# fetched back into a bounded local cache when a query needs it. Cap for
|
||||
# that cache:
|
||||
read_cache_max_size: "1GB"
|
||||
|
||||
auth:
|
||||
# Require senders to identify a tenant via the X-Scope-OrgID gRPC header.
|
||||
# When disabled, all data belongs to a single "default" tenant.
|
||||
# Applies to logs and traces; metrics have no tenants.
|
||||
enabled: false
|
||||
|
||||
logs:
|
||||
rotation:
|
||||
# Incoming logs are appended to a current file; a new file starts when
|
||||
# any of these limits is reached.
|
||||
default:
|
||||
max_file_size: "25MB"
|
||||
max_entries: 50000
|
||||
|
||||
# Per-tenant overrides (any subset of the fields above):
|
||||
# my-tenant:
|
||||
# max_file_size: "100MB"
|
||||
|
||||
retention:
|
||||
# How much log data to keep on local disk; the oldest files are deleted
|
||||
# when any of these limits is exceeded.
|
||||
default:
|
||||
max_files: 100000
|
||||
max_total_size: "1GB"
|
||||
max_age: "7 days"
|
||||
|
||||
# Per-tenant overrides (any subset of the fields above):
|
||||
# my-tenant:
|
||||
# max_age: "30 days"
|
||||
---
|
||||
# Source: netdata/templates/child/configmap.yaml
|
||||
apiVersion: v1
|
||||
@@ -341,6 +469,7 @@ data:
|
||||
default_run: no
|
||||
modules:
|
||||
k8s_state: yes
|
||||
httpcheck: yes
|
||||
go.d-k8s_state: |
|
||||
jobs:
|
||||
- name: k8s_state
|
||||
@@ -383,6 +512,18 @@ data:
|
||||
buffer size bytes = 1048576
|
||||
reconnect delay seconds = 5
|
||||
initial clock resync iterations = 60
|
||||
httpcheck: |
|
||||
update_every: 1
|
||||
autodetection_retry: 0
|
||||
jobs:
|
||||
- name: gitea
|
||||
url: https://gitea.tryton.geeraert.eu:443
|
||||
headers:
|
||||
Host: localhost:8080
|
||||
User-Agent: netdata/go.d.plugin
|
||||
Accept: */*
|
||||
- name: bitwarden
|
||||
url: https://bitwarden.tryton.geeraert.eu:443
|
||||
---
|
||||
# Source: netdata/templates/parent/configmap.yaml
|
||||
apiVersion: v1
|
||||
@@ -442,8 +583,8 @@ metadata:
|
||||
heritage: Helm
|
||||
role: k8sState
|
||||
spec:
|
||||
accessModes: [ "ReadWriteOnce" ]
|
||||
storageClassName: nfs-storage-intelligent
|
||||
accessModes: [ "ReadWriteOnce" ]
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
@@ -635,7 +776,7 @@ spec:
|
||||
- name: NETDATA_CLAIM_TOKEN
|
||||
value: "CIlCwV6GawNWIfhrqMVmPAJixo_BSaGvwVbHKFOCQCHbYG5J8Ac0FDxKrObJ727F1dndg8J-v6apUhzGho6RIOlkrqJ_F7DKodjLqbsSWb7Ta-GSHkkuHcTXidxKxEo5RK0jiqU"
|
||||
- name: NETDATA_CLAIM_ROOMS
|
||||
value: "cd70f310-47a2-4b24-b7d3-0fc4205450d4"
|
||||
value: "e15a4f12-89d7-4d5b-b588-6658fa835473"
|
||||
- name: MY_POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
@@ -690,6 +831,18 @@ spec:
|
||||
- name: configmap
|
||||
mountPath: /etc/netdata/go.d/k8s_kubelet.conf
|
||||
subPath: kubelet
|
||||
- name: configmap
|
||||
mountPath: /etc/netdata/go.d/dns_query.conf
|
||||
subPath: dnsquery
|
||||
- name: configmap
|
||||
mountPath: /etc/netdata/go.d/x509check.conf
|
||||
subPath: x509check
|
||||
- name: configmap
|
||||
mountPath: /etc/netdata/go.d/web_log.conf
|
||||
subPath: web_log
|
||||
- name: configmap
|
||||
mountPath: /etc/netdata/otel.yaml
|
||||
subPath: otel
|
||||
- name: configmap
|
||||
mountPath: /etc/netdata/go.d/k8s_kubeproxy.conf
|
||||
subPath: kubeproxy
|
||||
@@ -826,6 +979,9 @@ spec:
|
||||
- name: configmap
|
||||
mountPath: /etc/netdata/go.d.conf
|
||||
subPath: go.d
|
||||
- name: configmap
|
||||
mountPath: /etc/netdata/go.d/httpcheck.conf
|
||||
subPath: httpcheck
|
||||
- name: configmap
|
||||
mountPath: /etc/netdata/go.d/k8s_state.conf
|
||||
subPath: go.d-k8s_state
|
||||
@@ -902,7 +1058,7 @@ spec:
|
||||
- name: NETDATA_CLAIM_TOKEN
|
||||
value: "CIlCwV6GawNWIfhrqMVmPAJixo_BSaGvwVbHKFOCQCHbYG5J8Ac0FDxKrObJ727F1dndg8J-v6apUhzGho6RIOlkrqJ_F7DKodjLqbsSWb7Ta-GSHkkuHcTXidxKxEo5RK0jiqU"
|
||||
- name: NETDATA_CLAIM_ROOMS
|
||||
value: "cd70f310-47a2-4b24-b7d3-0fc4205450d4"
|
||||
value: "e15a4f12-89d7-4d5b-b588-6658fa835473"
|
||||
- name: MY_POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
|
||||
Reference in New Issue
Block a user