Update requirements and AGENTS instructions
This commit is contained in:
parent
e744276481
commit
d216433a07
6 changed files with 153 additions and 4 deletions
23
README.md
23
README.md
|
@ -1,4 +1,25 @@
|
|||
# ngxstat
|
||||
Per-domain Nginx log analytics with hybrid static reports and live insights.
|
||||
|
||||
##
|
||||
## Generating Reports
|
||||
|
||||
Use the `generate_reports.py` script to build aggregated JSON and HTML files from `database/ngxstat.db`.
|
||||
|
||||
Create a virtual environment and install dependencies:
|
||||
|
||||
```bash
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
Then run one or more of the interval commands:
|
||||
|
||||
```bash
|
||||
python scripts/generate_reports.py hourly
|
||||
python scripts/generate_reports.py daily
|
||||
python scripts/generate_reports.py weekly
|
||||
python scripts/generate_reports.py monthly
|
||||
```
|
||||
|
||||
Reports are written under the `output/` directory. Each command updates the corresponding `<interval>.json` file and produces an HTML dashboard using Chart.js.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue