From c6e63cdbcda711ef45a5db53139ee34584bc63c9 Mon Sep 17 00:00:00 2001 From: "Community Hass.io Add-ons Bot" Date: Tue, 14 Mar 2023 11:23:35 +0000 Subject: [PATCH] :tada: Release of add-on Glances 0.18.0 --- README.md | 6 +-- glances/CHANGELOG.md | 17 ++++--- glances/DOCS.md | 92 +++++++++++++++++++++++++++----------- glances/README.md | 6 +-- glances/config.yaml | 103 +++++++++++++++++++++++-------------------- 5 files changed, 137 insertions(+), 87 deletions(-) diff --git a/README.md b/README.md index e83d1acf..0e2ad9ae 100644 --- a/README.md +++ b/README.md @@ -782,10 +782,10 @@ SOFTWARE. [foldingathome-armhf-shield]: https://img.shields.io/badge/armhf-no-red.svg [foldingathome-armv7-shield]: https://img.shields.io/badge/armv7-no-red.svg [foldingathome-i386-shield]: https://img.shields.io/badge/i386-no-red.svg -[addon-glances]: https://github.com/hassio-addons/addon-glances/tree/v0.17.2 -[addon-doc-glances]: https://github.com/hassio-addons/addon-glances/blob/v0.17.2/README.md +[addon-glances]: https://github.com/hassio-addons/addon-glances/tree/v0.18.0 +[addon-doc-glances]: https://github.com/hassio-addons/addon-glances/blob/v0.18.0/README.md [glances-issue]: https://github.com/hassio-addons/addon-glances/issues -[glances-version-shield]: https://img.shields.io/badge/version-v0.17.2-blue.svg +[glances-version-shield]: https://img.shields.io/badge/version-v0.18.0-blue.svg [glances-aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg [glances-amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg [glances-armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg diff --git a/glances/CHANGELOG.md b/glances/CHANGELOG.md index 2b115f81..daf6d7b3 100644 --- a/glances/CHANGELOG.md +++ b/glances/CHANGELOG.md @@ -1,12 +1,17 @@ ## What’s changed -## 🐛 Bug fixes +## ✨ New features -- Add py3-packaging dependency @tjorim (#303) -- Add py3-six dependency @tjorim (#307) +- ✨Add support for InfluxDB2 @kamontat ([#311](https://github.com/hassio-addons/addon-glances/pull/311)) + +## 🧰 Maintenance + +- 🎆 Updates maintenance/license year to 2023 @frenck ([#323](https://github.com/hassio-addons/addon-glances/pull/323)) ## ⬆️ Dependency updates -- ⬆️ Upgrades python3 to 3.10.9-r0 @tjorim (#304) -- ⬆️ Upgrades add-on base image to 13.0.0 @frenck (#306) -- 🧹 Remove obsolete requirements @tjorim (#305) +- ⬆️ Bump requests to 2.28.2 @dependabot ([#314](https://github.com/hassio-addons/addon-glances/pull/314)) +- ⬆️ Bump glances to 3.3.1.1 @dependabot ([#316](https://github.com/hassio-addons/addon-glances/pull/316)) +- ⬆️ Upgrades add-on base image to 13.1.3 @frenck ([#324](https://github.com/hassio-addons/addon-glances/pull/324)) +- ⬆️ Bump zeroconf to 0.47.3 @dependabot ([#320](https://github.com/hassio-addons/addon-glances/pull/320)) +- ⬆️ Bump bottle to 0.12.25 @dependabot ([#322](https://github.com/hassio-addons/addon-glances/pull/322)) diff --git a/glances/DOCS.md b/glances/DOCS.md index 997cb5cd..eabec22f 100644 --- a/glances/DOCS.md +++ b/glances/DOCS.md @@ -39,12 +39,20 @@ influxdb: enabled: false host: a0d7b954-influxdb port: 8086 + interval: 60 + ssl: false + prefix: localhost + version: 1 # Either 1 or 2 + + # Version 1 username: glances password: "!secret glances_influxdb_password" database: glances - prefix: localhost - interval: 60 - ssl: false + + # Version 2 + token: "!secret glances_influxdb2_token" + bucket: glances + org: myorg ``` **Note**: _This is just an example, don't copy and paste it! Create your own!_ @@ -119,28 +127,6 @@ use `a0d7b954-influxdb` as the hostname._ The port on which InfluxDB is listening. -#### Option `influxdb`: `username` - -The username that you have created for Glances to authenticate against -InfluxDB. - -#### Option `influxdb`: `password` - -The password for the above username option. - -#### Option `influxdb`: `database` - -The name of the database to store all Glances information into. - -**Note**: _It is strongly recommended to create a separate database for glances -and not store this in the same database name as Home Assistant._ - -#### Option `prefix`: `localhost` - -The hostname to append for exported data. - -**Note**: _For the Grafana Glances dashboard set this to `localhost`._ - #### Option `influxdb`: `interval` Defines the interval (in seconds) on how often Glances exports data to InfluxDB. @@ -151,6 +137,60 @@ Adding this option will allow SSL to be used on the InfluxDB connection. If not set will default to `false` which is the required setting for the Community InfluxDB add-on. +#### Option `influxdb`: `prefix` + +The hostname to append for exported data. + +**Note**: _For the Grafana Glances dashboard set this to `localhost`._ + +#### Option `influxdb`: `version` + +The influxdb version to connecting. Either **1** or **2**. + +#### Option `influxdb`: `username` + +> Applied to version 1 only + +The username that you have created for Glances to authenticate against +InfluxDB. + +#### Option `influxdb`: `password` + +> Applied to version 1 only + +The password for the above username option. + +#### Option `influxdb`: `database` + +> Applied to version 1 only + +The name of the database to store all Glances information into. + +**Note**: _It is strongly recommended to create a separate database for glances +and not store this in the same database name as Home Assistant._ + +#### Option `influxdb`: `token` + +> Applied to version 2 only + +An InfluxDB token with permissions to write to the given bucket. This should +look like `t9iHPiGQyg0ds4K1IlBrCyBsNGh71dkdR6u8Y9eeR37UzfGuFukFCdbMI4YA9EtKb4zr5coFXKw67tbBEP7CPw==` + +#### Option `influxdb`: `bucket` + +> Applied to version 1 only + +The name of the bucket to store all Glances information into. + +**Note**: _It is strongly recommended to create a separate bucket for glances +and not store this in the same bucket as Home Assistant._ + +#### Option `influxdb`: `organization` + +> Applied to version 1 only + +The InfluxDB organization that owns the given bucket. + ## Adding Glances as a sensor into Home Assistant The Home Assistant Glances sensor platform is consuming the system information @@ -208,7 +248,7 @@ check [the contributor's page][contributors]. MIT License -Copyright (c) 2019-2022 Franck Nijhof +Copyright (c) 2019-2023 Franck Nijhof Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/glances/README.md b/glances/README.md index aea5c268..cedf393f 100644 --- a/glances/README.md +++ b/glances/README.md @@ -42,10 +42,10 @@ If you are more interested in stable releases of our add-ons: [forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-glances/97102?u=frenck [github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png [github-sponsors]: https://github.com/sponsors/frenck -[maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg +[maintenance-shield]: https://img.shields.io/maintenance/yes/2023.svg [patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png [patreon]: https://www.patreon.com/frenck [project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg -[release-shield]: https://img.shields.io/badge/version-v0.17.2-blue.svg -[release]: https://github.com/hassio-addons/addon-glances/tree/v0.17.2 +[release-shield]: https://img.shields.io/badge/version-v0.18.0-blue.svg +[release]: https://github.com/hassio-addons/addon-glances/tree/v0.18.0 [screenshot]: https://github.com/hassio-addons/addon-glances/raw/main/images/screenshot.png \ No newline at end of file diff --git a/glances/config.yaml b/glances/config.yaml index ade02a53..f66cc9c8 100644 --- a/glances/config.yaml +++ b/glances/config.yaml @@ -1,24 +1,25 @@ -apparmor: false +name: Glances +version: 0.18.0 +slug: glances +description: A cross-platform system monitoring tool +url: https://github.com/hassio-addons/addon-glances +codenotary: codenotary@frenck.dev +ingress: true +ingress_port: 0 +ingress_stream: true +panel_icon: mdi:speedometer +startup: services +homeassistant: 0.92.0b2 arch: - aarch64 - amd64 - armhf - armv7 - i386 -auth_api: true -codenotary: codenotary@frenck.dev -description: A cross-platform system monitoring tool -docker_api: true -environment: - LOG_FORMAT: '{LEVEL}: {MESSAGE}' -hassio_api: true -homeassistant: 0.92.0b2 -host_network: true -host_pid: true -image: ghcr.io/hassio-addons/glances/{arch} -ingress: true -ingress_port: 0 -ingress_stream: true +ports: + 80/tcp: null +ports_description: + 80/tcp: Web interface (Not required for Ingress) map: - addons - backup @@ -26,47 +27,51 @@ map: - share - ssl - media -name: Glances +hassio_api: true +auth_api: true +docker_api: true +host_network: true +host_pid: true +apparmor: false options: - certfile: fullchain.pem - influxdb: - database: glances - enabled: false - host: a0d7b954-influxdb - interval: 60 - password: '' - port: 8086 - prefix: localhost - username: glances - keyfile: privkey.pem log_level: info process_info: false refresh_time: 10 ssl: false -panel_icon: mdi:speedometer -ports: - 80/tcp: null -ports_description: - 80/tcp: Web interface (Not required for Ingress) -schema: - certfile: str + certfile: fullchain.pem + keyfile: privkey.pem influxdb: - database: str - enabled: bool - host: str - interval: int - password: password - port: port - prefix: str - ssl: bool? - username: str - keyfile: str - leave_front_door_open: bool? + enabled: false + host: a0d7b954-influxdb + port: 8086 + interval: 60 + ssl: false + version: 1 + username: glances + password: '' + database: glances + prefix: localhost + token: '' + bucket: glances + org: myorg +schema: log_level: list(trace|debug|info|notice|warning|error|fatal) process_info: bool refresh_time: int ssl: bool -slug: glances -startup: services -url: https://github.com/hassio-addons/addon-glances -version: 0.17.2 + certfile: str + keyfile: str + influxdb: + enabled: bool + host: str + port: port + username: str + password: password + database: str + prefix: str + interval: int + ssl: bool? + leave_front_door_open: bool? +environment: + LOG_FORMAT: '{LEVEL}: {MESSAGE}' +image: ghcr.io/hassio-addons/glances/{arch}