Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

This is an OpenWeatherMap exporter for Prometheus.

It exposes weather metrics to the pushgateway.

A minimal openweathermap_exporter.yml would look like:

api_key: <yourkey>
cities:
  - Munich
  - Ulaanbaatar
  - Isachsen
latlons:
  - [40.2010176,-72.6806685]
zips:
  - 90210

Either cities, lathlons or zips can be provided.

Requirements:

  • Prometheus' Pushgateway installed and running on localhost:9091
  • Perl with packages liblwp-useragent-determined-perl, libjson-perl and libconfig-yaml-perl

An example prometheus.yml configuration looks like:

  - job_name: 'pushgateway'
    scrape_interval: 60s # Note this is NOT the interval the scripts will run; this is just the collection interval from the Pushgateway to Prometheus
    honor_labels: true
    static_configs:
      - targets: ['localhost:9091']

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

You can’t perform that action at this time.