Update Loki log job naming standard

This commit is contained in:
jester 2026-05-02 16:49:54 +00:00
parent 7cf4d9f247
commit 408fb5c180

View File

@ -150,16 +150,24 @@ Grafana logs confirmed datasource provisioning:
inserting datasource from configuration name=Loki uid=loki inserting datasource from configuration name=Loki uid=loki
``` ```
Current zlh-monitor log job:
```text
job="zlh-monitor"
```
This replaced the initial temporary `job="zlh-monitor-journal"` label.
Successful Loki query verified with: Successful Loki query verified with:
```bash ```bash
curl -G http://127.0.0.1:3100/loki/api/v1/query_range \ curl -G http://127.0.0.1:3100/loki/api/v1/query_range \
--data-urlencode 'query={job="zlh-monitor-journal"}' \ --data-urlencode 'query={job="zlh-monitor"}' \
--data-urlencode limit=5 \ --data-urlencode limit=5 \
--data-urlencode direction=backward --data-urlencode direction=backward
``` ```
The query returned live streams for `grafana-server` and `loki` with labels including: The query returned fresh live streams for `alloy` and `loki` with labels still intact:
- `host="zlh-monitor"` - `host="zlh-monitor"`
- `vmid="9016"` - `vmid="9016"`
@ -167,7 +175,14 @@ The query returned live streams for `grafana-server` and `loki` with labels incl
- `job` - `job`
- `log_source` - `log_source`
Log sources currently wired: Intended future Loki job names:
- `job="zlh-api"`
- `job="zlh-portal"`
- `job="zlh-velocity"`
- `job="zlh-monitor"`
Log sources currently wired under `job="zlh-monitor"`:
- `prometheus.service` - `prometheus.service`
- `grafana-server.service` - `grafana-server.service`