Prometheus.io

Rickard L

Metrics exporter for prometheus.io

[Build status] [Sonarcloud Status] Prometheus exporter for Homey. The following metrics are exported: - General system information (load averages, memory, storage). - Device state information (sensor values, state of switches, etc.). Device state gauges are named homeydevice<state> and have labels for device ID, name and zones. - User presence (present/away, awake/asleep) How to use it First, you need a Prometheus.io instance. The easiest way to install such an instance is to use Docker. This app has been developed and tested with the prom/prometheus:v2.1.0 image. To add the Homey to Prometheus, you need to add the IP of Homey and port 9414 to the list of scrape targets. For example (prometheus.yml): <...> scrape_configs: <....> - job_name: 'homey' scrape_interval: 15s # metrics_path defaults to '/metrics' # scheme defaults to 'http'. static_configs: - targets: [ '<ip address of Homey>:9414' ] Here is an example docker-compose file: grafana: image: grafana/grafana:5.0.1 ports: - 3000:3000 volumes: - ./data/grafana:/var/lib/grafana restart: unless-stopped environment: - GFSECURITYADMIN_PASSWORD=mysecretpassword - GFUSERSALLOWSIGNUP=false - GFAUTHANONYMOUS_ENABLED=true prometheus: image: prom/prometheus:v2.1.0 ports: - 9090:9090 volumes: - ./config/prometheus:/etc/prometheus:ro - ./data/prometheus:/prometheus - ./logs/prometheus:/logs command: - '--config.file=/etc/prometheus/prometheus.yml' - '--storage.tsdb.path=/prometheus' - '--storage.tsdb.retention=365d' - '--web.enable-admin-api' Troubleshooting Browse to http://<homey_ip>:9414/metrics and make sure there is a response. How to configure it There is currently no configuration needed for this app.

Reviews

This app has no reviews yet.

You can leave a review once you're using this app.

Thank you for your review.

Submit review

Write a review

This app can manage your entire Homey.

Install Prometheus.io on

Prometheus.io will install on Homey shortly.

Install

Be the first to hear about Homey’s latest developments.

Subscribe to our newsletter and be on top-of-mind about new Homey features, exclusive offers and more.