Files
Django_kube/django_code/apps/netdata_logging/credentials.py
T
pi-ux-ce 2e5e3b0a26
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
trying the netdata logging
2026-08-03 14:22:48 +01:00

24 lines
1.3 KiB
Python

# =====================================================================
# NETDATA CONNECTION CONFIG - TEMPORARY / HARDCODED
#
# These values are kept in plaintext here ONLY until they are moved into
# the secret manager (see apps/bitwarden). Treat everything below as
# something that must be migrated before this app is used beyond a local
# hello-world test.
#
# Current status: logger.py logs structured JSON to stdout, which is the
# supported way for Netdata's log collectors (systemd-journal / generic
# log source) to pick up application logs - it does NOT push over the
# network, so `room_token` below is not consumed by any code yet.
#
# `agent_host` / `agent_port` point at the Netdata Agent's dashboard/API
# port (read-only, no push support). They're recorded here so the values
# are in one obvious place, ready to be reused once a real push mechanism
# (StatsD or an OpenTelemetry log receiver, on their own ports - NOT
# agent_port) is confirmed enabled on this agent.
# =====================================================================
class netdata:
agent_host = "netdata-agent.netdata.svc"
agent_port = 19999 # Netdata Agent dashboard/API port - read-only, not used to push logs
room_token = "" # Netdata Cloud room token - NOT currently used by any code in this app