https://github.com/f213/adb-prometheus-exporter
https://github.com/f213/adb-prometheus-exporter
android prometheus temperature-monitoring
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/f213/adb-prometheus-exporter
- Owner: f213
- Created: 2025-01-03T20:33:17.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-07T20:10:34.000Z (over 1 year ago)
- Last Synced: 2025-09-11T23:34:29.494Z (9 months ago)
- Topics: android, prometheus, temperature-monitoring
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prometheus exporter for andorid devices temperature
## Description
Exports android devices temperature metrics to prometheus. Exporter uses [Android debug bridge](https://developer.android.com/tools/adb) (adb) to get the temperature of the device.
## Usage
You need to have adb installed on the host machine. Then authorize the device to use adb. You can do this by running `adb devices` and accepting the prompt on
the device. After that you can run the exporter with the following command:
```bash
$ docker run -v ~/.android:/home/.android -v /dev/bus/usb:/dev/bus/usb --privileged -p 8000:8000 -ti ghcr.io/f213/adb-prometheus-exporter
```
This mounts your adb keys inside of the container. The exporter is available on port 8000, conifgurable with the `PORT` environment variable.
Or the same via docker-compose.yml:
```yaml
---
services:
exporter:
image: ghcr.io/f213/adb-prometheus-exporter
privileged: true
restart: always
ports:
- 8000:8000
volumes:
- /root/.android:/home/.android
- /dev/bus/usb:/dev/bus/usb
```