Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 1cd8aca

Browse files
authored
Merge pull request #376 from grafana/match-custom-deployment-read-path
Match query-frontend/query-scheduler/querier custom deployments by default
2 parents 1363c3e + 1018e3f commit 1cd8aca

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* [CHANGE] Increased `CortexIngesterReachingSeriesLimit` critical alert threshold from 80% to 85%. #363
2424
* [CHANGE] Decreased `-server.grpc-max-concurrent-streams` from 100k to 10k. #369
2525
* [CHANGE] Decreased blocks storage ingesters graceful termination period from 80m to 20m. #369
26+
* [CHANGE] Changed default `job_names` for query-frontend, query-scheduler and querier to match custom deployments too. #376
2627
* [ENHANCEMENT] cortex-mixin: Make `cluster_namespace_deployment:kube_pod_container_resource_requests_{cpu_cores,memory_bytes}:sum` backwards compatible with `kube-state-metrics` v2.0.0. #317
2728
* [ENHANCEMENT] Cortex-mixin: Include `cortex-gw-internal` naming variation in default `gateway` job names. #328
2829
* [ENHANCEMENT] Ruler dashboard: added object storage metrics. #354
@@ -48,6 +49,7 @@
4849
* [BUGFIX] Fixed `CortexInconsistentRuntimeConfig` metric. #335
4950
* [BUGFIX] Fixed scaling dashboard to correctly work when a Cortex service deployment spans across multiple zones (a zone is expected to have the `zone-[a-z]` suffix). #365
5051
* [BUGFIX] Fixed rollout progress dashboard to correctly work when a Cortex service deployment spans across multiple zones (a zone is expected to have the `zone-[a-z]` suffix). #366
52+
* [BUGFIX] Fixed rollout progress dashboard to include query-scheduler too. #376
5153
* [BUGFIX] Fixed `-distributor.extend-writes` setting on ruler when `unregister_ingesters_on_shutdown` is disabled. #369
5254

5355
## 1.9.0 / 2021-05-18

cortex-mixin/alerts/alerts.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@
593593
expr: |||
594594
memberlist_client_cluster_members_count
595595
!= on (%s) group_left
596-
sum by (%s) (up{job=~".+/(admin-api|compactor|store-gateway|distributor|ingester.*|querier|cortex|ruler)"})
596+
sum by (%s) (up{job=~".+/(admin-api|compactor|store-gateway|distributor|ingester.*|querier.*|cortex|ruler)"})
597597
||| % [$._config.alert_aggregation_labels, $._config.alert_aggregation_labels],
598598
'for': '5m',
599599
labels: {

cortex-mixin/config.libsonnet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
// These are used by the dashboards and allow for the simultaneous display of
2727
// microservice and single binary cortex clusters.
2828
job_names: {
29-
ingester: '(ingester.*|cortex$)', // Match also ingester-blocks, which is used during the migration from chunks to blocks.
29+
ingester: '(ingester.*|cortex$)', // Match also custom and per-zone ingester deployments.
3030
distributor: '(distributor|cortex$)',
31-
querier: '(querier|cortex$)',
31+
querier: '(querier.*|cortex$)', // Match also custom querier deployments.
3232
ruler: '(ruler|cortex$)',
33-
query_frontend: '(query-frontend|cortex$)',
34-
query_scheduler: 'query-scheduler', // Not part of single-binary.
33+
query_frontend: '(query-frontend.*|cortex$)', // Match also custom query-frontend deployments.
34+
query_scheduler: 'query-scheduler.*', // Not part of single-binary. Match also custom query-scheduler deployments.
3535
table_manager: '(table-manager|cortex$)',
3636
store_gateway: '(store-gateway|cortex$)',
3737
gateway: '(gateway|cortex-gw|cortex-gw-internal)',

cortex-mixin/dashboards/rollout-progress.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
66
gateway_job_matcher: $.jobMatcher($._config.job_names.gateway),
77
gateway_write_routes_regex: 'api_(v1|prom)_push',
88
gateway_read_routes_regex: '(prometheus|api_prom)_api_v1_.+',
9-
all_services_regex: std.join('|', ['cortex-gw', 'distributor', 'ingester.*', 'query-frontend', 'querier', 'compactor', 'store-gateway', 'ruler', 'alertmanager']),
9+
all_services_regex: std.join('|', ['cortex-gw', 'distributor', 'ingester.*', 'query-frontend.*', 'query-scheduler.*', 'querier.*', 'compactor', 'store-gateway', 'ruler', 'alertmanager']),
1010
},
1111

1212
'cortex-rollout-progress.json':

cortex-mixin/dashboards/slow-queries.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
1616
targets: [
1717
{
1818
// Filter out the remote read endpoint.
19-
expr: '{cluster=~"$cluster",namespace=~"$namespace",name="query-frontend"} |= "query stats" != "/api/v1/read" | logfmt | org_id=~"${tenant_id}" | response_time > ${min_duration}',
19+
expr: '{cluster=~"$cluster",namespace=~"$namespace",name=~"query-frontend.*"} |= "query stats" != "/api/v1/read" | logfmt | org_id=~"${tenant_id}" | response_time > ${min_duration}',
2020
instant: false,
2121
legendFormat: '',
2222
range: true,

0 commit comments

Comments
 (0)