Skip to content

Commit 5e7db5d

Browse files
authored
Merge pull request #576 from ytsaurus/SolomonExporterCustomization
Adding customization of the solomon_exporter key
2 parents 91b5712 + 9c220ac commit 5e7db5d

16 files changed

+1300
-6
lines changed

api/v1/ytsaurus_types.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,18 @@ type HealthcheckProbeParams struct {
364364
FailureThreshold int32 `json:"failureThreshold,omitempty"`
365365
}
366366

367+
type MetricShard struct {
368+
Filter []string `json:"filter,omitempty"`
369+
GridStep int32 `json:"gridStep,omitempty"`
370+
}
371+
372+
type MetricExporter struct {
373+
Host *string `json:"host,omitempty"`
374+
InstanceTags map[string]string `json:"instanceTags,omitempty"`
375+
Shards map[string]MetricShard `json:"shards,omitempty"`
376+
GridStep int32 `json:"gridStep,omitempty"`
377+
}
378+
367379
type InstanceSpec struct {
368380
// Overrides coreImage for component.
369381
//+optional
@@ -389,6 +401,7 @@ type InstanceSpec struct {
389401
HostNetwork *bool `json:"hostNetwork,omitempty"`
390402
//+optional
391403
MonitoringPort *int32 `json:"monitoringPort,omitempty"`
404+
MetricExporter *MetricExporter `json:"metricExporter,omitempty"`
392405
Loggers []TextLoggerSpec `json:"loggers,omitempty"`
393406
StructuredLoggers []StructuredLoggerSpec `json:"structuredLoggers,omitempty"`
394407
Affinity *corev1.Affinity `json:"affinity,omitempty"`

api/v1/zz_generated.deepcopy.go

Lines changed: 59 additions & 0 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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,30 @@ spec:
954954
type: string
955955
type: object
956956
type: array
957+
metricExporter:
958+
properties:
959+
gridStep:
960+
format: int32
961+
type: integer
962+
host:
963+
type: string
964+
instanceTags:
965+
additionalProperties:
966+
type: string
967+
type: object
968+
shards:
969+
additionalProperties:
970+
properties:
971+
filter:
972+
items:
973+
type: string
974+
type: array
975+
gridStep:
976+
format: int32
977+
type: integer
978+
type: object
979+
type: object
980+
type: object
957981
minReadyInstanceCount:
958982
type: integer
959983
monitoringPort:

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,30 @@ spec:
11631163
type: string
11641164
type: object
11651165
type: array
1166+
metricExporter:
1167+
properties:
1168+
gridStep:
1169+
format: int32
1170+
type: integer
1171+
host:
1172+
type: string
1173+
instanceTags:
1174+
additionalProperties:
1175+
type: string
1176+
type: object
1177+
shards:
1178+
additionalProperties:
1179+
properties:
1180+
filter:
1181+
items:
1182+
type: string
1183+
type: array
1184+
gridStep:
1185+
format: int32
1186+
type: integer
1187+
type: object
1188+
type: object
1189+
type: object
11661190
minReadyInstanceCount:
11671191
type: integer
11681192
monitoringPort:

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,30 @@ spec:
954954
type: string
955955
type: object
956956
type: array
957+
metricExporter:
958+
properties:
959+
gridStep:
960+
format: int32
961+
type: integer
962+
host:
963+
type: string
964+
instanceTags:
965+
additionalProperties:
966+
type: string
967+
type: object
968+
shards:
969+
additionalProperties:
970+
properties:
971+
filter:
972+
items:
973+
type: string
974+
type: array
975+
gridStep:
976+
format: int32
977+
type: integer
978+
type: object
979+
type: object
980+
type: object
957981
minReadyInstanceCount:
958982
type: integer
959983
monitoringPort:

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,30 @@ spec:
898898
type: string
899899
type: object
900900
type: array
901+
metricExporter:
902+
properties:
903+
gridStep:
904+
format: int32
905+
type: integer
906+
host:
907+
type: string
908+
instanceTags:
909+
additionalProperties:
910+
type: string
911+
type: object
912+
shards:
913+
additionalProperties:
914+
properties:
915+
filter:
916+
items:
917+
type: string
918+
type: array
919+
gridStep:
920+
format: int32
921+
type: integer
922+
type: object
923+
type: object
924+
type: object
901925
minReadyInstanceCount:
902926
type: integer
903927
monitoringPort:

0 commit comments

Comments
 (0)