https://github.com/program--/glance-agent
https://github.com/program--/glance-agent
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/program--/glance-agent
- Owner: program--
- License: agpl-3.0
- Created: 2025-07-28T04:55:51.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-07-28T07:02:37.000Z (6 months ago)
- Last Synced: 2025-08-07T23:51:18.556Z (6 months ago)
- Language: Go
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Glance Agent
This is a temporary [glance](https://github.com/glanceapp/glance) agent service written in Go for the [server-stats widget](https://github.com/glanceapp/glance/blob/main/docs/configuration.md#server-stats). See https://github.com/glanceapp/glance/issues/360 for more details.
## Usage
The following environment variables are available:
- `GLANCE_AGENT_SECRET` (required): secret token to use. Must match what is set in glance configuration.
- `GLANCE_AGENT_HOST` (optional): host interface address to bind service to. Defaults to an empty string.
- `GLANCE_AGENT_PORT` (optional): port to bind service to. Defaults to `8080`.
## References
- [Server stats widget internals](https://github.com/glanceapp/glance/blob/c88fd526e55117445c7f4440c83b661faa402047/internal/glance/widget-server-stats.go)
- [glance sysinfo package](https://github.com/glanceapp/glance/blob/c88fd526e55117445c7f4440c83b661faa402047/pkg/sysinfo/sysinfo.go)