Journal
Took a few days off from learning due to lack of sleep and trying to prevent burnout. Today I am going to try to get logs working in Grafana, as well as a dashboard and an alert.
Raw Notes
- run Loki
- ./loki-darwin-amd64 -config.file=loki-local-config.yaml
- run promtail
- ./promtail-darwin-amd64 -config.file=promtail-local-config.yaml
- run alloy
- brew services start alloy
- Edit Alloy
- vim /usr/local/etc/alloy/config.alloy
- burp to generate products
POST /admin/add-product HTTP/1.1
Host: localhost:3000
Content-Length: 14
Cache-Control: max-age=0
sec-ch-ua: "Not/A)Brand";v="8", "Chromium";v="126"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "macOS"
Accept-Language: en-US
Upgrade-Insecure-Requests: 1
Origin: http://localhost:3000
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.6478.57 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: http://localhost:3000/admin/add-product
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
title=§anyplace§