Commit Graph

6025 Commits

Author SHA1 Message Date
nicolargo
adfb642539 Improve docs for Web API 2024-10-06 17:49:45 +02:00
Nicolas Hennion
702b747d9d
Merge pull request #2960 from casse-boubou/Add-'Availability'-topic-to-MQTT-connection
Add 'Availability' topic to MQTT connection
2024-10-06 17:19:31 +02:00
Nicolas Hennion
b2a2a96292
Merge pull request #2959 from ariel-anieli/plugins-port-alerts
Reduced `get_web_alert` & `get_ports_alert`
2024-10-06 17:17:38 +02:00
nicolargo
65abadfe00 Remove default conf (column def) from the config file 2024-10-06 17:16:16 +02:00
Github GPG acces
2af34b3069
Add 'Availability' topic to MQTT connection
Addition of the 'availability' topic: Online or Offline when using the --export MQTT option in the case where other devices on the same broker are looking for our Glances instance
2024-10-06 15:12:45 +02:00
Ariel Otilibili
f8fe7e2d64 Reduced get_web_alert & get_ports_alert
* sequel of cbd166bf0baef31650f67cda4f357c8f4de38064; part of #2801
* `get_web_alert` & `get_ports_alert` rely on `get_p_alert`
* each needs an helper: if `get_web_alert`, the helper is `get_conds_if_url`
* if `get_ports_alert`, it is `get_conds_if_port`
* `get_p_alert` uses the helper with `get_default_ret_value`.

Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
2024-10-06 12:01:51 +02:00
nicolargo
10cc1dbe82 Merge branch 'issue1289' into develop 2024-10-06 11:20:25 +02:00
nicolargo
56d7801afb Feature request: make the central client UI configurable (example: GPU status) #1289 2024-10-06 11:20:12 +02:00
Nicolas Hennion
6e485a2bad
Merge pull request #2957 from ariel-anieli/plugin-port-msg
Fixed typos, refactored  `glances.plugins.ports.PluginModel.msg_curse()`
2024-10-05 13:06:35 +02:00
nicolargo
f27c39c74a Update docs 2024-10-05 13:03:40 +02:00
nicolargo
612615bc79 Merge branch 'issue2914' into develop 2024-10-05 13:01:55 +02:00
nicolargo
3a860dd4c2 Merge branch 'develop' into issue2914 2024-10-05 13:01:38 +02:00
nicolargo
e2d3179c43 Help also done 2024-10-05 13:00:46 +02:00
Ariel Otilibili
cbd166bf0b Refactored glances.plugins.ports.PluginModel.msg_curse()
Part of #2801.

Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
2024-10-04 21:43:25 +02:00
Ariel Otilibili
3ede32a359 Fixed typos
```
$ git grep 'emptu' | awk -F: '{print $1}' | xargs -I {} sed -ie 's/emptu/empty/' {}; echo $?
0
```

Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
2024-10-04 20:20:12 +02:00
Nicolas Hennion
7ab8a39846
Merge pull request #2954 from ariel-anieli/makefile
Refactored `webui*` rules
2024-10-02 15:05:54 +02:00
nicolargo
3f97874c63 Almost ok 2024-09-29 18:52:42 +02:00
nicolargo
2e1abd3986 Docne for containers and processlist and amps 2024-09-28 18:28:10 +02:00
Ariel Otilibili
dec419f443 Refactored webui* rules
* part of #2906
* output is unchanged.

```
$ git log --oneline -n1 --pretty=short
commit f2f97e2f (HEAD -> makefile)
Author: Ariel Otilibili <otilibil@eurecom.fr>

    Refactored `webui*` rules

$ make webui -n >> /tmp/makefile; echo $?
0

$ make webui-audit -n >> /tmp/makefile; echo $?
0

$ make webui-audit-fix -n >> /tmp/makefile; echo $?
0

$ git switch develop
Switched to branch 'develop'
Your branch is up to date with 'origin/develop'.

$ git log --oneline -n1 --pretty=short
commit 24c87253 (HEAD -> develop, origin/develop, origin/HEAD)
Merge: 42af55b3 fa7fc5bd
Author: Nicolas Hennion <nicolashennion@gmail.com>

    Merge pull request #2941 from ariel-anieli/refactor-alert

$ make webui -n >> /tmp/develop; echo $?
0

$ make webui-audit -n >> /tmp/develop; echo $?
0

$ make webui-audit-fix -n >> /tmp/develop; echo $?
0

$ diff /tmp/develop /tmp/makefile; echo $?
0
```

Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
2024-09-23 22:47:56 +02:00
Nicolas Hennion
24c8725359
Merge pull request #2941 from ariel-anieli/refactor-alert
Refactorized alert plugin
2024-09-23 14:19:27 +02:00
Nicolas Hennion
42af55b317
Merge pull request #2950 from ariel-anieli/revert-commit-01823df9
Refactorized `_GlancesCurses.display_plugin()`, version 2
2024-09-23 14:16:46 +02:00
nicolargo
7fee42f940 Top bar is ok 2024-09-22 10:15:26 +02:00
Ariel Otilibili
4bcbc12cea Refactorized _GlancesCurses.display_plugin(), version 2
Part of #2801. Broken down using:

1. `setup_upper_left_pos`
2. `get_next_x_and_x_max`
3. `display_stats_with_current_size`
4. `display_stats`

Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
2024-09-17 18:55:48 +02:00
Ariel Otilibili
400013bb4a Revert "Refactorized _GlancesCurses.display_plugin()"
* reverted commit 01823df917
* that commit introduced #2949.
2024-09-16 20:10:35 +02:00
nicolargo
61480109d6 Migration to Table bootstrap is on going 2024-09-16 08:05:32 +02:00
nicolargo
ccda282bbf Build ok but CSS style is a mess 2024-09-14 16:23:18 +02:00
Ariel Otilibili
fa7fc5bdcd Refactorized alert plugin
* closes #2416
* `msg_curse` calls `loop_over_alert`
* `loop_over_alert` loops each alert with:

    1. `add_new_line`
    2. `add_start_time`
    3. `add_duration`
    4. `add_infos`
    5. `add_min_mean_max`
    6. `add_top_proc`

Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
2024-09-14 12:40:53 +02:00
nicolargo
75fdc8f46e Remove test 2024-09-14 09:54:10 +02:00
nicolargo
10c98f6fda Merge branch 'issue2939' into develop 2024-09-14 09:53:09 +02:00
nicolargo
7d3904e89f The Web interface ignores the strftime_format parameter #2939 2024-09-14 09:52:51 +02:00
Nicolas Hennion
a1cb3630b8
Merge pull request #2932 from ariel-anieli/refactorize-display-plugin
Refactorized `_GlancesCurses.display_plugin()`
2024-09-14 09:42:02 +02:00
Ariel Otilibili
01823df917 Refactorized _GlancesCurses.display_plugin()
Part of #2801. The flow is the same. Used as helpers:

    1. `self.set_upper_left_pos`
    2. `self.goto_next_and_ret_first_col`
    3. `self.check_opt_and_add`
    4. `self.x_overbound`
    5. `self.y_overbound`
    6. `self.display_msg`

Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
2024-09-13 10:36:24 +02:00
nicolargo
b9843a1d8c Merge branch 'issue2929' into develop 2024-09-08 19:17:30 +02:00
nicolargo
36755ba4be Show only active Disk I/O (and network interface) #2929 2024-09-08 19:17:07 +02:00
RazCrimson
a3895e49b6
Merge pull request #2938 from nicolargo/feature/json-serialization-fallbacks
JSON serialization fallbacks on ujson and builtin json lib
2024-09-08 15:37:39 +05:30
RazCrimson
e9ae9ff61b chg: globals - datetime serialization support without orjson 2024-09-08 15:26:03 +05:30
RazCrimson
1fa173edbc chg: restful_api - avoid duplicating checks + basic typing 2024-09-08 14:44:49 +05:30
RazCrimson
6dc16e92ea chore: restful_api - remove unused code 2024-09-08 14:44:15 +05:30
RazCrimson
2a5251ca2d chg: restful_api - use internal serialization features 2024-09-08 14:44:15 +05:30
RazCrimson
538013d192 chg: globals - standardize json_dumps return type to bytes 2024-09-08 14:25:26 +05:30
RazCrimson
46054afd22 chg: globals - json lib preference: orjson > ujson > json 2024-09-08 14:25:26 +05:30
RazCrimson
adfa85e8ab chore: fix typos 2024-09-08 12:31:24 +05:30
Bharath Vignesh J K
7598fbed54 chg: remove orjson from base requirements.txt 2024-08-28 00:10:23 +05:30
Bharath Vignesh J K
1e278fa2cb chg: make orjson optional 2024-08-28 00:10:13 +05:30
nicolargo
92de3be0a1 Stick FastAPI version to 0.82.0 or higher (latest is better) - Related to #2926 2024-08-26 17:20:05 +02:00
nicolargo
9432d9361e Improve user message when Glances WebUI/RestAPI is ran 2024-08-24 15:53:20 +02:00
nicolargo
76478959cc Correct issue in Makefile 2024-08-24 09:32:01 +02:00
Nicolas Hennion
37457ed892
Merge pull request #2924 from ariel-anieli/makefile
Refactorized rules targetting `profiling-*` & `memory-profiling`
2024-08-24 09:12:47 +02:00
RazCrimson
2493a1929f
Merge pull request #2925 from nicolargo/standardize-history-display-timestamp
chg: alerts - standardise history display timings
2024-08-19 00:04:18 +05:30
Bharath Vignesh J K
16d56109c8 chg: alerts - standardise history display timings 2024-08-19 00:01:59 +05:30