Skip to content

Prometheus exporter for the parking data feed in Zurich written in go.

License

Notifications You must be signed in to change notification settings

Emy/prom-opendata-zh-parking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prom-opendata-zh-parking

This project is a Prometheus exporter written in Go that pulls parking data from the Zurich Parking Data Feed and makes it available for monitoring via Prometheus. The exporter provides metrics such as available parking spaces, and occupancy rates across Zurich West, Zurich City Centre and Oerlikon.

Table of Contents

Overview

This exporter integrates with the Zurich Parking Data Feed, allowing Prometheus to monitor real-time data on parking availability across various locations in the city. The exporter parses the data from the API, transforms it into Prometheus metrics, and exposes these metrics on a configurable HTTP endpoint.

Features

  • Collects live parking data (every 5 minutes) from the Zurich Parking Data Feed.
  • Exposes key metrics such as:
    • Free spaces
  • Compatible with Prometheus and Grafana for data visualization and alerting.

Installation

  1. Clone the repository:

    git clone https://github.com/Emy/prom-opendata-zh-parking.git
    cd prom-opendata-zh-parking
  2. Build the exporter:

    go build -o prom-opendata-zh-parking

Running the Exporter

To start the exporter, run:

./prom-opendata-zh-parking

The web server will start on the default port (:4277) and will expose the metrics endpoint at http://localhost:4277/metrics.

Available Metrics

The following metrics are exposed by the exporter:

Metric Description
zurich_parking_free_spaces Available free spaces for each lot

Example Queries

Below are example Prometheus queries to use with the exporter:

  • Get free spaces for a specific parking lot:
    zurich_parking_free_spaces{lot="parking lot"}
    

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

About

Prometheus exporter for the parking data feed in Zurich written in go.

Resources

License

Stars

Watchers

Forks

Packages