Skip to content

stats: adds metrics sink with ack#1183

Merged
junr03 merged 4 commits intoenvoyproxy:mainfrom
jingwei99:grpc_streamer
Feb 3, 2021
Merged

stats: adds metrics sink with ack#1183
junr03 merged 4 commits intoenvoyproxy:mainfrom
jingwei99:grpc_streamer

Conversation

@jingwei99
Copy link
Copy Markdown
Contributor

@jingwei99 jingwei99 commented Nov 14, 2020

Description: Replace the metrics sink from the envoy one to a custom one. The custom metrics sink comes with ack function on the grpc stream. This change is based on upstream envoy change: envoyproxy/envoy#13919
Risk Level: High
Testing: Local and ci unit tests and integration tests

Co-authored-by: Jose Nino jnino@lyft.com
Signed-off-by: Jingwei Hao jingweih@lyft.com

@jingwei99 jingwei99 marked this pull request as ready for review November 14, 2020 02:52
Copy link
Copy Markdown
Member

@junr03 junr03 left a comment

Choose a reason for hiding this comment

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

mostly lgtm! Awesome. A small comment

// A list of metric entries
repeated io.prometheus.client.MetricFamily envoy_metrics = 2;

string batch_id = 3;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: I would make this field 2.

Also lets document what this field is for.

Copy link
Copy Markdown
Contributor Author

@jingwei99 jingwei99 Jan 23, 2021

Choose a reason for hiding this comment

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

you mean

string batch_id = 2;
repeated io.prometheus.client.MetricFamily envoy_metrics = 3;

?

👌 on documentation

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes

grpc_service:
envoy_grpc:
cluster_name: stats
- name: envoy.stat_sinks.metrics_service.mobile
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am going to put up a PR today to reduce some of the stats we are emitting (and no longer need), as this config effectively doubles the amount of stats emitted

junr03
junr03 previously approved these changes Feb 1, 2021
}

message EnvoyMobileStreamMetricsResponse {
string batch_id = 1;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

comment

// only be sent in the first message on the stream.
Identifier identifier = 1;

// Identifier for the current envoy_metrics batch
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
// Identifier for the current envoy_metrics batch
// Identifier for the current envoy_metrics batch.

Same below.

Jingwei Hao added 4 commits February 2, 2021 12:51
Co-authored-by: Jose Nino jnino@lyft.com
Signed-off-by: Jingwei Hao <jingweih@lyft.com>
Signed-off-by: Jingwei Hao <jingweih@lyft.com>
Signed-off-by: Jingwei Hao <jingweih@lyft.com>
Signed-off-by: Jingwei Hao <jingweih@lyft.com>
@junr03 junr03 merged commit 2593d00 into envoyproxy:main Feb 3, 2021
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.

2 participants