{"repo":"uhthomas/tesla_exporter","free":true,"listed":false,"github":"https://github.com/uhthomas/tesla_exporter","clone":"git clone https://github.com/uhthomas/tesla_exporter.git","description":"A Tesla Prometheus exporter","language":"Starlark","stars":19,"topics":["tesla","prometheus-exporter","prometheus","metrics"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"Tesla Prometheus Exporter Export Tesla vehicle metrics to Prometheus. Getting started To get started, generate the OAuth 2.0 credentials. Container images are pushed to the GitHub container registry, and tagged by release version. See the latest release. The OAuth 2.0 config and token must be provided, which can be configured with --oauth2-config-path and --oauth-token-path . Generate credentials Clone uhthomas/tesla and login with the cmd/login tool. The tool will ask for a password and print the JSON encoded oauth2 config and oauth2 token upon successful authentication. Save the oauth2 config and token to new files named oauth config.json and oauth2 token.json respectively. Metrics All metrics are labelled using the car's VIN. These are currently non-exhaustive, as many more are planned to be added. Metric API reference :------------------------------------ :---------------------------------- tesla vehicle info id, vehicle id tesla vehicle name display name tesla vehicle state state tesla vehicle software version vehicle state.car version tesla vehicle odometer miles total vehicle state.odometer tesla vehicle inside temp celsius climate state.inside temp tesla vehicle outside temp celsius climate state.outside temp tesla vehicle battery ratio charge state.battery level tesla vehicle battery usable ratio charge state.usable battery level tesla vehicle battery ideal miles charge state.battery range tesla vehicle battery estimated miles charge state.est battery range tesla veh","default_branch":null,"files":null,"tree":[],"storefront":"/r/uhthomas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/uhthomas/tesla_exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}