Jason Kulatunga
578a262d90
Merge pull request #372 from Robert-Zacchigna/master
2022-09-22 22:13:31 -07:00
Robert-Zacchigna
c6e11f88b4
Minor Formatting Fix
2022-09-21 14:58:16 -05:00
Robert-Zacchigna
b795331efb
Doc for Manual Install on Windows
2022-09-21 14:51:14 -05:00
packagrio-bot
f1e5bd3ed4
(v0.5.0) Automated packaging of release by Packagr
v0.5.0
2022-08-04 15:11:04 +00:00
Jason Kulatunga
d8d56f77f9
Merge pull request #352 from AnalogJ/beta
2022-08-04 08:07:56 -07:00
Jason Kulatunga
26b221532e
fix tests.
2022-08-04 07:56:43 -07:00
Jason Kulatunga
15d3206f6f
remove settings dialog from Details page.
2022-08-04 07:30:14 -07:00
Jason Kulatunga
59e2e928a8
remove the notify.level and notify.filter_attributes values from the example.scrutiny.yaml, since they are no longer allowed.
2022-08-03 23:12:09 -07:00
Jason Kulatunga
51f59e4fcd
docs, added an explanation for why influxdb is required.
2022-08-03 22:59:19 -07:00
Jason Kulatunga
f823127825
simplify logger creation (move logic into a function in main packages)
...
Ensure logger creation is consistent between Web and Collector
Create logger in main, pass down to downstream functions (like gin)
In debug mode, print a copy of AppConfig
Better debugging for logger.
2022-08-03 22:51:44 -07:00
Jason Kulatunga
d41d535ab7
make sure that the device host id is provided in notifications (if available).
...
fixes #337
2022-08-03 20:55:34 -07:00
Jason Kulatunga
9a4a8de341
make sure the settings dialog width is 600px for readability.
2022-08-03 18:38:59 -07:00
Jason Kulatunga
2d6f60abaa
attrHistory needs to be reversed, so the newest data is on the right
...
fixes #339
2022-08-03 18:23:58 -07:00
Jason Kulatunga
d201f798fb
Merge pull request #351 from AnalogJ/app_db_settings
2022-08-02 22:15:52 -07:00
Jason Kulatunga
a1b0108503
Added PRAGMA settings support when connecting to SQLITE db.
...
When a transaction cannot lock the database, because it is already locked by another one,
SQLite by default throws an error: database is locked. This behavior is usually not appropriate when
concurrent access is needed, typically when multiple processes write to the same database.
PRAGMA busy_timeout lets you set a timeout or a handler for these events. When setting a timeout,
SQLite will try the transaction multiple times within this timeout.
https://rsqlite.r-dbi.org/reference/sqlitesetbusyhandler
retrying for 30000 milliseconds, 30seconds - this would be unreasonable for a distributed multi-tenant application,
but should be fine for local usage.
added mechanism for global settings (PRAGMA and DB level instructions).
fixes #341
2022-08-02 22:14:23 -07:00
Jason Kulatunga
f0275d2349
Merge pull request #346 from KF5JWC/patch-3
2022-08-02 20:42:53 -07:00
Jason Kulatunga
9dafde8a43
Merge pull request #350 from MattKobayashi/docs_udev
2022-08-02 20:29:25 -07:00
Matthew Kobayashi
fa8f86ab7b
Add missing setup command
2022-08-03 11:02:51 +10:00
KF5JWC
41c9daa939
Make run_collect.sh executable
...
Synology task will fail when not executable:
```
/bin/bash: /volume1/@Entware/scrutiny/bin/run_collect.sh: Permission denied
```
2022-08-01 15:07:28 -05:00
Jason Kulatunga
83186ba36e
Merge pull request #345 from KF5JWC/patch-2
2022-07-31 11:00:15 -07:00
KF5JWC
3205e3d022
Update INSTALL_SYNOLOGY_COLLECTOR.md
...
Typo: Created and loaded config into `conf/`, but specifies `config/` in argument
2022-07-31 00:07:04 -05:00
Jason Kulatunga
3f272b36d4
adding setting to allow users to customize between binary vs SI/Metric units in UI.
...
fixes #330
2022-07-30 08:50:23 -07:00
Jason Kulatunga
b238579fe6
Merge pull request #343 from AnalogJ/app_db_settings
...
adding tests. Make sure that device status depends on the configured threshold
2022-07-30 08:05:19 -07:00
Jason Kulatunga
ce2f990eb1
consolidate device status to string logic in DeviceStatusPipe.
...
Ensure device status takes into account new settings.
2022-07-29 07:11:57 -07:00
Jason Kulatunga
b11b8732aa
Merge pull request #342 from MattKobayashi/docs_udev
2022-07-29 06:43:49 -07:00
Matthew Kobayashi
5cd441da7b
Add udev troubleshooting doc
2022-07-29 09:33:55 +10:00
Jason Kulatunga
2e768fb491
adding tests. Make sure that device status depends on the configured threshold.
2022-07-25 07:46:44 -07:00
Jason Kulatunga
e8755ff617
Merge pull request #338 from AnalogJ/app_db_settings
2022-07-23 16:37:16 -07:00
Jason Kulatunga
e41ee47371
filter attributes after notify
2022-07-23 16:21:53 -07:00
Jason Kulatunga
7a68a68e76
frontend, determine the device status by checking against the configured thresholds.
2022-07-23 16:11:49 -07:00
Jason Kulatunga
94594db20a
on settings save, return the new settings.
...
update the frontend to persist settings to the database.
Using ScrutinyConfigService instead of TreoConfigService.
Using snake case settings in frontend.
Make sure we're using AppConfig type where possible.
2022-07-23 14:36:32 -07:00
Jason Kulatunga
7e672e8b8e
adding tests for config.MergeConfigMap functionality. (Set vs SetDefault).
...
Converted all settings keys to snakecase.
2022-07-23 10:19:15 -07:00
Jason Kulatunga
54e2cacb00
move frontend settings into the DB (for consistent settings handling).
...
Flattened settings object.
2022-07-23 09:32:56 -07:00
Jason Kulatunga
c0f1dfdb0b
fixing config mock.
2022-07-20 22:38:30 -07:00
Jason Kulatunga
29bc79996b
working settings update.
...
Settings are loaded from the DB and added to the AppConfig during startup.
When updating settings, they are stored in AppConfig, and written do the database.
2022-07-19 23:12:23 -07:00
Jason Kulatunga
99af2b8b16
WIP settings system.
...
- updated dbdiagrams schema
- [BREAKING] force failure if `notify.filter_attributes` or `notify.level` is set
- added Settings table (and default values during migration)
- Added Save Settings and Get Settings functions.
- Added web API endpoints for getting and saving settings.
- Deprecated old Notify* constants. Created new MetricsStatus* and MetricsNotifyLevel constants.
2022-07-17 10:32:28 -07:00
Jason Kulatunga
dd0c3e6fba
rename the migration model package name.
2022-07-16 22:07:50 -07:00
Jason Kulatunga
5b2746f389
initial settings table.
2022-07-16 21:50:48 -07:00
Jason Kulatunga
e9c1de9664
update support table in README.
...
- freebsd binaries for collector and web working
- macos binaries for arm and amd.
2022-07-16 10:12:30 -07:00
Jason Kulatunga
6ca4bd4912
fix the WORKDIR for collector image.
...
fixes #335
2022-07-13 21:56:58 -07:00
packagrio-bot
c34ee85e48
(v0.4.16) Automated packaging of release by Packagr
v0.4.16
2022-07-12 16:02:04 +00:00
Jason Kulatunga
91e8eb1def
Merge pull request #333 from AnalogJ/beta
2022-07-12 08:58:39 -07:00
Jason Kulatunga
a01b8fe083
manually bump version.
2022-07-12 08:58:18 -07:00
Jason Kulatunga
550fb542d4
Merge pull request #328 from AnalogJ/beta
...
pre v0.4.16
2022-07-12 08:57:42 -07:00
Jason Kulatunga
7841063783
remove solaris.
2022-07-11 20:54:07 -07:00
Jason Kulatunga
8e05b2e2f8
Revert "add a solaris collector detect engine."
...
This reverts commit 64e1c93d16 .
https://gitlab.com/cznic/sqlite does not support Solaris.
> build constraints exclude all Go files in /home/runner/work/scrutiny/scrutiny/vendor/modernc.org/libc/errno
related #120
2022-07-11 20:52:15 -07:00
Jason Kulatunga
64e1c93d16
add a solaris collector detect engine.
2022-07-11 20:48:30 -07:00
Jason Kulatunga
b227054b52
error if any step fails.
2022-07-11 20:47:32 -07:00
Jason Kulatunga
66bd6f99c5
compiling solaris binaries
...
related #120
2022-07-11 20:38:54 -07:00
Jason Kulatunga
c6579864b8
added instructions for how to create a Scope restricted InfluxDB API token for use with Scrutiny.
...
- fixes #249
2022-07-10 11:31:33 -07:00