๐ก๏ธ ProbeGlass
![]()
ProbeGlass is a small, self-hosted watchdog for your homelab. It probes your services on a schedule, keeps their history in a single SQLite file, draws the graphs, and tells you when something breaks โ the questions you actually ask during an outage: what is down, since when, and how often has it happened?
One container, a few megabytes of RAM, and no agent to install on the machines it watches.
๐ท๏ธ Category: Monitoring
๐ณ Image: ghcr.io/j000k3r/probeglass:latest
๐ Links
| ย | ย |
|---|---|
| ๐ฆ Project | github.com/j000k3r/probeglass |
| ๐ Support | GitHub Issues |
| ๐ Docs | j000k3r.github.io/probeglass-docs |
๐ Ports
| Port | Protocol | Description |
|---|---|---|
8080 | TCP | ProbeGlass Web Interface and dashboard |
๐พ Volumes
| Host Path | Container Path | Mode | Description |
|---|---|---|---|
/mnt/cache/appdata/probeglass | /data | RW | SQLite database, its write-ahead log, and probeglass.yaml |
โ๏ธ Environment Variables
| Variable | Default | Masked | Description |
|---|---|---|---|
PUID | 500 | โ | User ID the container runs as. It starts as root, hands /data to this user and then becomes it, so the appdata folder never has to be prepared by hand |
PGID | 500 | โ | Group ID for the same. See PUID |
UMASK | 022 | โ | File creation mask for new files, in octal |
PROBEGLASS_DATA_DIR | /data | โ | Optional. The directory the database lives in โ the path the volume above is mounted at |
PROBEGLASS_DB | (empty) | โ | Optional. Full path to the SQLite file; empty means <data dir>/probeglass.db |
PROBEGLASS_LISTEN | :8080 | โ | Optional. host:port to serve on. Has to match the port mapping |
PROBEGLASS_LOG_LEVEL | info | โ | debug, info, warn or error |
PROBEGLASS_LOG_FORMAT | text | โ | Optional. text or json |
PROBEGLASS_TRUST_PROXY | false | โ | Optional. true only behind a reverse proxy you control: it makes the daemon believe X-Forwarded-For and X-Forwarded-Proto |
PROBEGLASS_RETENTION_RAW | 7d | โ | Optional. How long raw probes are kept. 30s, 5m, 2h, 7d, 2w, or a number of seconds |
PROBEGLASS_RETENTION_HOURLY | 90d | โ | Optional. How long the hourly rollups behind the long-range graphs are kept |
PROBEGLASS_BASE_URL | (empty) | โ | Optional. The address you reach the dashboard on. Alert messages link back to it. Type it out in full โ [IP] and [PORT] are not substituted here |
PROBEGLASS_ADMIN_PASSWORD | (empty) | โ | Optional. Skips the setup screen on a fresh database; ignored once a password has been stored |
PROBEGLASS_CONFIG | (empty) | โ | Optional. Path to a YAML file declaring sensors and channels. If you set it, the file has to exist or the daemon refuses to start; empty means <data dir>/probeglass.yaml when that file is there |
Every one of them is optional: a value that is left empty is ignored and the built-in default applies, so the container runs on defaults with nothing set at all.
๐ Quick Start
- Open the MOS Hub and search for ProbeGlass
- Click Install
- Access ProbeGlass at
http://YOUR_SERVER_IP:8080and choose the dashboard password
Thirteen example sensors are created on a fresh database, at three example places, so there is something on the screen and on the map to look at โ one place with everything answering, one that is a homelabโs own addresses and paused, and one with an outage on it, so the map shows a pin in each of its three colours. They can be removed again in one click under Settings โ Monitoring โ Example data.
โ ๏ธ Notes
The /data folder is taken over by the container, so nothing has to be chowned by hand. The MOS Hub creates the appdata folder itself, as root, and a bind mount keeps that ownership โ a container that started as UID 500 could not write into it and could not repair it either. So this image starts as root, gives /data and everything inside it to PUID:PGID โ 500:500 by default โ and only then runs as that user, before the database is opened. That is how the other images on MOS do it, and it is why installing ProbeGlass on a fresh appdata folder now works without touching a shell.
Want a different uid? Set PUID and PGID in the template. They are variables in this templateโs Environment section and take effect on the next start; the daemon logs the uid and gid it ended up as, so docker logs probeglass is the proof. PUID=0 keeps the container as root, which works and is not recommended. The three only apply while the container still starts as root โ with --user in Extra Parameters the process is not root, cannot claim the folder and says so in one log line instead of silently ignoring them.
If a start still fails on the directory, the log now says which of the two it is:
probeglass: ping database /data/probeglass.db: unable to open database file (14); /data is
not writable by uid 500, the user this process runs as. In a container the daemon starts as
root, takes the data directory over and then drops to PUID:PGID, so this means it did not start
as root โ drop --user, or set PUID and PGID to whoever owns the folder, or hand it over
yourself: chown -R 500:500 <host folder>
The other message, not writable even as root, means the mount itself is not taking writes โ a read-only mount or a full disk โ and no chown will change that.
MOS rewrites the /mnt/cache prefix to your own appdata pool, so if you are working from the host, use the path it actually created:
chown -R 500:500 /mnt/cache/appdata/probeglass
What the root moment means. It lasts a few milliseconds, before any file is opened and before the port is bound, and it is permanent once it is over: a privileged setuid cannot be undone, and Go applies it to every thread. A container running from this template never touches the appdata folder by hand again after that first start. The full account is in SECURITY.md and in the security concept.
doctor is worth knowing when something is off, and it has to be run as the daemonโs user to be meaningful โ docker exec starts a new process as root:
docker exec -u 500:500 probeglass /usr/local/bin/probeglass doctor
The image is public and needs no login. ghcr.io/j000k3r/probeglass:latest pulls anonymously, from the MOS machine like anywhere else โ no registry account, no token, no docker login. latest is the newest release and only ever a release: a tagged pre-release is excluded from it, so no candidate build reaches the Hub. It is also the tag this collection uses almost everywhere; a pinned version is the exception here, not the rule.
Pin an exact version instead if you would rather it never moved under you. 0.2.3 is the version as released, 0.2 follows its patch releases, and sha-<commit> names one build exactly. All of them are on the same public package page, ghcr.io/j000k3r/probeglass.
Which build am I running? Settings โ Help and maintenance โ About has a Channel row at the top: release for a published version, dev for a build of the branch under development, local for one built from a working tree. Docker does not tell a container which tag it was pulled by, so two containers on one machine โ one on latest and one on dev โ are identical from the inside, down to the commit whenever both follow the same push. That row is what tells them apart.
Trying what is not released yet. ghcr.io/j000k3r/probeglass:dev is rebuilt on every push to the projectโs main, so it carries whatever landed since the last release. Put that tag in the templateโs image field for a container that follows the work in progress, and change it back to latest when you want to stop. It is not a release and not supported, but it is a real build of the real tree, and probeglass version inside it says which one โ 0.2.3-4-g9c1f0ab, meaning four commits past 0.2.3. The same builds are published under sha-<commit>, which is the tag to quote if one of them turns out to be the one that broke something.
Ping sensors need NET_RAW. It is already in the template. Without it ProbeGlass falls back to an unprivileged UDP ping and says so in the sensor result; every other sensor type keeps working either way.
Monitoring Docker containers is opt-in. It needs the hostโs Docker socket, and whoever can reach that socket can start a container that mounts the whole host as root. Add it only if you want it, and read SECURITY.md first.
-v /var/run/docker.sock:/var/run/docker.sock:ro
There is no TZ here, and that is deliberate. Everything is stored in UTC while the dashboard renders timestamps in your browserโs own timezone, so a TZ variable would change nothing and this image does not have one.
PUID and PGID exist and do something, unlike a TZ that would not: they decide which user the container becomes after it has taken /data over. 500:500 is the default and the right answer almost always โ it is the uid the other templates on MOS run their containers as, so the files ProbeGlass writes look like every other file in appdata. Change it only when the volume points somewhere that something else owns.
The container is distroless and has no shell, so the MOS Hub console will not open. To look in on it from the host instead:
docker logs probeglass
docker exec probeglass /usr/local/bin/probeglass healthcheck
๐ก Tip: History is kept for 7 days at full resolution and 90 days hourly by default โ long enough to answer โhow often has this flapped this quarterโ. Both can be changed later in the web interface.
๐ For more information: Visit the ProbeGlass documentation for the sensor reference, the alert channels, the HTTP API and the configuration file.