This is an OpenWeatherMap exporter for Prometheus.
It exposes weather metrics to the pushgateway.
openweathermap_exporter.yml would look like:
api_key: <yourkey> cities: - Munich - Ulaanbaatar - Isachsen latlons: - [40.2010176,-72.6806685] zips: - 90210
zips can be provided.
- Prometheus' Pushgateway installed and running on
- Perl with packages
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']