Closed microamp closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 82.80%. Comparing base (
9a3f9f6
) to head (3a0acad
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Output should be in json format for easier tagging
Currently as a separate ticket here, https://github.com/ietf-tools/www/issues/433, but happy to combine them
Application logs are now in JSON format. e.g.
{"remote_host": "127.0.0.1", "remote_logname": "-", "remote_user": "-", "timestamp": "[24/Apr/2024:10:04:55 +0100]", "request": "GET /announcements/ HTTP/1.0", "status_code": "200", "response_size": "37152", "referrer": "http://localhost:8080/announcements/reappointment-of-eliot-lear-as-independent-submission-editor/", "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36", "x_forwarded_for": "127.0.0.1"}
Pretty-printed:
{
"remote_host": "127.0.0.1",
"remote_logname": "-",
"remote_user": "-",
"timestamp": "[24/Apr/2024:10:04:55 +0100]",
"request": "GET /announcements/ HTTP/1.0",
"status_code": "200",
"response_size": "37152",
"referrer": "http://localhost:8080/announcements/reappointment-of-eliot-lear-as-independent-submission-editor/",
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
"x_forwarded_for": "127.0.0.1"
}
@NGPixel Mind having another look when you can please?
Fixes #432 and #433
I can see both Nginx and Gunicorn logs when I run
kubectl logs -f
locally now.However, I'm not sure about the second commit. Configuring the Grafana agent to read from a file path may be cleaner (e.g.
/var/log/nginx/access.log
). To be discussed further.Update: Fixing #433 in the same PR now.