diff --git a/.gitea/workflows/gitea_tar-valon_ansible_deploy.yml b/.gitea/workflows/gitea_tar-valon_ansible_deploy.yml index 68437f8..0539064 100644 --- a/.gitea/workflows/gitea_tar-valon_ansible_deploy.yml +++ b/.gitea/workflows/gitea_tar-valon_ansible_deploy.yml @@ -68,7 +68,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - host: [rinoa, rikku, benedikta, ultima] + host: [rinoa, rikku, lunafreya, ultima] env: VAULT_ADDR: ${{ secrets.TREZ_VAULT_ADDR }} VAULT_TOKEN: ${{ secrets.VAULT_GITEA_TOKEN }} @@ -174,7 +174,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - host: [rinoa, rikku, benedikta, ultima] + host: [rinoa, rikku, lunafreya, ultima] env: VAULT_ADDR: ${{ secrets.TREZ_VAULT_ADDR }} VAULT_TOKEN: ${{ secrets.VAULT_GITEA_TOKEN }} diff --git a/app-configs/benedikta/mycroft/mycroft.conf b/app-configs/lunafreya/mycroft/mycroft.conf similarity index 100% rename from app-configs/benedikta/mycroft/mycroft.conf rename to app-configs/lunafreya/mycroft/mycroft.conf diff --git a/app-configs/lunafreya/signoz-otel-collector/otel-collector-config.yaml.j2 b/app-configs/lunafreya/signoz-otel-collector/otel-collector-config.yaml.j2 new file mode 100644 index 0000000..65ee558 --- /dev/null +++ b/app-configs/lunafreya/signoz-otel-collector/otel-collector-config.yaml.j2 @@ -0,0 +1,84 @@ +# otel_collector.yaml + +receivers: + # ──────────────────────────────────────────────────────────────── + # 1) Host log collection + # ──────────────────────────────────────────────────────────────── + filelog: + # Optional: give the receiver a human‑readable name + name: host_logs + # Paths to monitor – adjust glob patterns as needed + include: + - /var/log/*.log + - /var/log/syslog + - /var/log/messages + # Optional: skip log files that match these patterns + exclude: [] + # Optional: start reading from the beginning of the file + start_at: beginning + # Optional: decode JSON logs if they are JSON‑formatted + # json: + # keys: [timestamp, level, msg] + # timestamp_key: timestamp + # timestamp_format: RFC3339 + # Optional: throttle log ingestion + # throttle: + # max_per_second: 1000 + # Optional: keep track of processed offsets + # cache: + # file: /var/log/filelog_cache.json + + # ──────────────────────────────────────────────────────────────── + # 2) Docker container log collection + # ──────────────────────────────────────────────────────────────── + docker: + # Connect to the local Docker daemon + host: unix:///var/run/docker.sock + # By default, the Docker receiver pulls container metrics, logs, and health‑checks. + # If you only need logs, set the following to true (enabled by default): + logs: true + # Optional: enable or disable container log collection for specific containers + # include: [ "my-app", "api-service" ] + # exclude: [ "debug-container" ] + # Optional: set the maximum number of log files to keep open + # max_open_files: 100 + +processors: + # ──────────────────────────────────────────────────────────────── + # 1) Batch processor (recommended for all pipelines) + # ──────────────────────────────────────────────────────────────── + batch: + timeout: 5s + send_batch_size: 5000 + + # ──────────────────────────────────────────────────────────────── + # 2) Optional resource processor – add host name to every log record + # ──────────────────────────────────────────────────────────────── + resource: + attributes: + - key: host.name + from_env: HOSTNAME + action: upsert + - key: service.namespace + value: host-logs + action: upsert + +exporters: + # ──────────────────────────────────────────────────────────────── + # 1) OTLP exporter – sends logs to the central collector + # ──────────────────────────────────────────────────────────────── + otlp: + endpoint: "centralized-collector:4317" + # If you want insecure connections (e.g., local dev), set insecure true + tls: + insecure: true + # Optional: use HTTP instead of gRPC + # http: + # path: "/v1/logs" + +service: + pipelines: + logs: + receivers: [filelog, docker] + processors: [batch, resource] + exporters: [otlp] \ No newline at end of file diff --git a/inventory/hosts.yml b/inventory/hosts.yml index fa86ade..c61286b 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -1,6 +1,6 @@ all: hosts: - benedikta: + lunafreya: ansible_host: 192.168.1.250 ansible_user: charish rikku: diff --git a/tar-valon_config_deploy.yml b/tar-valon_config_deploy.yml index c691936..c492bb5 100644 --- a/tar-valon_config_deploy.yml +++ b/tar-valon_config_deploy.yml @@ -1,9 +1,9 @@ --- - name: Deploy Docker Service Configurations (Ownership-aware & verbose) hosts: - - rinoa + - lunafreya - rikku - - benedikta + - rinoa - ultima gather_facts: false become: true