-
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.
Move Dendrite-specific timeseries definitions to TOML (#6103)
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
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,58 @@ | ||
format_version = 1 | ||
|
||
[target] | ||
name = "dendrite" | ||
description = "Oxide switch management daemon" | ||
authz_scope = "fleet" | ||
versions = [ | ||
{ version = 1, fields = [ "rack_id", "sled_model", "sled_revision", "sled_id", "sled_serial" ] }, | ||
] | ||
|
||
[[metrics]] | ||
name = "sample_collection_duration" | ||
description = "Duration spent collecting all timeseries samples" | ||
units = "seconds" | ||
datum_type = "f64" | ||
versions = [ | ||
# Note: The sample collection time includes the time spent querying the | ||
# switch for its statistics, which is why these fields are included. | ||
# Dendrite may eventually report statistics about itself, or other aspects | ||
# not related to the switch, so they belong here, not the target. | ||
{ added_in = 1, fields = [ "switch_model", "switch_revision", "switch_id", "switch_serial" ] } | ||
] | ||
|
||
[fields.rack_id] | ||
type = "uuid" | ||
description = "ID of the rack containing the switch" | ||
|
||
[fields.sled_model] | ||
type = "string" | ||
description = "The model of the sled managing the switch" | ||
|
||
[fields.sled_revision] | ||
type = "u32" | ||
description = "Revision number of the sled managing the switch" | ||
|
||
[fields.sled_id] | ||
type = "uuid" | ||
description = "ID of the sled managing the switch" | ||
|
||
[fields.sled_serial] | ||
type = "string" | ||
description = "Serial number of the sled managing the switch" | ||
|
||
[fields.switch_model] | ||
type = "string" | ||
description = "The model of the switch being managed" | ||
|
||
[fields.switch_revision] | ||
type = "u32" | ||
description = "Revision number of the switch being managed" | ||
|
||
[fields.switch_id] | ||
type = "uuid" | ||
description = "ID of the switch being managed" | ||
|
||
[fields.switch_serial] | ||
type = "string" | ||
description = "Serial number of the switch being managed" |