-
Notifications
You must be signed in to change notification settings - Fork 687
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
[v2.2] Stream Envoy metrics to the cloud #4053
Merged
Merged
Changes from 23 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
ed0775f
Prototype to stream Envoy metrics to Ambassador's backend
douglascamata a298915
Stream Envoy metrics to the cloud
douglascamata b869f5c
Port over metrics sink to envoy v3
douglascamata a4f088f
Fix logs and metrics v2 import
douglascamata 4d0d08b
Mount the go build cache in the builder dockerfile
douglascamata d2025a2
Update Helm chart with grpc port and service
douglascamata 9ca987f
Mark agent's grpc service as required k8s config
douglascamata 4fd1cbc
Update generated files
douglascamata 1c51788
Change all references of CEPC to DCP
douglascamata 8982f80
Added release notes about streaming metrics
douglascamata 6753404
Stream only the metrics we need to the cloud
douglascamata b2c5378
Merge branch 'master' of github.com:emissary-ingress/emissary into dc…
douglascamata a42dae0
Force BuildKit on in builder.mk
b4a346f
Fix mock client for grpc call
douglascamata 7350a57
Properly break out of suffix loop if found match
douglascamata 45be7de
Merge branch 'master' into dcamata/agent-metrics-stream
0f8bd8a
Merge branch 'master' of github.com:emissary-ingress/emissary into dc…
af33779
Merge branch 'dcamata/agent-metrics-stream' of github.com:emissary-in…
e28a361
Change Envoy metrics server from 8123 and 8006
0a1fccb
Upgrade to metrics v3 transport api
30e35b6
Fix logic error in envoy metrics filtering
63ae1a7
Merge branch 'master' of github.com:emissary-ingress/emissary into dc…
fb36a8c
Update generated files
d5b19d4
Improve python host/port parsing to work with ipv6
10a7796
Use dhttp package to start the metrics server
ee40b51
Start the metrics server with dgroup
2b7544a
Merge branch 'master' into dcamata/agent-metrics-stream
902d455
Whoops, missed a commit for the CHANGELOG
0029397
Merge branch 'dcamata/agent-metrics-stream' of github.com:emissary-in…
7344154
Merge branch 'master' of github.com:emissary-ingress/emissary into dc…
d305b81
Return error from metrics-server group
41d620b
Fix logging in the envoy metrics server
128bce4
Fix Python type signature of split_host_port
6473414
Pin pytest back to 6.2.5.
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 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 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 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,92 @@ | ||
// Copyright 2013 Prometheus Team | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto2"; | ||
|
||
package io.prometheus.client; | ||
option java_package = "io.prometheus.client"; | ||
option go_package = "github.com/prometheus/client_model/go;io_prometheus_client"; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
|
||
message LabelPair { | ||
optional string name = 1; | ||
optional string value = 2; | ||
} | ||
|
||
enum MetricType { | ||
COUNTER = 0; | ||
GAUGE = 1; | ||
SUMMARY = 2; | ||
UNTYPED = 3; | ||
HISTOGRAM = 4; | ||
} | ||
|
||
message Gauge { | ||
optional double value = 1; | ||
} | ||
|
||
message Counter { | ||
optional double value = 1; | ||
optional Exemplar exemplar = 2; | ||
} | ||
|
||
message Quantile { | ||
optional double quantile = 1; | ||
optional double value = 2; | ||
} | ||
|
||
message Summary { | ||
optional uint64 sample_count = 1; | ||
optional double sample_sum = 2; | ||
repeated Quantile quantile = 3; | ||
} | ||
|
||
message Untyped { | ||
optional double value = 1; | ||
} | ||
|
||
message Histogram { | ||
optional uint64 sample_count = 1; | ||
optional double sample_sum = 2; | ||
repeated Bucket bucket = 3; // Ordered in increasing order of upper_bound, +Inf bucket is optional. | ||
} | ||
|
||
message Bucket { | ||
optional uint64 cumulative_count = 1; // Cumulative in increasing order. | ||
optional double upper_bound = 2; // Inclusive. | ||
optional Exemplar exemplar = 3; | ||
} | ||
|
||
message Exemplar { | ||
repeated LabelPair label = 1; | ||
optional double value = 2; | ||
optional google.protobuf.Timestamp timestamp = 3; // OpenMetrics-style. | ||
} | ||
|
||
message Metric { | ||
repeated LabelPair label = 1; | ||
optional Gauge gauge = 2; | ||
optional Counter counter = 3; | ||
optional Summary summary = 4; | ||
optional Untyped untyped = 5; | ||
optional Histogram histogram = 7; | ||
optional int64 timestamp_ms = 6; | ||
} | ||
|
||
message MetricFamily { | ||
optional string name = 1; | ||
optional string help = 2; | ||
optional MetricType type = 3; | ||
repeated Metric metric = 4; | ||
} |
This file contains 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 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 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 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 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 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 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 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 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 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 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 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
Oops, something went wrong.
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.
Don't ever launch a goroutine that you don't have a way to wait for it to shut down. github.com/datawire/dlib/dgroup can help with this, but you are free to use other solutions as well.