Skip to content

Commit 0374664

Browse files
author
Konstantin Malov
committed
Adding customization of the solomon_exporter key of the config in the component's spec
1 parent 07040a0 commit 0374664

9 files changed

+267
-3
lines changed

api/v1/ytsaurus_types.go

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

367+
type MetricsExporter struct {
368+
Host *string `json:"host,omitempty"`
369+
InstanceTags map[string]string `json:"instanceTags,omitempty"`
370+
}
371+
367372
type InstanceSpec struct {
368373
// Overrides coreImage for component.
369374
//+optional
@@ -389,6 +394,7 @@ type InstanceSpec struct {
389394
HostNetwork *bool `json:"hostNetwork,omitempty"`
390395
//+optional
391396
MonitoringPort *int32 `json:"monitoringPort,omitempty"`
397+
MetricsExporter *MetricsExporter `json:"metricsExporter,omitempty"`
392398
Loggers []TextLoggerSpec `json:"loggers,omitempty"`
393399
StructuredLoggers []StructuredLoggerSpec `json:"structuredLoggers,omitempty"`
394400
Affinity *corev1.Affinity `json:"affinity,omitempty"`

api/v1/zz_generated.deepcopy.go

Lines changed: 32 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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,15 @@ spec:
954954
type: string
955955
type: object
956956
type: array
957+
metrics_exporter:
958+
properties:
959+
host:
960+
type: string
961+
instance_tags:
962+
additionalProperties:
963+
type: string
964+
type: object
965+
type: object
957966
minReadyInstanceCount:
958967
type: integer
959968
monitoringPort:

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,15 @@ spec:
11631163
type: string
11641164
type: object
11651165
type: array
1166+
metrics_exporter:
1167+
properties:
1168+
host:
1169+
type: string
1170+
instance_tags:
1171+
additionalProperties:
1172+
type: string
1173+
type: object
1174+
type: object
11661175
minReadyInstanceCount:
11671176
type: integer
11681177
monitoringPort:

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,15 @@ spec:
954954
type: string
955955
type: object
956956
type: array
957+
metrics_exporter:
958+
properties:
959+
host:
960+
type: string
961+
instance_tags:
962+
additionalProperties:
963+
type: string
964+
type: object
965+
type: object
957966
minReadyInstanceCount:
958967
type: integer
959968
monitoringPort:

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,15 @@ spec:
898898
type: string
899899
type: object
900900
type: array
901+
metrics_exporter:
902+
properties:
903+
host:
904+
type: string
905+
instance_tags:
906+
additionalProperties:
907+
type: string
908+
type: object
909+
type: object
901910
minReadyInstanceCount:
902911
type: integer
903912
monitoringPort:

0 commit comments

Comments
 (0)