Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Influxdb - Draft v0.4.0 #222

Merged
merged 87 commits into from May 9, 2022
Merged

Influxdb - Draft v0.4.0 #222

merged 87 commits into from May 9, 2022

Conversation

AnalogJ
Copy link
Owner

@AnalogJ AnalogJ commented Apr 29, 2022

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
…s to "name" field for attributes (shoudl come from metadata instead). Status is now an int64 (0 is passing).
…splay_name for metadata is included. Update mocked test data for frontend.
… using aggregate window for hourly numbers. Better temp casting during influx data inflating.
This code leverages the new `types.isType` functionality introduced in the flux language (influxdata/flux#2159)

This code will fix #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
influxdata/influxdb-client-go#322
@AnalogJ AnalogJ changed the title Influxdb Influxdb - Draft v0.4.0 May 7, 2022
@AnalogJ AnalogJ marked this pull request as ready for review May 9, 2022 15:45
@AnalogJ AnalogJ merged commit 6a9db6a into master May 9, 2022
@AnalogJ AnalogJ deleted the influxdb branch May 9, 2022 15:45
@tandy-1000
Copy link

How would I migrate from SQLite to InfluxDB?

@AnalogJ
Copy link
Owner Author

AnalogJ commented May 10, 2022

Scrutiny will automatically migrate the database from sqlite to influxdb during startup.
Sqlite is still used, but it just stores metadata, no metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment