feat: add optional basic auth support for Loki client
Some Loki deployments (e.g., behind a reverse proxy or Grafana Cloud) require HTTP Basic Authentication. This adds optional --loki-username and --loki-password flags (and corresponding env vars) to the lab-monitoring server, along with NixOS module options for secure credential management via systemd LoadCredential. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -25,6 +25,7 @@ Query Prometheus metrics, Alertmanager alerts, and Loki logs. Unlike other serve
|
||||
- 8 core tools: list/get alerts, search metrics, get metadata, PromQL query, list targets, list/create silences
|
||||
- 3 optional Loki tools (when `LOKI_URL` is set): query_logs, list_labels, list_label_values
|
||||
- Configurable Prometheus, Alertmanager, and Loki URLs via flags or environment variables
|
||||
- Optional basic auth for Loki (`LOKI_USERNAME`/`LOKI_PASSWORD`)
|
||||
|
||||
### Git Explorer (`git-explorer`)
|
||||
Read-only access to git repository information. Designed for deployment verification.
|
||||
|
||||
Reference in New Issue
Block a user