timothyb89 / openweathermap-exporter

Prometheus exporter for openweathermap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openweathermap-exporter

Exposes current weather data for a particular location as a set of Prometheus metrics.

Usage

  1. Request a free API key from https://openweathermap.org/api
  2. Run:
    openweathermap-exporter $LAT,$LON --api-key "$KEY" --units imperial
  3. View the results:
    curl http://localhost:8081

If there's an error fetching the current report from OpenWeatherMap, the exporter will export only owm_error 1 (possibly with an HTTP status code). Refer to the exporter logs for details.

About

Prometheus exporter for openweathermap

License:MIT License


Languages

Language:Rust 96.8%Language:Dockerfile 3.2%