keepcalculator

06 Numbers and Powers

Glance Dashboard: Feeds and Server Stats

Card No. 06·74403 · Updated · Standard formula, shown below

Glance is a self-hosted dashboard that pulls your RSS/Atom feeds and server metrics into one customizable page. You enter the feed URLs and server endpoints you want to track, and Glance displays them as widgets, so you can monitor news, social updates, and system health without visiting multiple sites. This article explains how Glance handles feeds and server stats, how to set it up, and what to watch out for.

What Glance Actually Does

Glance is a web-based dashboard written in Go, designed to run on a small server or Raspberry Pi. It reads a YAML configuration file that defines widgets. For feeds, you specify the RSS/Atom URL and how many entries to show. For server stats, Glance can read system information directly from the host (CPU, memory, disk) or from external sources like Grafana or Prometheus endpoints.

Key features:

  • Multiple feed widgets – each can have its own refresh interval.
  • Server stats widgets – show CPU, memory, disk, and network usage.
  • Custom layouts – drag-and-drop not needed; you edit YAML.
  • No database – everything is in memory, so it is light.
  • Docker support – official image available.

How to Set Up Feeds

Feeds are the most common use case. In your glance.yml, you add a widget with the type rss and point it to a feed URL.

  1. Install Glance (see the official docs for binary or Docker).
  2. Create a YAML file with a pages section.
  3. Under a page, add a widget with type: rss.
  4. Set the url to the feed, e.g., https://example.com/feed.xml.
  5. Set refresh-interval in minutes (default is 15).
  6. Set limit to control how many items show.

Example snippet:

widgets:
  - type: rss
    url: https://news.ycombinator.com/rss
    refresh-interval: 10
    limit: 5

Glance fetches the feed on the interval and caches it. If the feed is unreachable, it shows a placeholder and retries on the next cycle.

How to Set Up Server Stats

Server stats widgets display live system information. Glance has a built-in server widget that reads from the host OS. You do not need extra agents; it uses the same process.

For advanced monitoring, Glance can embed iframes or use the iframe widget to show Grafana dashboards or other status pages. It also supports a monitor widget that checks if a URL is up or down.

To show CPU and memory:

widgets:
  - type: server
    refresh-interval: 5

This widget displays a small graph with CPU, memory, disk, and network. It is read-only; Glance does not manage processes or send alerts.

Common Problems and Misconceptions

A frequent misconception is that Glance is a replacement for monitoring tools like Grafana or Netdata. It is not; it is a presentation layer. It shows current values but does not store history or trigger alerts. If you need historical graphs, use Grafana and embed it with an iframe.

Another common issue: feeds with relative URLs or missing pubDate can cause display errors. Glance expects standard RSS/Atom; some sites generate broken feeds. Test the feed URL in a browser first.

Refresh intervals too short (under 1 minute) can hammer the feed server and get you blocked. Most feeds update every 15–60 minutes, so a 5-minute refresh is usually fine.

If the server stats widget shows zero or stale data, check that Glance has permission to read /proc (on Linux) and that the timezone is set correctly.

Comparing Glance to Other Dashboards

Glance competes with Homarr, Dashy, and Heimdall. The main differences:

  • Glance – lightweight, YAML config, built-in feed and server widgets.
  • Dashy – more widgets, but heavier and uses a web UI for config.
  • Homarr – integrates with Sonarr/Radarr, but requires more setup.
  • Heimdall – simple app launcher, no server stats.

Glance is best if you want a minimal, code-configured dashboard that can show feeds and system stats without extra services. If you need a drag-and-drop interface, Dashy is easier.

Costs and Hosting

Glance is open-source (MIT license) and free. You can run it on any machine with a web browser, including a Raspberry Pi (ARM builds available). The only cost is your time and the electricity to run the server.

For hosting, you can use a VPS or a home server. Since Glance is a single binary, it uses very little RAM (typically under 50 MB).

Safety and Security

Glance does not require authentication by default. If you expose it to the internet, anyone can see your dashboard, including server stats. This is a privacy risk. Use a reverse proxy (like Nginx or Caddy) with basic auth or a VPN to protect it.

Also, be careful with feed URLs – some feeds may contain malicious links. Glance does not sanitize content; it renders HTML as provided. Only add feeds you trust.

For server stats, do not expose the raw widget to the public; it reveals your CPU model, memory, and disk usage, which can help attackers.

Frequently Asked Questions

Does Glance work with multiple feeds?

Yes, you can add as many rss widgets as you want, each with its own URL and refresh interval. They are independent, so one slow feed does not block others.

Can I show Grafana graphs inside Glance?

Yes, use the iframe widget and point it to your Grafana panel URL. You may need to enable anonymous access or embed mode in Grafana.

How often should I refresh feeds?

Most feeds update every 15–60 minutes. Setting refresh to 5 minutes is usually safe, but below 1 minute is excessive and may get you rate-limited. Start with 15 and lower if needed.

Does Glance store any data?

No, Glance is stateless. It fetches feeds and system stats on each refresh and discards old data. It does not have a database, so restarts lose nothing except the current cache.

Can I run Glance on a Raspberry Pi?

Yes, Glance provides ARM builds. It runs well on a Pi 3 or 4, as long as you do not set very short refresh intervals (under 2 minutes) on many widgets.

Is Glance a good replacement for Netdata?

No. Netdata collects and stores metrics over time with alerts. Glance only shows the current snapshot. Use Glance for a quick overview and Netdata for deep monitoring.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →