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
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
Jason Kulatunga
5ea149d878
upgrading to go 1.18 for generics (and lodash-like library).
...
devices with an empty wwn should be filtered out (not uploaded during device registration, skipped when attempting to upload metrics).
added a migration to delete existing device entries with an empty `wwn`
fixes #314
2022-07-09 18:28:49 -07:00
Jason Kulatunga
0f0efac866
fix update, using raw flux script.
2022-07-09 10:42:30 -07:00
Jason Kulatunga
04563c0d0d
ensure we have the ability to keep influxdb tasks up-to-date.
2022-07-09 10:05:48 -07:00
Jason Kulatunga
9316eccabe
adding tests for tasks and aggregation queries (temp).
2022-07-09 08:48:36 -07:00
Jason Kulatunga
4419f7f429
remove zig. remove cgo dependency for sqlite (using pkg.go.dev/modernc.org/sqlite)
2022-07-06 21:39:28 -07:00
Jason Kulatunga
d3e7fc6067
make sure we dont create incorrect temp data.
2022-06-11 15:57:12 -07:00
Jason Kulatunga
75d5930835
correctly using the latest data for table.
2022-06-11 11:00:00 -07:00
Jason Kulatunga
488fcfc820
added AttributeStatus bit flag
...
ensure DeviceStatus is a valid bit flag.
[docs] added running tests section to contribution guide.
make sure UI correctly treats scrutiny failures as failed.
2022-05-31 13:31:34 -07:00
Jason Kulatunga
987632df39
working deletion code.
2022-05-25 19:02:30 -07:00
Jason Kulatunga
1bd86f5abd
[WIP] Delete button for devices.
2022-05-25 14:59:55 -07:00
Jason Kulatunga
3a970e7a27
Merge pull request #262 from AnalogJ/beta
...
pre-v0.4.7 release
2022-05-25 07:50:21 -07:00
Jason Kulatunga
307c2bcdef
fix error message.
...
Simpler GormMigrateOptions.
2022-05-25 07:39:56 -07:00
Jason Kulatunga
d08a1e3ef6
ignore retention policy errors during migration.
...
- fixes #256
2022-05-24 14:26:40 -07:00
Jason Kulatunga
2292041f9f
never drop tables.
2022-05-24 10:00:41 -07:00
Jason Kulatunga
75e4bf1d6e
added a helpful comment that the database migration might take a looong time.
2022-05-24 09:47:09 -07:00
Jason Kulatunga
97add04276
make sure the migration step runs with transactions, so that we can debug easier.
...
- related #256
2022-05-24 09:07:38 -07:00
Jason Kulatunga
168ca802d1
add support for specifying scheme for influxdb endpoint url (http vs https).
...
fixes #258
2022-05-23 09:34:16 -07:00
Jason Kulatunga
1bfdd0043f
added a way to retrieve raw udev data. Can be used to retrieve disk label, UUID and "disk/by-id/*" device info.
...
Storing it in the database during device registration.
2022-05-20 20:59:29 -07:00
Jason Kulatunga
999c12748c
added a way to retrieve raw udev data. Can be used to retrieve disk label, UUID and "disk/by-id/*" device info.
...
Storing it in the database during device registration.
2022-05-20 20:59:29 -07:00
Jason Kulatunga
5ac0aa8f74
Forked InfluxDB SDK and added support for using pre-generated admin token during setup. This ensures we no longer need to persist the token during startup.
...
fixes #248
2022-05-18 09:14:05 -07:00
Jason Kulatunga
145996055a
use locked versions of database models when doing migrations.
2022-05-09 17:06:02 -07:00
Jason Kulatunga
f39628efc3
by default show all temp data.
2022-05-06 15:08:35 -07:00
Jason Kulatunga
5bab9ac04a
make sure we can correctly save the config file if onboarding influx.
2022-05-05 23:25:00 -07:00
Jason Kulatunga
1ced2198c7
cleanup log messages.
2022-05-04 21:04:58 -07:00
Jason Kulatunga
5f12fbb510
enable final migration cleanup.
2022-05-04 20:50:17 -07:00
Jason Kulatunga
702518579b
fixed summary query.
2022-05-04 20:40:48 -07:00
Jason Kulatunga
fc5a9ba15e
fixed device processing in details page. Summary query is still broken.
2022-05-04 20:13:11 -07:00
Jason Kulatunga
8fe0dbed6b
partially working. Some datapoints are failing with panic and are silently ignored.
...
TODO must fix.
2022-05-03 22:40:31 -07:00
Jason Kulatunga
7d963c96a6
writing pseudocode algorithm for data migration.
2022-05-03 12:03:08 -07:00
Jason Kulatunga
2750ccef4a
call out deprecated structs so they are not accidentally used via autocomplete.
2022-05-03 11:52:47 -07:00
Jason Kulatunga
9d85920f49
started working on migration code.
2022-05-03 11:50:22 -07:00
Jason Kulatunga
5fb5b9afbe
if we're completing the InfluxDB setup via automation, attempt to store the token in the config file automatically.
2022-04-30 15:56:48 -07:00
Jason Kulatunga
bd39b2cd4d
fixes for aggregation.
2022-04-29 16:11:12 -07:00
Jason Kulatunga
0a9d364aea
adding duration key to smart attributes api endpoint
2022-04-29 15:26:15 -07:00
Jason Kulatunga
f60636a6aa
broke scrutiny_repository.go into multiple files for easier exploration & maintenance.
2022-04-28 22:33:09 -07:00
Jason Kulatunga
7a7771981a
broke scrutiny_repository.go into multiple files for easier exploration & maintenance.
2022-04-28 22:29:09 -07:00
Jason Kulatunga
f569ab6474
[BROKEN COMMIT]
...
This code leverages the new `types.isType` functionality introduced in the flux language (https://github.com/influxdata/flux/issues/2159 )
This code will fix https://github.com/AnalogJ/scrutiny/issues/22 and all related issues.
Unfortunately this code is broken because the influxdb go client library does not correctly handle import statments in the task defintion.
blocked by
https://github.com/influxdata/influxdb-client-go/issues/322
2022-04-27 22:41:56 -07:00
Jason Kulatunga
903d5713fc
fixes for tests.
2021-11-21 14:39:39 -08:00
Jason Kulatunga
47e8595c9d
using constant vars for duration key magic strings. Fixing Errorf calls to correctly have template data.
2021-11-17 20:50:18 -08:00
Jason Kulatunga
bff83de3a0
query temp data across multiple buckets
2021-11-17 18:35:50 -08:00
Jason Kulatunga
03bfdd3890
changing the duration dropdown for temp history data. adding an /api/summary/temp endpoint
2021-11-16 20:39:09 -08:00
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.
2021-11-16 19:07:37 -08:00
Jason Kulatunga
b776fb8886
tweaking retention policy code so we can test downsampling scripts.
2021-11-16 18:32:29 -08:00
Jason Kulatunga
ce032c5609
fixes for Scrutiny end-to-end testing.
2021-10-28 07:35:25 -07:00
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).
2021-10-24 16:01:53 -07:00
Jason Kulatunga
9878985fa3
adding aggregation code
2021-10-24 13:07:12 -07:00
Jason Kulatunga
975c034925
WIP downsample scripts.
2021-10-23 10:35:32 -07:00