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

Add OVS table name as label for ovs_flow_count Prometheus metrics #4893

Merged
merged 3 commits into from
Apr 25, 2023

Conversation

cr7258
Copy link
Contributor

@cr7258 cr7258 commented Apr 24, 2023

Issue: #4566

Add the OVS table name as a label for the antrea_agent_ovs_flow_count metric to facilitate identifying the corresponding table for each metric.

image

@tnqn
Copy link
Member

tnqn commented Apr 24, 2023

@cr7258 Thanks for your contribution.

@tnqn tnqn requested a review from antoninbas April 24, 2023 15:40
Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

minor comment, otherwise LGTM

IMO, this is a safe change because:

  • I consider it to be backward-compatible. Previous user queries should not be impacted.
  • This should not increase the cardinality of the metric, as the 2 labels (table_id and table_name) are essentially synonyms (for each table_id, we have one and only one table_name).

@@ -79,9 +79,9 @@ var (
Namespace: metricNamespaceAntrea,
Subsystem: metricSubsystemAgent,
Name: "ovs_flow_count",
Help: "Flow count for each OVS flow table. The TableID is used as a label.",
Help: "Flow count for each OVS flow table. The TableID and TableName are used as a label.",
Copy link
Contributor

Choose a reason for hiding this comment

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

s/are used as a label./are used as labels.

Copy link
Contributor Author

@cr7258 cr7258 Apr 25, 2023

Choose a reason for hiding this comment

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

fixed: 2cd9507

@cr7258 cr7258 requested a review from antoninbas April 25, 2023 01:27
Cheng, Seven added 3 commits April 25, 2023 09:30
Signed-off-by: Cheng, Seven <seven.cheng@sap.com>
Signed-off-by: Cheng, Seven <seven.cheng@sap.com>
Signed-off-by: Cheng, Seven <seven.cheng@sap.com>
Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for your contribution

@antoninbas
Copy link
Contributor

/test-all

@antoninbas antoninbas merged commit eb7b3f0 into antrea-io:main Apr 25, 2023
@cr7258 cr7258 deleted the add_prometheus_label branch April 26, 2023 01:58
@tnqn tnqn added the action/release-note Indicates a PR that should be included in release notes. label Apr 26, 2023
jainpulkit22 pushed a commit to urharshitha/antrea that referenced this pull request Apr 28, 2023
…trea-io#4893)

Signed-off-by: Cheng, Seven <seven.cheng@sap.com>
Co-authored-by: Cheng, Seven <seven.cheng@sap.com>
ceclinux pushed a commit to ceclinux/antrea that referenced this pull request Jun 5, 2023
…trea-io#4893)

Signed-off-by: Cheng, Seven <seven.cheng@sap.com>
Co-authored-by: Cheng, Seven <seven.cheng@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/release-note Indicates a PR that should be included in release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants