SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
feat: adding cloud integration API changes for GCP (#11892)
Swapnil Nakade028ac27496dc
diff --git a/cmd/enterprise/server.go b/cmd/enterprise/server.goindex 2da0d564be..3dd09a970a 100644--- a/cmd/enterprise/server.go+++ b/cmd/enterprise/server.go@@ -177,9 +177,11 @@ func runServer(ctx context.Context, config signoz.Config, logger *slog.Logger) ereturn nil, err}azureCloudProviderModule := implcloudprovider.NewAzureCloudProvider(defStore)+ gcpCloudProviderModule := implcloudprovider.NewGCPCloudProvider(defStore)cloudProvidersMap := map[cloudintegrationtypes.CloudProviderType]cloudintegration.CloudProviderModule{cloudintegrationtypes.CloudProviderTypeAWS: awsCloudProviderModule,cloudintegrationtypes.CloudProviderTypeAzure: azureCloudProviderModule,+ cloudintegrationtypes.CloudProviderTypeGCP: gcpCloudProviderModule,}return implcloudintegration.NewModule(pkgcloudintegration.NewStore(sqlStore), dashboardModule, global, zeus, gateway, licensing, serviceAccount, cloudProvidersMap, config)diff --git a/docs/api/openapi.yml b/docs/api/openapi.ymlindex 50ff91c2e4..0ad065a798 100644--- a/docs/api/openapi.yml+++ b/docs/api/openapi.yml@@ -1024,6 +1024,8 @@ components:$ref: '#/components/schemas/CloudintegrationtypesAWSAccountConfig'azure:$ref: '#/components/schemas/CloudintegrationtypesAzureAccountConfig'+ gcp:+ $ref: '#/components/schemas/CloudintegrationtypesGCPAccountConfig'type: objectCloudintegrationtypesAgentReport:nullable: true@@ -1169,6 +1171,8 @@ components:$ref: '#/components/schemas/CloudintegrationtypesAWSConnectionArtifact'azure:$ref: '#/components/schemas/CloudintegrationtypesAzureConnectionArtifact'+ gcp:+ $ref: '#/components/schemas/CloudintegrationtypesGCPConnectionArtifact'type: objectCloudintegrationtypesCredentials:properties:@@ -1199,6 +1203,46 @@ components:nullable: truetype: arraytype: object+ CloudintegrationtypesGCPAccountConfig:+ properties:+ deploymentProjectId:+ type: string+ deploymentRegion:+ type: string+ projectIds:+ items:+ type: string+ type: array+ required:+ - deploymentProjectId+ - deploymentRegion+ - projectIds+ type: object+ CloudintegrationtypesGCPConnectionArtifact:+ type: object+ CloudintegrationtypesGCPIntegrationConfig:+ type: object+ CloudintegrationtypesGCPServiceConfig:+ properties:+ logs:+ $ref: '#/components/schemas/CloudintegrationtypesGCPServiceLogsConfig'+ metrics:+ $ref: '#/components/schemas/CloudintegrationtypesGCPServiceMetricsConfig'+ type: object+ CloudintegrationtypesGCPServiceLogsConfig:+ properties:+ enabled:+ type: boolean+ required:+ - enabled+ type: object+ CloudintegrationtypesGCPServiceMetricsConfig:+ properties:+ enabled:+ type: boolean+ required:+ - enabled+ type: objectCloudintegrationtypesGettableAccountWithConnectionArtifact:properties:connectionArtifact:@@ -1331,6 +1375,8 @@ components:$ref: '#/components/schemas/CloudintegrationtypesAWSPostableAccountConfig'azure:$ref: '#/components/schemas/CloudintegrationtypesAzureAccountConfig'+ gcp:+ $ref: '#/components/schemas/CloudintegrationtypesGCPAccountConfig'type: objectCloudintegrationtypesPostableAgentCheckIn:properties:@@ -1355,6 +1401,8 @@ components:$ref: '#/components/schemas/CloudintegrationtypesAWSIntegrationConfig'azure:$ref: '#/components/schemas/CloudintegrationtypesAzureIntegrationConfig'+ gcp:+ $ref: '#/components/schemas/CloudintegrationtypesGCPIntegrationConfig'type: objectCloudintegrationtypesService:properties:@@ -1399,6 +1447,8 @@ components:$ref: '#/components/schemas/CloudintegrationtypesAWSServiceConfig'azure:$ref: '#/components/schemas/CloudintegrationtypesAzureServiceConfig'+ gcp:+ $ref: '#/components/schemas/CloudintegrationtypesGCPServiceConfig'type: objectCloudintegrationtypesServiceDashboard:properties:@@ -1441,6 +1491,7 @@ components:- cosmosdb- cassandradb- redis+ - cloudsqltype: stringCloudintegrationtypesServiceMetadata:properties:@@ -1502,6 +1553,8 @@ components:$ref: '#/components/schemas/CloudintegrationtypesAWSAccountConfig'azure:$ref: '#/components/schemas/CloudintegrationtypesUpdatableAzureAccountConfig'+ gcp:+ $ref: '#/components/schemas/CloudintegrationtypesUpdatableGCPAccountConfig'type: objectCloudintegrationtypesUpdatableAzureAccountConfig:properties:@@ -1512,6 +1565,22 @@ components:required:- resourceGroupstype: object+ CloudintegrationtypesUpdatableGCPAccountConfig:+ properties:+ deploymentProjectId:+ type: string+ deploymentRegion:+ type: string+ projectIds:+ items:+ type: string+ nullable: true+ type: array+ required:+ - deploymentProjectId+ - deploymentRegion+ - projectIds+ type: objectCloudintegrationtypesUpdatableService:properties:config:diff --git a/ee/modules/cloudintegration/implcloudintegration/implcloudprovider/gcpcloudprovider.go b/ee/modules/cloudintegration/implcloudintegration/implcloudprovider/gcpcloudprovider.gonew file mode 100644index 0000000000..41232099cc--- /dev/null+++ b/ee/modules/cloudintegration/implcloudintegration/implcloudprovider/gcpcloudprovider.go@@ -0,0 +1,36 @@+package implcloudprovider++import (+ "context"++ "github.com/SigNoz/signoz/pkg/modules/cloudintegration"+ "github.com/SigNoz/signoz/pkg/types/cloudintegrationtypes"+)++type gcpcloudprovider struct {+ serviceDefinitions cloudintegrationtypes.ServiceDefinitionStore+}++func NewGCPCloudProvider(defStore cloudintegrationtypes.ServiceDefinitionStore) cloudintegration.CloudProviderModule {+ return &gcpcloudprovider{+ serviceDefinitions: defStore,+ }+}++func (g *gcpcloudprovider) BuildIntegrationConfig(ctx context.Context, account *cloudintegrationtypes.Account, services []*cloudintegrationtypes.StorableCloudIntegrationService) (*cloudintegrationtypes.ProviderIntegrationConfig, error) {+ // for manual flow we don't have any integration config to return, so returning empty config for now.+ return &cloudintegrationtypes.ProviderIntegrationConfig{}, nil+}++func (g *gcpcloudprovider) GetConnectionArtifact(ctx context.Context, account *cloudintegrationtypes.Account, req *cloudintegrationtypes.GetConnectionArtifactRequest) (*cloudintegrationtypes.ConnectionArtifact, error) {+ // for manual flow we don't have any connection artifact to return, so returning empty artifact for now.+ return &cloudintegrationtypes.ConnectionArtifact{}, nil+}++func (g *gcpcloudprovider) GetServiceDefinition(ctx context.Context, serviceID cloudintegrationtypes.ServiceID) (*cloudintegrationtypes.ServiceDefinition, error) {+ return g.serviceDefinitions.Get(ctx, cloudintegrationtypes.CloudProviderTypeGCP, serviceID)+}++func (g *gcpcloudprovider) ListServiceDefinitions(ctx context.Context) ([]*cloudintegrationtypes.ServiceDefinition, error) {+ return g.serviceDefinitions.List(ctx, cloudintegrationtypes.CloudProviderTypeGCP)+}diff --git a/frontend/src/api/generated/services/sigNoz.schemas.ts b/frontend/src/api/generated/services/sigNoz.schemas.tsindex 8ec31e5d45..bac69c637b 100644--- a/frontend/src/api/generated/services/sigNoz.schemas.ts+++ b/frontend/src/api/generated/services/sigNoz.schemas.ts@@ -2630,9 +2630,25 @@ export interface CloudintegrationtypesAzureAccountConfigDTO {resourceGroups: string[];}+export interface CloudintegrationtypesGCPAccountConfigDTO {+ /**+ * @type string+ */+ deploymentProjectId: string;+ /**+ * @type string+ */+ deploymentRegion: string;+ /**+ * @type array+ */+ projectIds: string[];+}+export interface CloudintegrationtypesAccountConfigDTO {aws?: CloudintegrationtypesAWSAccountConfigDTO;azure?: CloudintegrationtypesAzureAccountConfigDTO;+ gcp?: CloudintegrationtypesGCPAccountConfigDTO;}export interface CloudintegrationtypesAccountDTO {@@ -2740,9 +2756,29 @@ export interface CloudintegrationtypesAzureServiceConfigDTO {metrics: CloudintegrationtypesAzureServiceMetricsConfigDTO;}+export interface CloudintegrationtypesGCPServiceLogsConfigDTO {+ /**+ * @type boolean+ */+ enabled: boolean;+}++export interface CloudintegrationtypesGCPServiceMetricsConfigDTO {+ /**+ * @type boolean+ */+ enabled: boolean;+}++export interface CloudintegrationtypesGCPServiceConfigDTO {+ logs?: CloudintegrationtypesGCPServiceLogsConfigDTO;+ metrics?: CloudintegrationtypesGCPServiceMetricsConfigDTO;+}+export interface CloudintegrationtypesServiceConfigDTO {aws?: CloudintegrationtypesAWSServiceConfigDTO;azure?: CloudintegrationtypesAzureServiceConfigDTO;+ gcp?: CloudintegrationtypesGCPServiceConfigDTO;}export enum CloudintegrationtypesServiceIDDTO {@@ -2773,6 +2809,7 @@ export enum CloudintegrationtypesServiceIDDTO {cosmosdb = 'cosmosdb',cassandradb = 'cassandradb',redis = 'redis',+ cloudsql = 'cloudsql',}export type CloudintegrationtypesCloudIntegrationServiceDTOAnyOf = {/**@@ -2837,9 +2874,14 @@ export interface CloudintegrationtypesCollectedMetricDTO {unit?: string;}+export interface CloudintegrationtypesGCPConnectionArtifactDTO {+ [key: string]: unknown;+}+export interface CloudintegrationtypesConnectionArtifactDTO {aws?: CloudintegrationtypesAWSConnectionArtifactDTO;azure?: CloudintegrationtypesAzureConnectionArtifactDTO;+ gcp?: CloudintegrationtypesGCPConnectionArtifactDTO;}export interface CloudintegrationtypesCredentialsDTO {@@ -2872,6 +2914,10 @@ export interface CloudintegrationtypesDataCollectedDTO {metrics?: CloudintegrationtypesCollectedMetricDTO[] | null;}+export interface CloudintegrationtypesGCPIntegrationConfigDTO {+ [key: string]: unknown;+}+export interface CloudintegrationtypesGettableAccountWithConnectionArtifactDTO {connectionArtifact: CloudintegrationtypesConnectionArtifactDTO;/**@@ -2963,6 +3009,7 @@ export type CloudintegrationtypesIntegrationConfigDTO =export interface CloudintegrationtypesProviderIntegrationConfigDTO {aws?: CloudintegrationtypesAWSIntegrationConfigDTO;azure?: CloudintegrationtypesAzureIntegrationConfigDTO;+ gcp?: CloudintegrationtypesGCPIntegrationConfigDTO;}export interface CloudintegrationtypesGettableAgentCheckInDTO {@@ -3025,6 +3072,7 @@ export interface CloudintegrationtypesGettableServicesMetadataDTO {export interface CloudintegrationtypesPostableAccountConfigDTO {aws?: CloudintegrationtypesAWSPostableAccountConfigDTO;azure?: CloudintegrationtypesAzureAccountConfigDTO;+ gcp?: CloudintegrationtypesGCPAccountConfigDTO;}export interface CloudintegrationtypesPostableAccountDTO {@@ -3154,9 +3202,25 @@ export interface CloudintegrationtypesUpdatableAzureAccountConfigDTO {resourceGroups: string[];}+export interface CloudintegrationtypesUpdatableGCPAccountConfigDTO {+ /**+ * @type string+ */+ deploymentProjectId: string;+ /**+ * @type string+ */+ deploymentRegion: string;+ /**+ * @type array,null+ */+ projectIds: string[] | null;+}+export interface CloudintegrationtypesUpdatableAccountConfigDTO {aws?: CloudintegrationtypesAWSAccountConfigDTO;azure?: CloudintegrationtypesUpdatableAzureAccountConfigDTO;+ gcp?: CloudintegrationtypesUpdatableGCPAccountConfigDTO;}export interface CloudintegrationtypesUpdatableAccountDTO {diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql/assets/dashboards/overview.json b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql/assets/dashboards/overview.jsonnew file mode 100644index 0000000000..0967ef424b--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql/assets/dashboards/overview.json@@ -0,0 +1 @@+{}diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql/icon.svg b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql/icon.svgnew file mode 100644index 0000000000..9f29818450--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql/icon.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24"><defs><style>.cls-1{fill:#aecbfa;}.cls-1,.cls-2,.cls-3{fill-rule:evenodd;}.cls-2{fill:#669df6;}.cls-3{fill:#4285f4;}</style></defs><title>Icon_24px_SQL_Color</title><g data-name="Product Icons"><g ><polygon class="cls-1" points="4.67 10.44 4.67 13.45 12 17.35 12 14.34 4.67 10.44"/><polygon class="cls-1" points="4.67 15.09 4.67 18.1 12 22 12 18.99 4.67 15.09"/><polygon class="cls-2" points="12 17.35 19.33 13.45 19.33 10.44 12 14.34 12 17.35"/><polygon class="cls-2" points="12 22 19.33 18.1 19.33 15.09 12 18.99 12 22"/><polygon class="cls-3" points="19.33 8.91 19.33 5.9 12 2 12 5.01 19.33 8.91"/><polygon class="cls-2" points="12 2 4.67 5.9 4.67 8.91 12 5.01 12 2"/><polygon class="cls-1" points="4.67 5.87 4.67 8.89 12 12.79 12 9.77 4.67 5.87"/><polygon class="cls-2" points="12 12.79 19.33 8.89 19.33 5.87 12 9.77 12 12.79"/></g></g></svg>\ No newline at end of filediff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql/integration.json b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql/integration.jsonnew file mode 100644index 0000000000..4306a5a9ce--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql/integration.json@@ -0,0 +1,27 @@+{+ "id": "cloudsql",+ "title": "GCP Cloud SQL",+ "icon": "file://icon.svg",+ "overview": "file://overview.md",+ "supportedSignals": {+ "metrics": true,+ "logs": true+ },+ "dataCollected": {+ "metrics": [],+ "logs": []+ },+ "telemetryCollectionStrategy": {+ "gcp": {}+ },+ "assets": {+ "dashboards": [+ {+ "id": "overview",+ "title": "GCP Cloud SQL Overview",+ "description": "Overview of GCP Cloud SQL metrics",+ "definition": "file://assets/dashboards/overview.json"+ }+ ]+ }+}diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql/overview.md b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql/overview.mdnew file mode 100644index 0000000000..697cb95304--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/cloudsql/overview.md@@ -0,0 +1,3 @@+### Monitor GCP Cloud SQL with SigNoz++Collect key GCP Cloud SQL metrics and view them with an out of the box dashboard.diff --git a/pkg/modules/cloudintegration/implcloudintegration/handler.go b/pkg/modules/cloudintegration/implcloudintegration/handler.goindex 32435d4ae0..8f75434190 100644--- a/pkg/modules/cloudintegration/implcloudintegration/handler.go+++ b/pkg/modules/cloudintegration/implcloudintegration/handler.go@@ -481,6 +481,7 @@ func (handler *handler) UpdateService(rw http.ResponseWriter, r *http.Request) {render.Success(rw, http.StatusNoContent, nil)}+// TODO: Rename AgentCheckIn to just CheckIn.func (handler *handler) AgentCheckIn(rw http.ResponseWriter, r *http.Request) {ctx, cancel := context.WithTimeout(r.Context(), 10*time.Second)defer cancel()diff --git a/pkg/types/cloudintegrationtypes/account.go b/pkg/types/cloudintegrationtypes/account.goindex 16630ffd06..95502f601d 100644--- a/pkg/types/cloudintegrationtypes/account.go+++ b/pkg/types/cloudintegrationtypes/account.go@@ -31,11 +31,13 @@ type AgentReport struct {type AccountConfig struct {AWS *AWSAccountConfig `json:"aws,omitempty" required:"false" nullable:"false"`Azure *AzureAccountConfig `json:"azure,omitempty" required:"false" nullable:"false"`+ GCP *GCPAccountConfig `json:"gcp,omitempty" required:"false" nullable:"false"`}type UpdatableAccountConfig struct {AWS *UpdatableAWSAccountConfig `json:"aws,omitempty" required:"false" nullable:"false"`Azure *UpdatableAzureAccountConfig `json:"azure,omitempty" required:"false" nullable:"false"`+ GCP *UpdatableGCPAccountConfig `json:"gcp,omitempty" required:"false" nullable:"false"`}type PostableAccount struct {@@ -48,6 +50,7 @@ type PostableAccountConfig struct {AgentVersion stringAWS *AWSPostableAccountConfig `json:"aws,omitempty" required:"false" nullable:"false"`Azure *AzurePostableAccountConfig `json:"azure,omitempty" required:"false" nullable:"false"`+ GCP *GCPPostableAccountConfig `json:"gcp,omitempty" required:"false" nullable:"false"`}type Credentials struct {@@ -66,6 +69,7 @@ type ConnectionArtifact struct {// required till new providers are addedAWS *AWSConnectionArtifact `json:"aws,omitempty" required:"false" nullable:"false"`Azure *AzureConnectionArtifact `json:"azure,omitempty" required:"false" nullable:"false"`+ GCP *GCPConnectionArtifact `json:"gcp,omitempty" required:"false" nullable:"false"`}type GetConnectionArtifactRequest = PostableAccount@@ -211,6 +215,30 @@ func NewAccountConfigFromPostable(provider CloudProviderType, config *PostableAc}return &AccountConfig{Azure: &AzureAccountConfig{DeploymentRegion: config.Azure.DeploymentRegion, ResourceGroups: config.Azure.ResourceGroups}}, nil+ case CloudProviderTypeGCP:+ if config.GCP == nil {+ return nil, errors.NewInvalidInputf(ErrCodeInvalidInput, "GCP config can not be nil for GCP provider")+ }++ if config.GCP.DeploymentProjectID == "" {+ return nil, errors.NewInvalidInputf(ErrCodeInvalidInput, "deployment project ID is required for GCP provider")+ }++ if err := validateGCPRegion(config.GCP.DeploymentRegion); err != nil {+ return nil, err+ }++ if len(config.GCP.ProjectIDs) == 0 {+ return nil, errors.NewInvalidInputf(ErrCodeInvalidInput, "at least one project id is required for GCP provider")+ }++ return &AccountConfig{+ GCP: &GCPAccountConfig{+ DeploymentProjectID: config.GCP.DeploymentProjectID,+ ProjectIDs: config.GCP.ProjectIDs,+ DeploymentRegion: config.GCP.DeploymentRegion,+ },+ }, nildefault:return nil, errors.NewInvalidInputf(ErrCodeCloudProviderInvalidInput, "invalid cloud provider: %s", provider.StringValue())}@@ -244,6 +272,30 @@ func NewAccountConfigFromUpdatable(provider CloudProviderType, config *Updatable}return &AccountConfig{Azure: &AzureAccountConfig{ResourceGroups: config.Config.Azure.ResourceGroups}}, nil+ case CloudProviderTypeGCP:+ if config.Config.GCP == nil {+ return nil, errors.NewInvalidInputf(ErrCodeInvalidInput, "GCP config can not be nil for GCP provider")+ }++ if err := validateGCPRegion(config.Config.GCP.DeploymentRegion); err != nil {+ return nil, err+ }++ if len(config.Config.GCP.ProjectIDs) == 0 {+ return nil, errors.NewInvalidInputf(ErrCodeInvalidInput, "at least one project id is required for GCP provider")+ }++ if config.Config.GCP.DeploymentProjectID == "" {+ return nil, errors.NewInvalidInputf(ErrCodeInvalidInput, "deployment project ID is required for GCP provider")+ }++ return &AccountConfig{+ GCP: &GCPAccountConfig{+ DeploymentProjectID: config.Config.GCP.DeploymentProjectID,+ ProjectIDs: config.Config.GCP.ProjectIDs,+ DeploymentRegion: config.Config.GCP.DeploymentRegion,+ },+ }, nildefault:return nil, errors.NewInvalidInputf(ErrCodeCloudProviderInvalidInput, "invalid cloud provider: %s", provider.StringValue())}@@ -332,15 +384,16 @@ func (config *PostableAccountConfig) SetAgentVersion(agentVersion string) {// thats why not naming it MarshalJSON(), as it will interfere with default JSON marshalling of AccountConfig struct.// NOTE: this entertains first non-null provider's config.func (config *AccountConfig) ToJSON() ([]byte, error) {- if config.AWS != nil {+ switch {+ case config.AWS != nil:return json.Marshal(config.AWS)- }-- if config.Azure != nil {+ case config.Azure != nil:return json.Marshal(config.Azure)+ case config.GCP != nil:+ return json.Marshal(config.GCP)+ default:+ return nil, errors.NewInternalf(errors.CodeInternal, "no provider account config found")}-- return nil, errors.NewInternalf(errors.CodeInternal, "no provider account config found")}func NewIngestionKeyName(provider CloudProviderType) string {diff --git a/pkg/types/cloudintegrationtypes/checkin.go b/pkg/types/cloudintegrationtypes/checkin.goindex 50768e91e3..83def5c7e0 100644--- a/pkg/types/cloudintegrationtypes/checkin.go+++ b/pkg/types/cloudintegrationtypes/checkin.go@@ -50,6 +50,7 @@ type IntegrationConfig struct {type ProviderIntegrationConfig struct {AWS *AWSIntegrationConfig `json:"aws,omitempty" required:"false" nullable:"false"`Azure *AzureIntegrationConfig `json:"azure,omitempty" required:"false" nullable:"false"`+ GCP *GCPIntegrationConfig `json:"gcp,omitempty" required:"false" nullable:"false"`}// NewGettableAgentCheckIn constructs a backward-compatible response from an AgentCheckInResponse.diff --git a/pkg/types/cloudintegrationtypes/cloudintegration.go b/pkg/types/cloudintegrationtypes/cloudintegration.goindex 2cfb5509c4..414e465526 100644--- a/pkg/types/cloudintegrationtypes/cloudintegration.go+++ b/pkg/types/cloudintegrationtypes/cloudintegration.go@@ -63,6 +63,7 @@ type StorableCloudIntegrationService struct {type StorableServiceConfig struct {AWS *StorableAWSServiceConfigAzure *StorableAzureServiceConfig+ GCP *StorableGCPServiceConfig}type StorableAWSServiceConfig struct {@@ -92,6 +93,15 @@ type StorableAzureMetricsServiceConfig struct {Enabled bool `json:"enabled"`}+type StorableGCPServiceConfig struct {+ Logs *StorableGCPServiceLogsConfig `json:"logs,omitempty"`+ Metrics *StorableGCPServiceMetricsConfig `json:"metrics,omitempty"`+}++type StorableGCPServiceLogsConfig = GCPServiceLogsConfig++type StorableGCPServiceMetricsConfig = GCPServiceMetricsConfig+// Scan scans value from DB.func (r *StorableAgentReport) Scan(src any) error {var data []byte@@ -225,6 +235,30 @@ func newStorableServiceConfig(provider CloudProviderType, serviceID ServiceID, s}return &StorableServiceConfig{Azure: storableAzureServiceConfig}, nil+ case CloudProviderTypeGCP:+ storableGCPServiceConfig := new(StorableGCPServiceConfig)++ if supportedSignals.Logs {+ if serviceConfig.GCP.Logs == nil {+ return nil, errors.NewInvalidInputf(ErrCodeCloudIntegrationInvalidConfig, "logs config is required for GCP service: %s", serviceID.StringValue())+ }++ storableGCPServiceConfig.Logs = &StorableGCPServiceLogsConfig{+ Enabled: serviceConfig.GCP.Logs.Enabled,+ }+ }++ if supportedSignals.Metrics {+ if serviceConfig.GCP.Metrics == nil {+ return nil, errors.NewInvalidInputf(ErrCodeCloudIntegrationInvalidConfig, "metrics config is required for GCP service: %s", serviceID.StringValue())+ }++ storableGCPServiceConfig.Metrics = &StorableGCPServiceMetricsConfig{+ Enabled: serviceConfig.GCP.Metrics.Enabled,+ }+ }++ return &StorableServiceConfig{GCP: storableGCPServiceConfig}, nildefault:return nil, errors.NewInvalidInputf(ErrCodeCloudProviderInvalidInput, "invalid cloud provider: %s", provider.StringValue())}@@ -246,6 +280,13 @@ func newStorableServiceConfigFromJSON(provider CloudProviderType, jsonStr stringreturn nil, errors.WrapInternalf(err, errors.CodeInternal, "couldn't parse Azure service config JSON")}return &StorableServiceConfig{Azure: azureConfig}, nil+ case CloudProviderTypeGCP:+ gcpConfig := new(StorableGCPServiceConfig)+ err := json.Unmarshal([]byte(jsonStr), gcpConfig)+ if err != nil {+ return nil, errors.WrapInternalf(err, errors.CodeInternal, "couldn't parse GCP service config JSON")+ }+ return &StorableServiceConfig{GCP: gcpConfig}, nildefault:return nil, errors.NewInvalidInputf(ErrCodeCloudProviderInvalidInput, "invalid cloud provider: %s", provider.StringValue())}@@ -266,6 +307,13 @@ func (config *StorableServiceConfig) toJSON(provider CloudProviderType) ([]byte,return nil, errors.WrapInternalf(err, errors.CodeInternal, "couldn't serialize Azure service config to JSON")}+ return jsonBytes, nil+ case CloudProviderTypeGCP:+ jsonBytes, err := json.Marshal(config.GCP)+ if err != nil {+ return nil, errors.WrapInternalf(err, errors.CodeInternal, "couldn't serialize GCP service config to JSON")+ }+return jsonBytes, nildefault:return nil, errors.NewInvalidInputf(ErrCodeCloudProviderInvalidInput, "invalid cloud provider: %s", provider.StringValue())diff --git a/pkg/types/cloudintegrationtypes/cloudprovider.go b/pkg/types/cloudintegrationtypes/cloudprovider.goindex dd5568fa5b..23d16fcfab 100644--- a/pkg/types/cloudintegrationtypes/cloudprovider.go+++ b/pkg/types/cloudintegrationtypes/cloudprovider.go@@ -11,6 +11,7 @@ var (// cloud providers.CloudProviderTypeAWS = CloudProviderType{valuer.NewString("aws")}CloudProviderTypeAzure = CloudProviderType{valuer.NewString("azure")}+ CloudProviderTypeGCP = CloudProviderType{valuer.NewString("gcp")}ErrCodeCloudProviderInvalidInput = errors.MustNewCode("cloud_integration_invalid_cloud_provider"))@@ -21,6 +22,8 @@ func NewCloudProvider(provider string) (CloudProviderType, error) {return CloudProviderTypeAWS, nilcase CloudProviderTypeAzure.StringValue():return CloudProviderTypeAzure, nil+ case CloudProviderTypeGCP.StringValue():+ return CloudProviderTypeGCP, nildefault:return CloudProviderType{}, errors.NewInvalidInputf(ErrCodeCloudProviderInvalidInput, "invalid cloud provider: %s", provider)}diff --git a/pkg/types/cloudintegrationtypes/cloudprovider_gcp.go b/pkg/types/cloudintegrationtypes/cloudprovider_gcp.gonew file mode 100644index 0000000000..0095db65ed--- /dev/null+++ b/pkg/types/cloudintegrationtypes/cloudprovider_gcp.go@@ -0,0 +1,40 @@+package cloudintegrationtypes++type GCPAccountConfig struct {+ // Project ID where central pub/sub for logs exist+ DeploymentProjectID string `json:"deploymentProjectId" required:"true"`+ // Project ID where otel collector will be deployed+ DeploymentRegion string `json:"deploymentRegion" required:"true"`+ // List of project IDs to monitor+ ProjectIDs []string `json:"projectIds" required:"true" nullable:"false"`+}++type GCPPostableAccountConfig = GCPAccountConfig++type UpdatableGCPAccountConfig struct {+ // Project ID where central pub/sub for logs exist+ DeploymentProjectID string `json:"deploymentProjectId" required:"true"`+ // Compute service region where otel collector will be deployed+ DeploymentRegion string `json:"deploymentRegion" required:"true"`+ // List of project IDs to monitor+ ProjectIDs []string `json:"projectIds" required:"true"`+}++type GCPConnectionArtifact struct{}++type GCPIntegrationConfig struct{}++type GCPTelemetryCollectionStrategy struct{}++type GCPServiceConfig struct {+ Logs *GCPServiceLogsConfig `json:"logs,omitempty" required:"false"`+ Metrics *GCPServiceMetricsConfig `json:"metrics,omitempty" required:"false"`+}++type GCPServiceLogsConfig struct {+ Enabled bool `json:"enabled" required:"true"`+}++type GCPServiceMetricsConfig struct {+ Enabled bool `json:"enabled" required:"true"`+}diff --git a/pkg/types/cloudintegrationtypes/regions.go b/pkg/types/cloudintegrationtypes/regions.goindex a2d2af9511..8feafeaf92 100644--- a/pkg/types/cloudintegrationtypes/regions.go+++ b/pkg/types/cloudintegrationtypes/regions.go@@ -102,6 +102,51 @@ var (AzureRegionWestUS = CloudProviderRegion{valuer.NewString("westus")} // West US.AzureRegionWestUS2 = CloudProviderRegion{valuer.NewString("westus2")} // West US 2.AzureRegionWestUS3 = CloudProviderRegion{valuer.NewString("westus3")} // West US 3.++ // GCP regions.+ GCPRegionAfricaSouth1 = CloudProviderRegion{valuer.NewString("africa-south1")} // Johannesburg, South Africa. Africa.+ GCPRegionAsiaEast1 = CloudProviderRegion{valuer.NewString("asia-east1")} // Changhua County, Taiwan. APAC.+ GCPRegionAsiaEast2 = CloudProviderRegion{valuer.NewString("asia-east2")} // Hong Kong. APAC.+ GCPRegionAsiaNortheast1 = CloudProviderRegion{valuer.NewString("asia-northeast1")} // Tokyo, Japan. APAC.+ GCPRegionAsiaNortheast2 = CloudProviderRegion{valuer.NewString("asia-northeast2")} // Osaka, Japan. APAC.+ GCPRegionAsiaNortheast3 = CloudProviderRegion{valuer.NewString("asia-northeast3")} // Seoul, South Korea. APAC.+ GCPRegionAsiaSouth1 = CloudProviderRegion{valuer.NewString("asia-south1")} // Mumbai, India. APAC.+ GCPRegionAsiaSouth2 = CloudProviderRegion{valuer.NewString("asia-south2")} // Delhi, India. APAC.+ GCPRegionAsiaSoutheast1 = CloudProviderRegion{valuer.NewString("asia-southeast1")} // Jurong West, Singapore. APAC.+ GCPRegionAsiaSoutheast2 = CloudProviderRegion{valuer.NewString("asia-southeast2")} // Jakarta, Indonesia. APAC.+ GCPRegionAsiaSoutheast3 = CloudProviderRegion{valuer.NewString("asia-southeast3")} // Bangkok, Thailand. APAC.+ GCPRegionAustraliaSoutheast1 = CloudProviderRegion{valuer.NewString("australia-southeast1")} // Sydney, Australia. APAC.+ GCPRegionAustraliaSoutheast2 = CloudProviderRegion{valuer.NewString("australia-southeast2")} // Melbourne, Australia. APAC.+ GCPRegionEuropeCentral2 = CloudProviderRegion{valuer.NewString("europe-central2")} // Warsaw, Poland. Europe.+ GCPRegionEuropeNorth1 = CloudProviderRegion{valuer.NewString("europe-north1")} // Hamina, Finland. Europe.+ GCPRegionEuropeNorth2 = CloudProviderRegion{valuer.NewString("europe-north2")} // Stockholm, Sweden. Europe.+ GCPRegionEuropeSouthwest1 = CloudProviderRegion{valuer.NewString("europe-southwest1")} // Madrid, Spain. Europe.+ GCPRegionEuropeWest1 = CloudProviderRegion{valuer.NewString("europe-west1")} // St. Ghislain, Belgium. Europe.+ GCPRegionEuropeWest2 = CloudProviderRegion{valuer.NewString("europe-west2")} // London, England. Europe.+ GCPRegionEuropeWest3 = CloudProviderRegion{valuer.NewString("europe-west3")} // Frankfurt, Germany. Europe.+ GCPRegionEuropeWest4 = CloudProviderRegion{valuer.NewString("europe-west4")} // Eemshaven, Netherlands. Europe.+ GCPRegionEuropeWest6 = CloudProviderRegion{valuer.NewString("europe-west6")} // Zurich, Switzerland. Europe.+ GCPRegionEuropeWest8 = CloudProviderRegion{valuer.NewString("europe-west8")} // Milan, Italy. Europe.+ GCPRegionEuropeWest9 = CloudProviderRegion{valuer.NewString("europe-west9")} // Paris, France. Europe.+ GCPRegionEuropeWest10 = CloudProviderRegion{valuer.NewString("europe-west10")} // Berlin, Germany. Europe.+ GCPRegionEuropeWest12 = CloudProviderRegion{valuer.NewString("europe-west12")} // Turin, Italy. Europe.+ GCPRegionMECentral1 = CloudProviderRegion{valuer.NewString("me-central1")} // Doha, Qatar. Middle East.+ GCPRegionMECentral2 = CloudProviderRegion{valuer.NewString("me-central2")} // Dammam, Saudi Arabia. Middle East.+ GCPRegionMEWest1 = CloudProviderRegion{valuer.NewString("me-west1")} // Tel Aviv, Israel. Middle East.+ GCPRegionNorthamericaNortheast1 = CloudProviderRegion{valuer.NewString("northamerica-northeast1")} // Montréal, Québec, Canada. North America.+ GCPRegionNorthamericaNortheast2 = CloudProviderRegion{valuer.NewString("northamerica-northeast2")} // Toronto, Ontario, Canada. North America.+ GCPRegionNorthamericaSouth1 = CloudProviderRegion{valuer.NewString("northamerica-south1")} // Querétaro, Mexico. North America.+ GCPRegionSouthamericaEast1 = CloudProviderRegion{valuer.NewString("southamerica-east1")} // Osasco, São Paulo, Brazil. South America.+ GCPRegionSouthamericaWest1 = CloudProviderRegion{valuer.NewString("southamerica-west1")} // Santiago, Chile. South America.+ GCPRegionUSCentral1 = CloudProviderRegion{valuer.NewString("us-central1")} // Council Bluffs, Iowa. North America.+ GCPRegionUSEast1 = CloudProviderRegion{valuer.NewString("us-east1")} // Moncks Corner, South Carolina. North America.+ GCPRegionUSEast4 = CloudProviderRegion{valuer.NewString("us-east4")} // Ashburn, Virginia. North America.+ GCPRegionUSEast5 = CloudProviderRegion{valuer.NewString("us-east5")} // Columbus, Ohio. North America.+ GCPRegionUSSouth1 = CloudProviderRegion{valuer.NewString("us-south1")} // Dallas, Texas. North America.+ GCPRegionUSWest1 = CloudProviderRegion{valuer.NewString("us-west1")} // The Dalles, Oregon. North America.+ GCPRegionUSWest2 = CloudProviderRegion{valuer.NewString("us-west2")} // Los Angeles, California. North America.+ GCPRegionUSWest3 = CloudProviderRegion{valuer.NewString("us-west3")} // Salt Lake City, Utah. North America.+ GCPRegionUSWest4 = CloudProviderRegion{valuer.NewString("us-west4")} // Las Vegas, Nevada. North America.)func Enum() []any {@@ -127,6 +172,18 @@ func Enum() []any {AzureRegionSwedenCentral, AzureRegionSwitzerlandNorth, AzureRegionSwitzerlandWest,AzureRegionUAECentral, AzureRegionUAENorth, AzureRegionUKSouth, AzureRegionUKWest,AzureRegionWestCentralUS, AzureRegionWestEurope, AzureRegionWestIndia, AzureRegionWestUS, AzureRegionWestUS2, AzureRegionWestUS3,+ // GCP regions.+ GCPRegionAfricaSouth1, GCPRegionAsiaEast1, GCPRegionAsiaEast2, GCPRegionAsiaNortheast1, GCPRegionAsiaNortheast2, GCPRegionAsiaNortheast3,+ GCPRegionAsiaSouth1, GCPRegionAsiaSouth2, GCPRegionAsiaSoutheast1, GCPRegionAsiaSoutheast2, GCPRegionAsiaSoutheast3,+ GCPRegionAustraliaSoutheast1, GCPRegionAustraliaSoutheast2,+ GCPRegionEuropeCentral2, GCPRegionEuropeNorth1, GCPRegionEuropeNorth2, GCPRegionEuropeSouthwest1,+ GCPRegionEuropeWest1, GCPRegionEuropeWest2, GCPRegionEuropeWest3, GCPRegionEuropeWest4, GCPRegionEuropeWest6,+ GCPRegionEuropeWest8, GCPRegionEuropeWest9, GCPRegionEuropeWest10, GCPRegionEuropeWest12,+ GCPRegionMECentral1, GCPRegionMECentral2, GCPRegionMEWest1,+ GCPRegionNorthamericaNortheast1, GCPRegionNorthamericaNortheast2, GCPRegionNorthamericaSouth1,+ GCPRegionSouthamericaEast1, GCPRegionSouthamericaWest1,+ GCPRegionUSCentral1, GCPRegionUSEast1, GCPRegionUSEast4, GCPRegionUSEast5, GCPRegionUSSouth1,+ GCPRegionUSWest1, GCPRegionUSWest2, GCPRegionUSWest3, GCPRegionUSWest4,}}@@ -154,6 +211,19 @@ var SupportedRegions = map[CloudProviderType][]CloudProviderRegion{AzureRegionUAECentral, AzureRegionUAENorth, AzureRegionUKSouth, AzureRegionUKWest,AzureRegionWestCentralUS, AzureRegionWestEurope, AzureRegionWestIndia, AzureRegionWestUS, AzureRegionWestUS2, AzureRegionWestUS3,},+ CloudProviderTypeGCP: {+ GCPRegionAfricaSouth1, GCPRegionAsiaEast1, GCPRegionAsiaEast2, GCPRegionAsiaNortheast1, GCPRegionAsiaNortheast2, GCPRegionAsiaNortheast3,+ GCPRegionAsiaSouth1, GCPRegionAsiaSouth2, GCPRegionAsiaSoutheast1, GCPRegionAsiaSoutheast2, GCPRegionAsiaSoutheast3,+ GCPRegionAustraliaSoutheast1, GCPRegionAustraliaSoutheast2,+ GCPRegionEuropeCentral2, GCPRegionEuropeNorth1, GCPRegionEuropeNorth2, GCPRegionEuropeSouthwest1,+ GCPRegionEuropeWest1, GCPRegionEuropeWest2, GCPRegionEuropeWest3, GCPRegionEuropeWest4, GCPRegionEuropeWest6,+ GCPRegionEuropeWest8, GCPRegionEuropeWest9, GCPRegionEuropeWest10, GCPRegionEuropeWest12,+ GCPRegionMECentral1, GCPRegionMECentral2, GCPRegionMEWest1,+ GCPRegionNorthamericaNortheast1, GCPRegionNorthamericaNortheast2, GCPRegionNorthamericaSouth1,+ GCPRegionSouthamericaEast1, GCPRegionSouthamericaWest1,+ GCPRegionUSCentral1, GCPRegionUSEast1, GCPRegionUSEast4, GCPRegionUSEast5, GCPRegionUSSouth1,+ GCPRegionUSWest1, GCPRegionUSWest2, GCPRegionUSWest3, GCPRegionUSWest4,+ },}func validateAWSRegion(region string) error {@@ -175,3 +245,13 @@ func validateAzureRegion(region string) error {return errors.NewInvalidInputf(ErrCodeInvalidCloudRegion, "invalid Azure region: %s", region)}++func validateGCPRegion(region string) error {+ for _, r := range SupportedRegions[CloudProviderTypeGCP] {+ if r.StringValue() == region {+ return nil+ }+ }++ return errors.NewInvalidInputf(ErrCodeInvalidCloudRegion, "invalid GCP region: %s", region)+}diff --git a/pkg/types/cloudintegrationtypes/service.go b/pkg/types/cloudintegrationtypes/service.goindex f947a5fdd4..73467d5d0d 100644--- a/pkg/types/cloudintegrationtypes/service.go+++ b/pkg/types/cloudintegrationtypes/service.go@@ -21,6 +21,7 @@ type CloudIntegrationService struct {type ServiceConfig struct {AWS *AWSServiceConfig `json:"aws,omitempty" required:"false" nullable:"false"`Azure *AzureServiceConfig `json:"azure,omitempty" required:"false" nullable:"false"`+ GCP *GCPServiceConfig `json:"gcp,omitempty" required:"false" nullable:"false"`}// ServiceMetadata helps to quickly list available services and whether it is enabled or not.@@ -96,6 +97,7 @@ type DataCollected struct {type TelemetryCollectionStrategy struct {AWS *AWSTelemetryCollectionStrategy `json:"aws,omitempty" required:"false" nullable:"false"`Azure *AzureTelemetryCollectionStrategy `json:"azure,omitempty" required:"false" nullable:"false"`+ GCP *GCPTelemetryCollectionStrategy `json:"gcp,omitempty" required:"false" nullable:"false"`}// Assets represents the collection of dashboards.@@ -145,6 +147,10 @@ func NewCloudIntegrationService(serviceID ServiceID, cloudIntegrationID valuer.Uif config.Azure == nil {return nil, errors.NewInvalidInputf(ErrCodeInvalidInput, "Azure config is required for Azure service")}+ case CloudProviderTypeGCP:+ if config.GCP == nil {+ return nil, errors.NewInvalidInputf(ErrCodeInvalidInput, "GCP config is required for GCP service")+ }}return &CloudIntegrationService{@@ -261,6 +267,22 @@ func NewServiceConfigFromJSON(provider CloudProviderType, jsonString string) (*S}return &ServiceConfig{Azure: azureServiceConfig}, nil+ case CloudProviderTypeGCP:+ gcpServiceConfig := new(GCPServiceConfig)++ if storableServiceConfig.GCP.Logs != nil {+ gcpServiceConfig.Logs = &GCPServiceLogsConfig{+ Enabled: storableServiceConfig.GCP.Logs.Enabled,+ }+ }++ if storableServiceConfig.GCP.Metrics != nil {+ gcpServiceConfig.Metrics = &GCPServiceMetricsConfig{+ Enabled: storableServiceConfig.GCP.Metrics.Enabled,+ }+ }++ return &ServiceConfig{GCP: gcpServiceConfig}, nildefault:return nil, errors.NewInvalidInputf(ErrCodeCloudProviderInvalidInput, "invalid cloud provider: %s", provider.StringValue())}@@ -285,6 +307,10 @@ func (service *CloudIntegrationService) Update(provider CloudProviderType, serviif config.Azure == nil {return errors.NewInvalidInputf(ErrCodeCloudProviderInvalidInput, "Azure config is required for Azure service")}+ case CloudProviderTypeGCP:+ if config.GCP == nil {+ return errors.NewInvalidInputf(ErrCodeCloudProviderInvalidInput, "GCP config is required for GCP service")+ }default:return errors.NewInvalidInputf(ErrCodeCloudProviderInvalidInput, "invalid cloud provider: %s", provider.StringValue())}@@ -306,6 +332,10 @@ func (config *ServiceConfig) IsServiceEnabled(provider CloudProviderType) bool {logsEnabled := config.Azure.Logs != nil && config.Azure.Logs.EnabledmetricsEnabled := config.Azure.Metrics != nil && config.Azure.Metrics.Enabledreturn logsEnabled || metricsEnabled+ case CloudProviderTypeGCP:+ logsEnabled := config.GCP.Logs != nil && config.GCP.Logs.Enabled+ metricsEnabled := config.GCP.Metrics != nil && config.GCP.Metrics.Enabled+ return logsEnabled || metricsEnableddefault:return false}@@ -319,6 +349,8 @@ func (config *ServiceConfig) IsMetricsEnabled(provider CloudProviderType) bool {return config.AWS.Metrics != nil && config.AWS.Metrics.Enabledcase CloudProviderTypeAzure:return config.Azure.Metrics != nil && config.Azure.Metrics.Enabled+ case CloudProviderTypeGCP:+ return config.GCP.Metrics != nil && config.GCP.Metrics.Enableddefault:return false}@@ -331,6 +363,8 @@ func (config *ServiceConfig) IsLogsEnabled(provider CloudProviderType) bool {return config.AWS.Logs != nil && config.AWS.Logs.Enabledcase CloudProviderTypeAzure:return config.Azure.Logs != nil && config.Azure.Logs.Enabled+ case CloudProviderTypeGCP:+ return config.GCP.Logs != nil && config.GCP.Logs.Enableddefault:return false}diff --git a/pkg/types/cloudintegrationtypes/serviceid.go b/pkg/types/cloudintegrationtypes/serviceid.goindex d9fbc94bf7..d790bc7f76 100644--- a/pkg/types/cloudintegrationtypes/serviceid.go+++ b/pkg/types/cloudintegrationtypes/serviceid.go@@ -39,6 +39,9 @@ var (AzureServiceCosmosDB = ServiceID{valuer.NewString("cosmosdb")}AzureServiceCassandraDB = ServiceID{valuer.NewString("cassandradb")}AzureServiceRedis = ServiceID{valuer.NewString("redis")}++ // GCP services.+ GCPServiceCloudSQL = ServiceID{valuer.NewString("cloudsql")})func (ServiceID) Enum() []any {@@ -70,6 +73,7 @@ func (ServiceID) Enum() []any {AzureServiceCosmosDB,AzureServiceCassandraDB,AzureServiceRedis,+ GCPServiceCloudSQL,}}@@ -106,6 +110,9 @@ var SupportedServices = map[CloudProviderType][]ServiceID{AzureServiceCassandraDB,AzureServiceRedis,},+ CloudProviderTypeGCP: {+ GCPServiceCloudSQL,+ },}func NewServiceID(provider CloudProviderType, service string) (ServiceID, error) {diff --git a/tests/integration/tests/cloudintegrations/01_credentials.py b/tests/integration/tests/cloudintegrations/01_credentials.pyindex 41a9d46633..45be288087 100644--- a/tests/integration/tests/cloudintegrations/01_credentials.py+++ b/tests/integration/tests/cloudintegrations/01_credentials.py@@ -143,7 +143,7 @@ def test_get_credentials_unsupported_provider(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(- signoz.self.host_configs["8080"].get("/api/v1/cloud_integrations/gcp/credentials"),+ signoz.self.host_configs["8080"].get("/api/v1/cloud_integrations/unknown/credentials"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)diff --git a/tests/integration/tests/cloudintegrations/02_create_account.py b/tests/integration/tests/cloudintegrations/02_create_account.pyindex 2bf88c12a8..97c01ddd5d 100644--- a/tests/integration/tests/cloudintegrations/02_create_account.py+++ b/tests/integration/tests/cloudintegrations/02_create_account.py@@ -56,14 +56,14 @@ def test_create_account_unsupported_provider() -> None:"""Test that creating an account with an unsupported cloud provider returns 400."""admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)- cloud_provider = "gcp"+ cloud_provider = "unknown"endpoint = f"/api/v1/cloud_integrations/{cloud_provider}/accounts"response = requests.post(signoz.self.host_configs["8080"].get(endpoint),headers={"Authorization": f"Bearer {admin_token}"},json={- "config": {"gcp": {"deploymentRegion": "us-central1", "regions": ["us-central1"]}},+ "config": {"unknown": {"deploymentRegion": "us-central1", "regions": ["us-central1"]}},"credentials": {"sigNozApiURL": "https://test.signoz.cloud","sigNozApiKey": "test-key",diff --git a/tests/integration/tests/cloudintegrations/05_services.py b/tests/integration/tests/cloudintegrations/05_services.pyindex b43e568803..cd6962afeb 100644--- a/tests/integration/tests/cloudintegrations/05_services.py+++ b/tests/integration/tests/cloudintegrations/05_services.py@@ -341,7 +341,7 @@ def test_list_services_unsupported_provider(admin_token = get_token(USER_ADMIN_EMAIL, USER_ADMIN_PASSWORD)response = requests.get(- signoz.self.host_configs["8080"].get("/api/v1/cloud_integrations/gcp/services"),+ signoz.self.host_configs["8080"].get("/api/v1/cloud_integrations/unknown/services"),headers={"Authorization": f"Bearer {admin_token}"},timeout=10,)