Jason Kulatunga
47e8595c9d
using constant vars for duration key magic strings. Fixing Errorf calls to correctly have template data.
3 years ago
Jason Kulatunga
bff83de3a0
query temp data across multiple buckets
3 years ago
Jason Kulatunga
03bfdd3890
changing the duration dropdown for temp history data. adding an /api/summary/temp endpoint
3 years ago
Jason Kulatunga
772063a843
find the temp history for the last week (by default). Smooth out data using aggregate window for hourly numbers. Better temp casting during influx data inflating.
3 years ago
Jason Kulatunga
b776fb8886
tweaking retention policy code so we can test downsampling scripts.
3 years ago
Jason Kulatunga
ce032c5609
fixes for Scrutiny end-to-end testing.
3 years ago
Jason Kulatunga
7b7b4fe4e3
fixing test.
3 years ago
Jason Kulatunga
5789c836db
make sure the status is always exposed in the json data. make sure display_name for metadata is included. Update mocked test data for frontend.
3 years ago
Jason Kulatunga
deba21fe19
update timestamps for testing.
3 years ago
Jason Kulatunga
31b5dfa038
ensure that all buckets are created during init. Remove all references to "name" field for attributes (shoudl come from metadata instead). Status is now an int64 (0 is passing).
3 years ago
Jason Kulatunga
9878985fa3
adding aggregation code
3 years ago
Jason Kulatunga
975c034925
WIP downsample scripts.
3 years ago
Jason Kulatunga
bd19230cbf
make sure data is persisted to DB.
3 years ago
Jason Kulatunga
80f4660130
validate thresholds whenever SMART data is recieved.
3 years ago
Jason Kulatunga
8a46931399
!!!!WIP!!!!
...
adding InfluxDB
- influxdb added to dockerfile
- influxdb s6 service
- influxdb config
- adding defaults to config
- creating a DeviceRepo interface (multiple db backends)
- implemented DeviceRepo interface as ScruitnyRepository
4 years ago
Jason Kulatunga
fd4f0429e4
(0.3.12) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
9be57f2271
(0.3.11) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
644a9418dd
(0.3.10) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
df07261c57
(0.3.9) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
527214f38c
(0.3.8) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
2fc24d0e76
fix error log.
4 years ago
Jason Kulatunga
4331f86ed4
fixing #164 telegram notification issue while I'm here.
...
TODO: do a full check of all notification params in shoutrrr and ensure they match what we use.
4 years ago
Jason Kulatunga
59d4a8e195
(0.3.7) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
79de0fed2b
upgrade shoutrrr version. Fix duplicate notifications when more than one notification handler configured (closure iteration issue).
...
fixes #160
fixes #146
fixes #135
4 years ago
Jason Kulatunga
5ea9a75039
(0.3.6) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
27b923b5e9
(0.3.5) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
bab25de2f2
(0.3.4) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
520136a5ec
fixing automated version bump, attempt 3.
4 years ago
Jason Kulatunga
e364fe95d9
fixing verion bump for release.
4 years ago
Jason Kulatunga
93cf676818
added a "Success" test for script notifications.
...
bumping the version in version file? not sure why it wasnt correctly bumped already.
4 years ago
Jason Kulatunga
bf07077154
fail if the parent directory for database does not exist.
4 years ago
Jason Kulatunga
f27883ea4c
remove requestcatcher live test.
4 years ago
Jason Kulatunga
b04f1b07e8
(0.3.0) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
9fac3c6308
fix gorm dependency.
4 years ago
Jason Kulatunga
1cd5ebaa43
missing device type update.
4 years ago
Jason Kulatunga
b44ef5cb9c
adding support for a collecto config file.
...
/scrutiny/config/collector.yaml
Adding ability to specify host identifier (label), that is updated on every collector run.
Can be specified by `host-id` CLI or `COLLECTOR_HOST_ID` env var.
Created a config class, interface and associated tests.
Created a "TransformDetectedDrives" function, that will allow users to insert drives not detected by Smarctl --scan, ignore drives that they dont want, and override smartctl device type.
Added Upsert functionality when registering devices.
Replaced "github.com/jinzhu/gorm" with "gorm.io/gorm" (ORM location moved, was using incorrect lib url)
Removed machineid library.
4 years ago
Jason Kulatunga
ac7c1f28cf
ignore empty ("") errors.
4 years ago
Jason Kulatunga
80a382d098
slight tweaks to notifications error handling.
4 years ago
Jason Kulatunga
a3438297e6
removeedd waitgroup, using sync/errgroup instead (to pass error messages back). returning errors in test notifications endpoint payload. Adding failure tests for webhooks, scripts & shoutrr.
4 years ago
Jason Kulatunga
6ca4ce39de
Adding documenation for notifications.
4 years ago
Jason Kulatunga
d339e967a6
fixing notifications.
4 years ago
Jason Kulatunga
6377a258f6
sending notifications on failure.
4 years ago
Jason Kulatunga
1246f5bba9
started working on notifications.
4 years ago
Jason Kulatunga
7742f4c6c3
fixing windows binary build during CI. Update config missing error message.
4 years ago
Jason Kulatunga
7988381433
(0.2.4) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
a80794590a
(0.2.3) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
32682283da
(0.2.2) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
75a5f7dfb6
(0.2.1) Automated packaging of release by Packagr
...
Signed-off-by: Jason Kulatunga <jason@thesparktree.com>
4 years ago
Jason Kulatunga
6a20228262
adding error handling for all DB calls. Returning StatusInternalServerError whenever an error occurs. Adding additional logging to server handlers.
...
Make sure we "return" after a c.JSON call.
4 years ago
Jason Kulatunga
5127399e94
conditionally log request body.
4 years ago