Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

[FEATURE] Add message conversions metrics for prometheus metrics#845

Merged
BewareMyPower merged 8 commits intostreamnative:masterfrom
wenbingshen:addConvertedMetrics
Nov 2, 2021
Merged

[FEATURE] Add message conversions metrics for prometheus metrics#845
BewareMyPower merged 8 commits intostreamnative:masterfrom
wenbingshen:addConvertedMetrics

Conversation

@wenbingshen
Copy link
Contributor

Motivation

Starting from KIP-188, Kafka has added monitoring indicators for message conversion. The reason is that because the entire response must be read into memory for conversion, the cost of down conversion is high. It is useful to monitor the conversion rate and the time it takes to convert.

Therefore, it is very useful to add the same monitoring indicators in kop.

Modifications

Add the following two indicators to monitor the number of messages converted by Topic messages during production and the number of messages converted by Topic messages during consumption.
kop_server_PRODUCE_MESSAGE_CONVERSIONS
kop_server_CONSUMER_MESSAGE_CONVERSIONS

@CLAassistant
Copy link

CLAassistant commented Oct 25, 2021

CLA assistant check
All committers have signed the CLA.

@wenbingshen
Copy link
Contributor Author

@BewareMyPower @Demogorgon314 PTAL, Thanks. :)

@wenbingshen
Copy link
Contributor Author

Known flaky test: #809

@BewareMyPower BewareMyPower added the type/feature Indicates new functionality label Oct 27, 2021
@BewareMyPower BewareMyPower merged commit 2d54a21 into streamnative:master Nov 2, 2021
BewareMyPower pushed a commit that referenced this pull request Nov 5, 2021
### Motivation

Starting from [KIP-188](https://cwiki.apache.org/confluence/display/KAFKA/KIP-188+-+Add+new+metrics+to+support+health+checks#KIP188Addnewmetricstosupporthealthchecks-Messageconversionrateandtime), Kafka has added monitoring indicators for message conversion. The reason is that because the entire response must be read into memory for conversion, the cost of down conversion is high. It is useful to monitor the conversion rate and the time it takes to convert.

Therefore, it is very useful to add the same monitoring indicators in kop.

### Modifications
Add the following two indicators to monitor the number of messages converted by Topic messages during production and the number of messages converted by Topic messages during consumption.
`kop_server_PRODUCE_MESSAGE_CONVERSIONS`
`kop_server_CONSUMER_MESSAGE_CONVERSIONS`
BewareMyPower pushed a commit that referenced this pull request Nov 5, 2021
### Motivation

Starting from [KIP-188](https://cwiki.apache.org/confluence/display/KAFKA/KIP-188+-+Add+new+metrics+to+support+health+checks#KIP188Addnewmetricstosupporthealthchecks-Messageconversionrateandtime), Kafka has added monitoring indicators for message conversion. The reason is that because the entire response must be read into memory for conversion, the cost of down conversion is high. It is useful to monitor the conversion rate and the time it takes to convert.

Therefore, it is very useful to add the same monitoring indicators in kop.

### Modifications
Add the following two indicators to monitor the number of messages converted by Topic messages during production and the number of messages converted by Topic messages during consumption.
`kop_server_PRODUCE_MESSAGE_CONVERSIONS`
`kop_server_CONSUMER_MESSAGE_CONVERSIONS`
BewareMyPower pushed a commit that referenced this pull request Jan 18, 2022
In PR #845, we added the conversion metrics of the number of messages, and the metrics of message conversion time is still very useful.
BewareMyPower pushed a commit that referenced this pull request Jan 23, 2022
In PR #845, we added the conversion metrics of the number of messages, and the metrics of message conversion time is still very useful.
BewareMyPower pushed a commit that referenced this pull request Jan 23, 2022
In PR #845, we added the conversion metrics of the number of messages, and the metrics of message conversion time is still very useful.
BewareMyPower pushed a commit that referenced this pull request Feb 9, 2022
In PR #845, we added the conversion metrics of the number of messages, and the metrics of message conversion time is still very useful.

(cherry picked from commit 9f92401)
eolivelli pushed a commit to eolivelli/kop that referenced this pull request Feb 24, 2022
…eamnative#1016)

In PR streamnative#845, we added the conversion metrics of the number of messages, and the metrics of message conversion time is still very useful.

(cherry picked from commit 9f92401)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants