-
Notifications
You must be signed in to change notification settings - Fork 273
Metrics Service Support #220
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
Merged
mattklein123
merged 19 commits into
envoyproxy:master
from
ramaraochavali:feature/metrics-service
Nov 3, 2017
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f0e2359
initial metrics_service proto
ramaraochavali ac39c33
added tests
ramaraochavali 2380719
added support for bazel build of promotheus proto
ramaraochavali 0edcce8
added support for bazel build of promotheus proto
ramaraochavali 3875eab
added support for bazel build of promotheus proto
ramaraochavali c4fef88
added support for bazel build of promotheus proto
ramaraochavali 5123296
added support for bazel build of promotheus proto
ramaraochavali 5f5eabb
removed proto py rule
ramaraochavali 92c0331
skip py proto
ramaraochavali beae9e5
fully qualified MetricsFamily
ramaraochavali a868271
add dep for go_grpc
ramaraochavali f15c7da
removed go support
ramaraochavali 7804dc6
removed go support
ramaraochavali bf2238c
make py optional only for metrics
ramaraochavali e473c29
changed to streaming
ramaraochavali e3bfd40
review comments
ramaraochavali 1519e6b
review comments
ramaraochavali 9040f93
review comments
ramaraochavali d753f43
review comments
ramaraochavali 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 hidden or 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 hidden or 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 hidden or 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,40 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package envoy.api.v2; | ||
|
|
||
| import "api/base.proto"; | ||
|
|
||
| import "google/api/annotations.proto"; | ||
| import "metrics.proto"; | ||
|
|
||
| // Service for streaming metrics to server that consumes the metrics data. It uses Prometheus metric | ||
| // data model as a standard to represent metrics information. | ||
| service MetricsService { | ||
| // Envoy will connect and send StreamMetricsMessage messages forever. It does not expect any | ||
| // response to be sent as nothing would be done in the case of failure. | ||
| rpc StreamMetrics(stream StreamMetricsMessage) returns (StreamMetricsResponse) { | ||
| } | ||
| } | ||
|
|
||
| message StreamMetricsResponse {} | ||
|
|
||
| message StreamMetricsMessage { | ||
| message Identifier { | ||
| // The node sending the access log messages over the stream. | ||
| Node node = 1; | ||
| } | ||
|
|
||
| // Identifier data effectively is a structured metadata. | ||
| // As a performance optimization this will only be sent in the first message on the stream. | ||
| Identifier identifier = 1; | ||
|
|
||
| // A list of metric entries | ||
| repeated io.prometheus.client.MetricFamily envoy_metrics = 2; | ||
| } | ||
|
|
||
| // Configuration structure. | ||
| message MetricsServiceConfig { | ||
| // The name of the upstream cluster that hosts the metrics service. The cluster must be | ||
| // configured in the cluster manager. | ||
| string cluster_name = 1; | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ api_cc_test( | |
| "//api:eds", | ||
| "//api:hds", | ||
| "//api:lds", | ||
| "//api:metrics", | ||
| "//api:rds", | ||
| "//api:rls", | ||
| ], | ||
|
|
||
This file contains hidden or 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
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.
Nit: blank line after package.