mirror of
https://github.com/element-hq/panopticon.git
synced 2026-11-15 00:14:38 +00:00
panopticon records usage metrics from homeservers
- Go 40.5%
- Python 34.9%
- Shell 23.7%
- Dockerfile 0.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github/workflows | ||
| scripts | ||
| tests | ||
| .gitignore | ||
| CHANGELOG.md | ||
| docker-start.sh | ||
| docker-tests.sh | ||
| Dockerfile | ||
| Dockerfile-aggregate | ||
| Dockerfile-tests | ||
| go.mod | ||
| go.sum | ||
| homeserver_dendrite.go | ||
| homeserver_synapse.go | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
| RELEASING.md | ||
| requirements.txt | ||
| run-panopticon.py | ||
| runtests.sh | ||
panopticon
panopticon records usage metrics from homeservers
Building
Tested with Python 3.12 and Go 1.26
To build, run:
go build
Testing
There is a second Dockerfile-tests that builds panopticon to run the tests as above, as we probably want locally.
This only requires docker on your local workstation, no go install or dependencies required.
docker-tests.sh
To add new tests, crib exiting files in the tests directory.
Deployment using docker image
Set the environment variables for the go image
PANOPTICON_DB_DRIVER(eg, mysql or sqlite)PANOPTICON_DB(go mysql connection string or filename for sqlite)PANOPTICON_PORT(http port to expose panopticon on)
Set the environment variables for the python image
PANOPTICON_DB_NAMEPANOPTICON_DB_USERPANOPTICON_DB_PASSWORDPANOPTICON_DB_HOSTPANOPTICON_DB_PORT