-
Notifications
You must be signed in to change notification settings - Fork 4
add WorkflowUserMetric #319
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
Changes from all commits
9fef6dd
478aa2a
fc314d8
55e63e0
86f2df7
3963b0d
6b14004
3580bea
8084d6c
57f729f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package workflows.v2; | ||
|
|
||
| import "workflows/v2/cre_info.proto"; | ||
| import "workflows/v2/workflow_key.proto"; | ||
|
|
||
| option go_package = "github.com/smartcontractkit/chainlink-protos/workflows/go/v2"; | ||
|
|
||
| enum UserMetricType { | ||
| USER_METRIC_TYPE_UNSPECIFIED = 0; | ||
| USER_METRIC_TYPE_COUNTER = 1; | ||
| USER_METRIC_TYPE_GAUGE = 2; | ||
| } | ||
|
|
||
| message WorkflowUserMetric { | ||
| CreInfo creInfo = 1; | ||
| WorkflowKey workflow = 2; | ||
| string workflowExecutionID = 3; | ||
| string timestamp = 4; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for future reference - we're using a |
||
|
|
||
| string name = 5; | ||
| double value = 6; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thinking more about this, I don't know if this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. looks like official Prometheus protobufs use a more complex value: https://github.com/prometheus/client_model/blob/master/io/prometheus/client/metrics.proto#L75 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Discussed offline - we're going to drop Histogram support for now and focus on the immediate use case of Counters and Gauges. To support histograms we need to figure out:
|
||
| UserMetricType type = 7; | ||
| map<string, string> labels = 8; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.