Skip to content

Instantly share code, notes, and snippets.

@rekcah78
Created October 15, 2019 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rekcah78/94a11fcc48c5eb18d6c075ea57f5c073 to your computer and use it in GitHub Desktop.
Save rekcah78/94a11fcc48c5eb18d6c075ea57f5c073 to your computer and use it in GitHub Desktop.
prometheus-adapter helm chart values
rbac:
create: true
prometheus:
url: http://linkerd-prometheus.linkerd.svc.cluster.local
port: 9090
rules:
default: false
custom:
- seriesQuery: 'response_latency_ms_bucket{namespace!="",pod!=""}'
resources:
template: <<.Resource>>
name:
matches: ^(.*)_bucket$
as: "${1}_50th"
metricsQuery: histogram_quantile(0.50, sum(irate(<<.Series>>{<<.LabelMatchers>>, direction="inbound"}[5m])) by (le, <<.GroupBy>>))
- seriesQuery: 'response_latency_ms_bucket{namespace!="",pod!=""}'
resources:
template: <<.Resource>>
name:
matches: ^(.*)_bucket$
as: "${1}_95th"
metricsQuery: histogram_quantile(0.95, sum(irate(<<.Series>>{<<.LabelMatchers>>, direction="inbound"}[5m])) by (le, <<.GroupBy>>))
- seriesQuery: 'response_latency_ms_bucket{namespace!="",pod!=""}'
resources:
template: <<.Resource>>
name:
matches: ^(.*)_bucket$
as: "${1}_99th"
metricsQuery: histogram_quantile(0.99, sum(irate(<<.Series>>{<<.LabelMatchers>>, direction="inbound"}[5m])) by (le, <<.GroupBy>>))
- seriesQuery: 'response_total{namespace!="",pod!=""}'
resources:
template: <<.Resource>>
name:
matches: "^(.*)_total$"
as: "${1}_per_second"
metricsQuery: |-
sum(
irate(
<<.Series>>{
<<.LabelMatchers>>,
direction="inbound",
tls="true"
}[30s]
)
) by (
<<.GroupBy>>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment