-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functions to catch timeseries schema changes
- Move schema types from the `oximeter-db` crate to `oximeter` proper - Add a `SchemaSet` for storing a unique set of timeseries schema, and comparing against a set deserialized from file. This works like expectorate, with a few tweaks, and allows developers to catch any changes. If we want to relax this to catching _compatible_ changes, for some definition of that, we can do that pretty easily.
- Loading branch information
Showing
11 changed files
with
853 additions
and
366 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"oximeter_collector:collections": { | ||
"timeseries_name": "oximeter_collector:collections", | ||
"field_schema": [ | ||
{ | ||
"name": "base_route", | ||
"field_type": "string", | ||
"source": "metric" | ||
}, | ||
{ | ||
"name": "collector_id", | ||
"field_type": "uuid", | ||
"source": "target" | ||
}, | ||
{ | ||
"name": "collector_ip", | ||
"field_type": "ip_addr", | ||
"source": "target" | ||
}, | ||
{ | ||
"name": "collector_port", | ||
"field_type": "u16", | ||
"source": "target" | ||
}, | ||
{ | ||
"name": "producer_id", | ||
"field_type": "uuid", | ||
"source": "metric" | ||
}, | ||
{ | ||
"name": "producer_ip", | ||
"field_type": "ip_addr", | ||
"source": "metric" | ||
}, | ||
{ | ||
"name": "producer_port", | ||
"field_type": "u16", | ||
"source": "metric" | ||
} | ||
], | ||
"datum_type": "cumulative_u64", | ||
"created": "2023-11-30T23:10:15.013761925Z" | ||
}, | ||
"oximeter_collector:failed_collections": { | ||
"timeseries_name": "oximeter_collector:failed_collections", | ||
"field_schema": [ | ||
{ | ||
"name": "base_route", | ||
"field_type": "string", | ||
"source": "metric" | ||
}, | ||
{ | ||
"name": "collector_id", | ||
"field_type": "uuid", | ||
"source": "target" | ||
}, | ||
{ | ||
"name": "collector_ip", | ||
"field_type": "ip_addr", | ||
"source": "target" | ||
}, | ||
{ | ||
"name": "collector_port", | ||
"field_type": "u16", | ||
"source": "target" | ||
}, | ||
{ | ||
"name": "producer_id", | ||
"field_type": "uuid", | ||
"source": "metric" | ||
}, | ||
{ | ||
"name": "producer_ip", | ||
"field_type": "ip_addr", | ||
"source": "metric" | ||
}, | ||
{ | ||
"name": "producer_port", | ||
"field_type": "u16", | ||
"source": "metric" | ||
}, | ||
{ | ||
"name": "reason", | ||
"field_type": "string", | ||
"source": "metric" | ||
} | ||
], | ||
"datum_type": "cumulative_u64", | ||
"created": "2023-11-30T23:10:15.014347842Z" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.