|
|
2 месяцев назад | |
|---|---|---|
| .. | ||
| scripts | 2 месяцев назад | |
| templates | 2 месяцев назад | |
| Chart.yaml | 2 месяцев назад | |
| README.md | 2 месяцев назад | |
| values.yaml | 2 месяцев назад | |
This chart deploys a complete log collection and storage stack:
The Vector agent collects container JSON logs from the shop-recycle namespace and ships parsed labels to Loki and metrics to a Prometheus exporter. Configuration and parsing rules are adapted from the Log.md monitoring guide.
helm upgrade --install vector ./k8s/logsys -n shoprecycle --create-namespace
This single command deploys:
Loki:
loki.enabled — Enable/disable Loki deployment (default: true)loki.namespace — Namespace (default: shoprecycle)loki.replicas — Number of Loki replicas (default: 1)loki.persistence.size — Storage size (default: 10Gi)loki.retention.days — Log retention in days (default: 30)Vector:
vector.enabled — Enable/disable Vector deployment (default: true)vector.loki.endpoint — Loki push endpoint (default: http://loki:3100)vector.logSelector — List of app names to collect (defaults: gateway/order/payment/web)After deployment, access Loki via:
kubectl port-forward -n shoprecycle svc/loki 3100:3100
Then configure Grafana to use datasource http://loki:3100.
/var/log from the host on each node.