Update Loki log job naming standard
This commit is contained in:
parent
7cf4d9f247
commit
408fb5c180
@ -150,16 +150,24 @@ Grafana logs confirmed datasource provisioning:
|
||||
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:
|
||||
|
||||
```bash
|
||||
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 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"`
|
||||
- `vmid="9016"`
|
||||
@ -167,7 +175,14 @@ The query returned live streams for `grafana-server` and `loki` with labels incl
|
||||
- `job`
|
||||
- `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`
|
||||
- `grafana-server.service`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user