forked from grafana/tempo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tempo-mixin: add panel for Envoy Proxy sidecar, update tanka example …
…and jsonnet dependencies (grafana#1137) * tempo-mixin: add panel for Envoy Proxy sidecar, update tanka example and jsonnet dependencies Changes: ### Tempo / Writes dashboard Add a panel with Envoy metrics. This panel is to be used when the gateway is run with an Envoy Proxy sidecar (for HTTP2 load balancing). The metrics from Envoy expose the gRPC status codes, which are essential pieces of information when debugging ingress issues. The gateway only reports HTTP statuses, which is deceptive since a 200 OK HTTP packet might contain a gRPC message with an error. Example: if a request is denied by the ingester because it hits the limit, the distributor will return a HTTP 200 OK message containg a gRPC message with status 9 FAILED PRECONDITION. I've also added a text panel listing the gRPC status codes since these aren't common knowledge. It links to this doc: https://github.com/grpc/grpc/blob/master/doc/statuscodes.md ### tanka example - update prometheus config to always add `cluster` label, the tempo-mixin dashboards depend on this label - enable search in Grafana and Tempo - use a relative link to tempo-mixin, this makes it easier to quickly test changes I've also run `jb update` in tempo-mixin and tk examples, hence the large amount of vendor file being changed. * Update CHANGELOG.md * Regenerate tempo-mixin/yamls
- Loading branch information
Koenraad Verheyden
authored
Nov 26, 2021
1 parent
ba93a40
commit a1a95b3
Showing
51 changed files
with
443 additions
and
19,005 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import 'github.com/jsonnet-libs/k8s-libsonnet/1.21/main.libsonnet' | ||
import '1.21/main.libsonnet' |
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 |
---|---|---|
@@ -1,21 +1,30 @@ | ||
local ksm = import 'github.com/grafana/jsonnet-libs/kube-state-metrics/main.libsonnet'; | ||
local ksm = import 'kube-state-metrics/main.libsonnet'; | ||
local prometheus = import 'prometheus/prometheus.libsonnet'; | ||
local scrape_configs = import 'prometheus/scrape_configs.libsonnet'; | ||
|
||
local namespace = 'default'; | ||
|
||
prometheus { | ||
ksm: ksm.new(namespace), | ||
ksm: ksm.new($._config.namespace), | ||
|
||
_config+:: { | ||
prometheus_external_hostname: 'http://prometheus', | ||
}, | ||
|
||
prometheus_config+:: { | ||
scrape_configs: [ | ||
scrape_configs.kubernetes_pods, | ||
scrape_configs.kubernetes_pods + { | ||
// add the label 'cluster' to every scraped metric | ||
relabel_configs+: [ | ||
{ | ||
source_labels: ['__address__'], // always exists | ||
regex: '.*', // always matches | ||
target_label: 'cluster', | ||
replacement: $._config.cluster, | ||
action: 'replace', | ||
}, | ||
], | ||
}, | ||
scrape_configs.kube_dns, | ||
ksm.scrape_config(namespace), | ||
ksm.scrape_config($._config.namespace), | ||
], | ||
}, | ||
} |
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
17 changes: 17 additions & 0 deletions
17
example/tk/vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 6 additions & 1 deletion
7
example/tk/vendor/github.com/grafana/jsonnet-libs/grafana/configmaps.libsonnet
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.