File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -492,6 +492,13 @@ var UserValidation = &cr.StructValidation{
492492 Validator : validateImageVersion ,
493493 },
494494 },
495+ {
496+ StructField : "ImagePrometheusToCloudWatch" ,
497+ StringValidation : & cr.StringValidation {
498+ Default : "quay.io/cortexlabs/image_prometheus_to_cloudwatch:" + consts .CortexVersion ,
499+ Validator : validateImageVersion ,
500+ },
501+ },
495502 },
496503}
497504
@@ -1326,6 +1333,9 @@ func (cc *Config) TelemetryEvent() map[string]interface{} {
13261333 if strings .HasPrefix (cc .ImagePrometheusStatsDExporter , "cortexlabs/" ) {
13271334 event ["image_prometheus_statsd_exporter._is_custom" ] = true
13281335 }
1336+ if strings .HasPrefix (cc .ImagePrometheusToCloudWatch , "cortexlabs/" ) {
1337+ event ["image_prometheus_to_cloudwatch._is_custom" ] = true
1338+ }
13291339 if cc .Spot != nil {
13301340 event ["spot._is_defined" ] = true
13311341 event ["spot" ] = * cc .Spot
Original file line number Diff line number Diff line change @@ -321,6 +321,13 @@ var UserGCPValidation = &cr.StructValidation{
321321 Validator : validateImageVersion ,
322322 },
323323 },
324+ {
325+ StructField : "ImagePrometheusStackdriverSidecar" ,
326+ StringValidation : & cr.StringValidation {
327+ Default : "quay.io/cortexlabs/prometheus-stackdriver-sidecar:" + consts .CortexVersion ,
328+ Validator : validateImageVersion ,
329+ },
330+ },
324331 },
325332}
326333
@@ -706,6 +713,9 @@ func (cc *GCPConfig) TelemetryEvent() map[string]interface{} {
706713 if strings .HasPrefix (cc .ImagePrometheusStatsDExporter , "cortexlabs/" ) {
707714 event ["image_prometheus_statsd_exporter._is_custom" ] = true
708715 }
716+ if strings .HasPrefix (cc .ImagePrometheusStackdriverSidecar , "cortexlabs/" ) {
717+ event ["image_prometheus_stackdriver_sidecar._is_custom" ] = true
718+ }
709719 return event
710720}
711721
You can’t perform that action at this time.
0 commit comments