From 11c07e4095f225b6ee7aaac4e099fe953da4da0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pt=C3=A1=C4=8Dek?= Date: Sun, 30 Jul 2023 07:43:49 +0200 Subject: [PATCH] first portion of metrics --- README.md | 7 +- client/.idea/gradle.xml | 1 + client/app/src/main/AndroidManifest.xml | 2 + .../exporter/worker/AndroidCustomExporter.kt | 137 +++++++++++++++--- .../android/exporter/worker/MetricsEngine.kt | 37 ++--- server/configuration/prometheus.yaml | 2 +- 6 files changed, 142 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index b2c4889..d324617 100644 --- a/README.md +++ b/README.md @@ -74,4 +74,9 @@ $ ansible-playbook ansible_playbook.yaml --tags config ## List of exported metrics: -TODO: add grafana dashboard json here \ No newline at end of file +`android_battery_charge_ratio` - Current battery charge +`android_system_info{manufacturer, model, os_release, cpu_core_count}` - Information about Android system +`android_uptime_seconds` - Phone uptime in seconds +`android_cpu_active_seconds{core}` - Active CPU time in seconds since last time system booted +`android_cpu_total_seconds{core}` - Total CPU time in seconds since last time system booted +`android_system_temperature_celsius{where}` - Temperature on the device diff --git a/client/.idea/gradle.xml b/client/.idea/gradle.xml index a2d7c21..ae388c2 100644 --- a/client/.idea/gradle.xml +++ b/client/.idea/gradle.xml @@ -7,6 +7,7 @@