Skip to content
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: expose tx_queue_len metric #2330

Merged
merged 1 commit into from
Dec 24, 2023
Merged

feat: expose tx_queue_len metric #2330

merged 1 commit into from
Dec 24, 2023

Conversation

romange
Copy link
Collaborator

@romange romange commented Dec 23, 2023

This metric shows how much the transaction queue of dragonfly is loaded.
Also remove the redunant is_master field from metrics.
Finally, removed unnecessary "role" metric from the prometheus metrics, see #1754 for the context.

This metric shows how much the transaction queue of dragonfly is loaded.
Also, output free text, human intended replies as verbatim.

Signed-off-by: Roman Gershman <[email protected]>
@@ -753,9 +753,9 @@ void PrintPrometheusMetrics(const Metrics& m, StringResponse* resp) {
// Server metrics
AppendMetricHeader("version", "", MetricType::GAUGE, &resp->body());
AppendMetricValue("version", 1, {"version"}, {GetVersion()}, &resp->body());
AppendMetricHeader("role", "", MetricType::GAUGE, &resp->body());
AppendMetricValue("role", 1, {"role"}, {m.is_master ? "master" : "replica"}, &resp->body());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok to remove - but please cc control plane team when removing/changing existing metrics.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, I thought you guys switched to the news approach 4 months after :)

@romange romange merged commit 8bd4349 into main Dec 24, 2023
10 checks passed
@romange romange deleted the Pr2 branch December 24, 2023 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants