Skip to content

Simple Prometheus exporter for getting metrics from a Freifunk network

Notifications You must be signed in to change notification settings

jzielke84/freifunk-exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

freifunk-exporter

This is a small program to extract some metrics from a Freifunk network. It gathers the data from the JSON file typically used to also populate the Meshviewer map. The data is then made available in a format readable by a Prometheus server.

Usage

To compile the tool, first check that you have a recent Go installation (1.14 at the time of this writing). Then clone the repository and run make which will run the tests and compile the binary.

The tool accepts a few parameters, only the --source-url is required:

Usage of freifunk-exporter:
      --addr string               Address to listen on. (default ":9295")
      --cache-interval duration   Interval for local caching of Meshviewer data. (default 3m0s)
      --source-url string         URL to Meshviewer JSON file.

So, for example to get the metrics for Freifunk Bodensee run:

freifunk-exporter --source-url https://meta.ffbsee.net/data/meshviewer.json

About

Simple Prometheus exporter for getting metrics from a Freifunk network

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 89.0%
  • Makefile 6.5%
  • Dockerfile 4.5%