-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Feat: expand kafka broker metrics #24259
Closed
Closed
Changes from 55 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
9b7332f
feat: update kafka connect for NR
jcountsNR 1212594
Merge pull request #1 from jcountsNR/test
jcountsNR 21b3de0
Merge branch 'main' into main
jcountsNR f671fec
Merge branch 'main' into main
jcountsNR fdd6ac6
Merge branch 'main' into main
jcountsNR aa373ce
Merge branch 'open-telemetry:main' into main
jcountsNR ffcda1d
Merge branch 'open-telemetry:main' into main
jcountsNR 277a38d
chore: attempt to fix sorting order 1
jcountsNR 863cfd6
chore: enable brokers.count and disable brokers
jcountsNR 12b6be5
chore: fix unit test issues
jcountsNR 7f3dfa4
Merge branch 'main' into main
jcountsNR 44a7d7d
fix
jcountsNR bac4529
fix test
jcountsNR b1f7f4f
Merge branch 'main' into main
jcountsNR 69fa596
Merge branch 'open-telemetry:main' into main
jcountsNR 9b5ce27
chore: generate run
jcountsNR a85f2c3
fix: fix linting issue
jcountsNR 3d24044
chore: updated to messaging.kafka
jcountsNR f5ab9a2
Merge branch 'main' into main
jcountsNR 075d149
fix: ran make generate again
jcountsNR 7d92fea
Merge branch 'main' into main
jcountsNR 25d0e71
chore: add messaging to scraper
jcountsNR 06048d4
Merge branch 'main' into main
jcountsNR 4a3a149
chore: run make gen
jcountsNR 2616287
Merge branch 'main' into main
jcountsNR 46cc504
chore: resolve merge conflict/description
jcountsNR 0c09dd1
chore: make updates based on semantic convention
jcountsNR 12f7942
Merge branch 'main' into main
jcountsNR 172e172
Merge branch 'open-telemetry:main' into main
jcountsNR 2b12c34
Merge branch 'open-telemetry:main' into old-state
jcountsNR 0702096
Merge branch 'main' into old-state
jcountsNR 42c74cd
Merge pull request #2 from jcountsNR/old-state
jcountsNR e137f3d
chore: revert to metrics based on sarama
jcountsNR 380b044
chore: updates per request
jcountsNR a255ec1
Merge branch 'main' into main
jcountsNR 1cf6c15
chore: fix description issue
jcountsNR 65862db
chore: update expected to sum
jcountsNR ad34e0b
TEST MUST REVERT
jcountsNR a894856
test2
jcountsNR 3391a70
test3
jcountsNR b5b8bc1
chore: run write
jcountsNR ec75617
chore update
jcountsNR dafb75d
update write expected
jcountsNR e8a0cb5
fix
jcountsNR 051fa90
activate metrics
jcountsNR 1a4993b
update to string instead of map
jcountsNR 5085e98
setting by field
jcountsNR 1fb7d9b
chore: remove enabled setbyuser
jcountsNR afea5c1
adding all metrics enabled
jcountsNR 1009d64
chore - add sink
jcountsNR c5c8c3b
fix write expected
jcountsNR 4b80265
chore enable all metrics to try and run write()
jcountsNR 3fc9412
disable again
jcountsNR 4298096
remove test config
jcountsNR 2368562
Merge branch 'main' into main
jcountsNR 38ed735
remove writeexpected
jcountsNR File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,16 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: kafkametricsreceiver | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: "expanding the broker metrics that are scraped." | ||
|
||
# One or more tracking issues related to the change | ||
issues: [14166] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: |
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 |
---|---|---|
|
@@ -67,13 +67,41 @@ func TestIntegration(t *testing.T) { | |
rCfg.Brokers = []string{fmt.Sprintf("%s:%s", | ||
ci.HostForNamedContainer(t, "kafka"), | ||
ci.MappedPortForNamedContainer(t, "kafka", kafkaPort))} | ||
rCfg.Scrapers = []string{"brokers", "consumers", "topics"} | ||
rCfg.Scrapers = []string{ | ||
"brokers", | ||
"consumers", | ||
"topics", | ||
} | ||
rCfg.Metrics.KafkaBrokers.Enabled = false | ||
rCfg.Metrics.KafkaConsumerGroupLag.Enabled = true | ||
rCfg.Metrics.KafkaConsumerGroupLagSum.Enabled = true | ||
rCfg.Metrics.KafkaConsumerGroupMembers.Enabled = true | ||
rCfg.Metrics.KafkaConsumerGroupOffset.Enabled = true | ||
rCfg.Metrics.KafkaConsumerGroupOffsetSum.Enabled = true | ||
rCfg.Metrics.KafkaPartitionCurrentOffset.Enabled = true | ||
rCfg.Metrics.KafkaPartitionOldestOffset.Enabled = true | ||
rCfg.Metrics.KafkaPartitionReplicas.Enabled = true | ||
rCfg.Metrics.KafkaPartitionReplicasInSync.Enabled = true | ||
rCfg.Metrics.KafkaTopicPartitions.Enabled = true | ||
rCfg.Metrics.MessagingKafkaBrokerConsumerFetchCount.Enabled = true | ||
rCfg.Metrics.MessagingKafkaBrokerConsumerFetchRate.Enabled = true | ||
rCfg.Metrics.MessagingKafkaBrokerCount.Enabled = true | ||
rCfg.Metrics.MessagingKafkaBrokerIncomingByteRate.Enabled = true | ||
rCfg.Metrics.MessagingKafkaBrokerOutgoingByteRate.Enabled = true | ||
rCfg.Metrics.MessagingKafkaBrokerRequestLatency.Enabled = true | ||
rCfg.Metrics.MessagingKafkaBrokerRequestRate.Enabled = true | ||
rCfg.Metrics.MessagingKafkaBrokerRequestSize.Enabled = true | ||
rCfg.Metrics.MessagingKafkaBrokerRequestsInFlight.Enabled = true | ||
rCfg.Metrics.MessagingKafkaBrokerResponseRate.Enabled = true | ||
rCfg.Metrics.MessagingKafkaBrokerResponseSize.Enabled = true | ||
}), | ||
|
||
// scraperinttest.WriteExpected(), // TODO remove | ||
scraperinttest.WithCompareOptions( | ||
// pmetrictest.IgnoreMetricValues(), | ||
pmetrictest.IgnoreStartTimestamp(), | ||
pmetrictest.IgnoreTimestamp(), | ||
), | ||
scraperinttest.WriteExpected(), | ||
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. Please remove this. This line is intender to be executed once locally to produce the |
||
).Run(t) | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We have all the metrics enabled, but the
expected.yaml
output doesn't have anything new. It means the integration test doesn't work some reasonThere 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.
Hmm, I never got it to write anything to expected.yaml, but I was getting metrics from it when I ran the collector. That does seem to indicate it's an issue in the integration test, but the only thing I've changed here is just enabling the metrics.