Merge pull request #1956 from paulfantom/pyrra-apiserver-slos
jsonnet/addons: use component label instead of job for API server SLOs
This commit is contained in:
@@ -242,10 +242,10 @@
|
|||||||
indicator: {
|
indicator: {
|
||||||
ratio: {
|
ratio: {
|
||||||
errors: {
|
errors: {
|
||||||
metric: 'apiserver_request_total{job="apiserver",verb=~"LIST|GET",code=~"5.."}',
|
metric: 'apiserver_request_total{component="apiserver",verb=~"LIST|GET",code=~"5.."}',
|
||||||
},
|
},
|
||||||
total: {
|
total: {
|
||||||
metric: 'apiserver_request_total{job="apiserver",verb=~"LIST|GET"}',
|
metric: 'apiserver_request_total{component="apiserver",verb=~"LIST|GET"}',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -270,10 +270,10 @@
|
|||||||
indicator: {
|
indicator: {
|
||||||
ratio: {
|
ratio: {
|
||||||
errors: {
|
errors: {
|
||||||
metric: 'apiserver_request_total{job="apiserver",verb=~"POST|PUT|PATCH|DELETE",code=~"5.."}',
|
metric: 'apiserver_request_total{component="apiserver",verb=~"POST|PUT|PATCH|DELETE",code=~"5.."}',
|
||||||
},
|
},
|
||||||
total: {
|
total: {
|
||||||
metric: 'apiserver_request_total{job="apiserver",verb=~"POST|PUT|PATCH|DELETE"}',
|
metric: 'apiserver_request_total{component="apiserver",verb=~"POST|PUT|PATCH|DELETE"}',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -298,10 +298,10 @@
|
|||||||
indicator: {
|
indicator: {
|
||||||
latency: {
|
latency: {
|
||||||
success: {
|
success: {
|
||||||
metric: 'apiserver_request_duration_seconds_bucket{job="apiserver",scope=~"resource|",verb=~"LIST|GET",le="0.1"}',
|
metric: 'apiserver_request_duration_seconds_bucket{component="apiserver",scope=~"resource|",verb=~"LIST|GET",le="0.1"}',
|
||||||
},
|
},
|
||||||
total: {
|
total: {
|
||||||
metric: 'apiserver_request_duration_seconds_count{job="apiserver",scope=~"resource|",verb=~"LIST|GET"}',
|
metric: 'apiserver_request_duration_seconds_count{component="apiserver",scope=~"resource|",verb=~"LIST|GET"}',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -326,10 +326,10 @@
|
|||||||
indicator: {
|
indicator: {
|
||||||
latency: {
|
latency: {
|
||||||
success: {
|
success: {
|
||||||
metric: 'apiserver_request_duration_seconds_bucket{job="apiserver",scope=~"namespace|",verb=~"LIST|GET",le="5"}',
|
metric: 'apiserver_request_duration_seconds_bucket{component="apiserver",scope=~"namespace|",verb=~"LIST|GET",le="5"}',
|
||||||
},
|
},
|
||||||
total: {
|
total: {
|
||||||
metric: 'apiserver_request_duration_seconds_count{job="apiserver",scope=~"namespace|",verb=~"LIST|GET"}',
|
metric: 'apiserver_request_duration_seconds_count{component="apiserver",scope=~"namespace|",verb=~"LIST|GET"}',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -354,10 +354,10 @@
|
|||||||
indicator: {
|
indicator: {
|
||||||
latency: {
|
latency: {
|
||||||
success: {
|
success: {
|
||||||
metric: 'apiserver_request_duration_seconds_bucket{job="apiserver",scope=~"cluster|",verb=~"LIST|GET",le="5"}',
|
metric: 'apiserver_request_duration_seconds_bucket{component="apiserver",scope=~"cluster|",verb=~"LIST|GET",le="5"}',
|
||||||
},
|
},
|
||||||
total: {
|
total: {
|
||||||
metric: 'apiserver_request_duration_seconds_count{job="apiserver",scope=~"cluster|",verb=~"LIST|GET"}',
|
metric: 'apiserver_request_duration_seconds_count{component="apiserver",scope=~"cluster|",verb=~"LIST|GET"}',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user