Categorygithub.com/setheck/smartthings-exporter
repositorypackage
0.0.6
Repository: https://github.com/setheck/smartthings-exporter.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

smartthings-exporter

A simple app to help monitor your smart devices via prometheus.

Run

image is available for both linux/amd64 and linux/arm/v7 here

run with docker

docker run --rm \
    -p "9119:9119" \
    -e "STE_API_TOKEN=<your api token>" \
    setheck/smartthings-exporter

Configuration

Environment VarDescription
STE_API_TOKENyour api token
STE_PORTserver port (defaults to 9119)

The api token is a personal access token that can be created with a valid smartthings login here.

Required Oauth2 scopes

  • r:devices:*

Prometheus Scrape Configuration example

Since this exporter leverages the smartthings API, there is no need to target the smartthings hub directly.

- job_name: smartthings
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  follow_redirects: true
  static_configs:
  - targets:
    - smartthings-exporter:9119

References