-
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.
Define HTTP request latency histogram timeseries in TOML
- Loading branch information
Showing
6 changed files
with
60 additions
and
34 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
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 |
---|---|---|
|
@@ -19798,7 +19798,8 @@ | |
"type": "string", | ||
"enum": [ | ||
"count", | ||
"bytes" | ||
"bytes", | ||
"seconds" | ||
] | ||
}, | ||
"User": { | ||
|
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
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,38 @@ | ||
format_version = 1 | ||
|
||
[target] | ||
name = "http_service" | ||
description = "An Oxide HTTP server" | ||
authz_scope = "fleet" | ||
versions = [ | ||
{ version = 1, fields = [ "name", "id" ] }, | ||
] | ||
|
||
[[metrics]] | ||
name = "request_latency_histogram" | ||
description = "Duration for the server to handle a request" | ||
units = "seconds" | ||
datum_type = "histogram_f64" | ||
versions = [ | ||
{ added_in = 1, fields = [ "route", "method", "status_code" ] } | ||
] | ||
|
||
[fields.name] | ||
type = "string" | ||
description = "The name of the HTTP server, or program running it" | ||
|
||
[fields.id] | ||
type = "uuid" | ||
description = "UUID of the HTTP server" | ||
|
||
[fields.route] | ||
type = "string" | ||
description = "HTTP route in the request" | ||
|
||
[fields.method] | ||
type = "string" | ||
description = "HTTP method in the request" | ||
|
||
[fields.status_code] | ||
type = "u16" | ||
description = "HTTP status code in the server's response" |