-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add some basic metric to track metric latency and count #37
base: v0.39
Are you sure you want to change the base?
Conversation
@@ -19,3 +19,8 @@ vector-common = { path = "../vector-common", features = ["btreemap"] } | |||
|
|||
[build-dependencies] | |||
prost-build = "0.12" | |||
|
|||
[dependencies.tracing] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this also used in other modules?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this tracing is used in multiple source, such as :
Line 32 in 60673c7
tracing = { version = "0.1", default-features = false } |
@@ -78,6 +84,10 @@ fn reparse_groups( | |||
for (key, metric) in metrics { | |||
let tags = combine_tags(key.labels, tag_overrides.clone()); | |||
|
|||
let shard_name = tags.get("shardName").unwrap_or("unknown").to_string(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to make this shardName
configurable at the source level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering you mean configurable in source level is from this metric configuration? This metric should already have "xxx--general_1" shardName from scraping. This is a label for input source shardName we want to understand the load volume from each input shard. such nephos_1 is sending x series/seconds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, having a new option in https://vector.dev/docs/reference/configuration/sources/prometheus_scrape/ since shardName
is very databricks specific. It could be called latency_label
and set to "shardName"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to update https://github.com/databricks/vector/blob/v0.39/README.databricks.md
And note the code should be merged into v0.39-custom
Improve visibility in vector metric path
count type:
latency: