Skip to content

Commit 8228aa4

Browse files
author
Konstantin Malov
committed
Adding shard management to solomon_exporter via component spec
1 parent 0374664 commit 8228aa4

10 files changed

+408
-61
lines changed

api/v1/ytsaurus_types.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,15 @@ type HealthcheckProbeParams struct {
364364
FailureThreshold int32 `json:"failureThreshold,omitempty"`
365365
}
366366

367+
type MetricsShard struct {
368+
Filter []string `json:"filter,omitempty"`
369+
GridStep int32 `json:"gridStep,omitempty"`
370+
}
371+
367372
type MetricsExporter struct {
368-
Host *string `json:"host,omitempty"`
369-
InstanceTags map[string]string `json:"instanceTags,omitempty"`
373+
Host *string `json:"host,omitempty"`
374+
InstanceTags map[string]string `json:"instanceTags,omitempty"`
375+
Shards map[string]MetricsShard `json:"shards,omitempty"`
370376
}
371377

372378
type InstanceSpec struct {

api/v1/zz_generated.deepcopy.go

Lines changed: 42 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/cluster.ytsaurus.tech_remotedatanodes.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,14 +954,26 @@ spec:
954954
type: string
955955
type: object
956956
type: array
957-
metrics_exporter:
957+
metricsExporter:
958958
properties:
959959
host:
960960
type: string
961-
instance_tags:
961+
instanceTags:
962962
additionalProperties:
963963
type: string
964964
type: object
965+
shards:
966+
additionalProperties:
967+
properties:
968+
filter:
969+
items:
970+
type: string
971+
type: array
972+
gridStep:
973+
format: int32
974+
type: integer
975+
type: object
976+
type: object
965977
type: object
966978
minReadyInstanceCount:
967979
type: integer

config/crd/bases/cluster.ytsaurus.tech_remoteexecnodes.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,14 +1163,26 @@ spec:
11631163
type: string
11641164
type: object
11651165
type: array
1166-
metrics_exporter:
1166+
metricsExporter:
11671167
properties:
11681168
host:
11691169
type: string
1170-
instance_tags:
1170+
instanceTags:
11711171
additionalProperties:
11721172
type: string
11731173
type: object
1174+
shards:
1175+
additionalProperties:
1176+
properties:
1177+
filter:
1178+
items:
1179+
type: string
1180+
type: array
1181+
gridStep:
1182+
format: int32
1183+
type: integer
1184+
type: object
1185+
type: object
11741186
type: object
11751187
minReadyInstanceCount:
11761188
type: integer

config/crd/bases/cluster.ytsaurus.tech_remotetabletnodes.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,14 +954,26 @@ spec:
954954
type: string
955955
type: object
956956
type: array
957-
metrics_exporter:
957+
metricsExporter:
958958
properties:
959959
host:
960960
type: string
961-
instance_tags:
961+
instanceTags:
962962
additionalProperties:
963963
type: string
964964
type: object
965+
shards:
966+
additionalProperties:
967+
properties:
968+
filter:
969+
items:
970+
type: string
971+
type: array
972+
gridStep:
973+
format: int32
974+
type: integer
975+
type: object
976+
type: object
965977
type: object
966978
minReadyInstanceCount:
967979
type: integer

config/crd/bases/cluster.ytsaurus.tech_remoteytsaurus.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,14 +898,26 @@ spec:
898898
type: string
899899
type: object
900900
type: array
901-
metrics_exporter:
901+
metricsExporter:
902902
properties:
903903
host:
904904
type: string
905-
instance_tags:
905+
instanceTags:
906906
additionalProperties:
907907
type: string
908908
type: object
909+
shards:
910+
additionalProperties:
911+
properties:
912+
filter:
913+
items:
914+
type: string
915+
type: array
916+
gridStep:
917+
format: int32
918+
type: integer
919+
type: object
920+
type: object
909921
type: object
910922
minReadyInstanceCount:
911923
type: integer

0 commit comments

Comments
 (0)