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 compute engine service in GCP integration (#12166)
Swapnil Nakade0703fbf96131
diff --git a/docs/api/openapi.yml b/docs/api/openapi.ymlindex 85b2aa57f0..4db6e44c11 100644--- a/docs/api/openapi.yml+++ b/docs/api/openapi.yml@@ -1496,6 +1496,7 @@ components:- redis- cloudsql_postgres- memorystore_redis+ - computeenginetype: stringCloudintegrationtypesServiceMetadata:properties:diff --git a/frontend/src/api/generated/services/sigNoz.schemas.ts b/frontend/src/api/generated/services/sigNoz.schemas.tsindex 929cb6d7a1..c93389e680 100644--- a/frontend/src/api/generated/services/sigNoz.schemas.ts+++ b/frontend/src/api/generated/services/sigNoz.schemas.ts@@ -2815,6 +2815,7 @@ export enum CloudintegrationtypesServiceIDDTO {redis = 'redis',cloudsql_postgres = 'cloudsql_postgres',memorystore_redis = 'memorystore_redis',+ computeengine = 'computeengine',}export type CloudintegrationtypesCloudIntegrationServiceDTOAnyOf = {/**diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/computeengine/assets/dashboards/overview.json b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/computeengine/assets/dashboards/overview.jsonnew file mode 100644index 0000000000..5b78da5e77--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/computeengine/assets/dashboards/overview.json@@ -0,0 +1,1657 @@+{+ "schemaVersion": "v6",+ "image": "/assets/Logos/gcp-compute-engine",+ "name": "",+ "generateName": true,+ "tags": [+ {+ "key": "tag",+ "value": "observability"+ }+ ],+ "spec": {+ "display": {+ "name": "GCP Compute Engine Overview",+ "description": "Dashboard for GCP Compute Engine overview"+ },+ "variables": [+ {+ "kind": "ListVariable",+ "spec": {+ "display": {+ "name": "project_id",+ "description": "GCP Project ID"+ },+ "allowAllValue": false,+ "allowMultiple": false,+ "customAllValue": "",+ "capturingRegexp": "",+ "sort": "none",+ "plugin": {+ "kind": "signoz/DynamicVariable",+ "spec": {+ "name": "project_id",+ "signal": "metrics"+ }+ },+ "name": "project_id"+ }+ },+ {+ "kind": "ListVariable",+ "spec": {+ "display": {+ "name": "instance_id",+ "description": "Compute Engine Instance ID"+ },+ "allowAllValue": true,+ "allowMultiple": true,+ "customAllValue": "",+ "capturingRegexp": "",+ "sort": "none",+ "plugin": {+ "kind": "signoz/DynamicVariable",+ "spec": {+ "name": "instance_id",+ "signal": "metrics"+ }+ },+ "name": "instance_id"+ }+ }+ ],+ "panels": {+ "113668c5-fb85-4eab-9b31-1cae4ff06127": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "% Memory Utilization via Ops Agent",+ "description": "Percentage of total system memory actively in use. Collected by Ops Agent."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "%",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "agent.googleapis.com/memory/percent_used",+ "temporality": "",+ "timeAggregation": "max",+ "spaceAggregation": "max",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance' AND state = 'used'"+ },+ "groupBy": [+ {+ "name": "instance_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_id}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "1d9e2225-799c-4c10-9866-651a0c7aa28b": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "% CPU Utilization",+ "description": "Current CPU utilization represented as a percentage of the reserved CPU that is currently in use.\nIt can shoot up above 100% for certain workloads"+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "%",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "plugin": {+ "kind": "signoz/CompositeQuery",+ "spec": {+ "queries": [+ {+ "type": "builder_query",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/instance/cpu/utilization",+ "temporality": "",+ "timeAggregation": "max",+ "spaceAggregation": "max",+ "reduceTo": "avg"+ }+ ],+ "disabled": true,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance' "+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": ""+ }+ },+ {+ "type": "builder_formula",+ "spec": {+ "name": "F1",+ "expression": "100*A",+ "disabled": false,+ "having": {+ "expression": ""+ },+ "legend": "{{instance_name}}"+ }+ }+ ]+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "1ee5e2e3-847b-49aa-a8aa-aa098d959468": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Memory Used in Bytes",+ "description": "Memory usage by each memory state, in Bytes. Applied to only Container-Optimised OS."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "By",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/guest/memory/bytes_used",+ "temporality": "",+ "timeAggregation": "max",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ },+ {+ "name": "state",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_name}}/{{state}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "4361db71-32d0-4b23-9e7a-6372a1a0c0be": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "% Memory Utilization",+ "description": "Percentage of total system memory actively in use."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "%",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/guest/memory/percent_used",+ "temporality": "",+ "timeAggregation": "max",+ "spaceAggregation": "max",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance' "+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_name}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "48229d1e-52f9-49b7-9f15-b3fe17341540": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Disk Read IOPS",+ "description": "Read operations rate"+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/instance/disk/read_ops_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_name}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "4b5bfcca-f9d4-4118-996d-0a2deed0a02c": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Disk Read Throughput",+ "description": "Rate of disk data being read"+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "By/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/instance/disk/read_bytes_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_name}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "503a1db2-69af-413f-8f5b-6e0c4eb7763a": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Dropped packets",+ "description": "Count of incoming packets dropped by the firewall."+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/firewall/dropped_packets_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "",+ "fieldDataType": ""+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_name}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "89c9a054-a281-485c-8b17-46590ac9804e": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Received traffic",+ "description": "Received network traffic throughput (rate)"+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "By/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/instance/network/received_bytes_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "",+ "fieldDataType": ""+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_name}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "adfe59ed-f188-4efd-b22a-b021577ca97c": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Sent traffic",+ "description": "Sent network traffic throughput (rate)"+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "By/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/instance/network/sent_bytes_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "",+ "fieldDataType": ""+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_name}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "b8b4b938-1995-4927-a286-d8cba19ef81f": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "[us] Disk average latency",+ "description": "Disk's average io latency"+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "us",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/instance/disk/average_io_latency",+ "temporality": "",+ "timeAggregation": "avg",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ },+ {+ "name": "device_name",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_id}}/{{device_name}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "c06ce3ad-67f8-4e69-a8cd-44120416db42": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Disk Write IOPS",+ "description": "Write operations rate"+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/instance/disk/write_ops_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_name}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "c8aad8b0-09fe-4e94-8af2-ed13c145f006": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Disk performance status",+ "description": "Whether the disk performance is normal or could potentially be impacted by an issue within Compute Engine. One of [\"Healthy\", \"Degraded\" or \"Severely Degraded\"]."+ },+ "plugin": {+ "kind": "signoz/TablePanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time"+ },+ "formatting": {+ "columnUnits": {+ "A": ""+ },+ "decimalPrecision": "2"+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "scalar",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/instance/disk/performance_status",+ "temporality": "",+ "timeAggregation": "avg",+ "spaceAggregation": "avg",+ "reduceTo": "last"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_id",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ },+ {+ "name": "performance_status",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ },+ {+ "name": "storage_type",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "value"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "cd2d5ebb-d1ec-4d61-89a2-82e99aa2583d": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Disk Write Throughput",+ "description": "Disk writes rate"+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "By/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/instance/disk/write_bytes_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_name}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "d4fc8b10-aac3-437a-91d6-2f19ba4d6681": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Sent packets",+ "description": "Rate at which network packets are sent out"+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/instance/network/sent_packets_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "",+ "fieldDataType": ""+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_name}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "e90a9573-b523-4fd2-9b12-36915679a8bd": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Received packets",+ "description": "Rate at which network packets are received"+ },+ "plugin": {+ "kind": "signoz/TimeSeriesPanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time",+ "fillSpans": false+ },+ "formatting": {+ "unit": "{count}/s",+ "decimalPrecision": "2"+ },+ "chartAppearance": {+ "lineInterpolation": "spline",+ "showPoints": false,+ "lineStyle": "solid",+ "fillMode": "none",+ "spanGaps": {+ "fillOnlyBelow": false,+ "fillLessThan": ""+ }+ },+ "axes": {+ "softMin": 0,+ "softMax": 0,+ "isLogScale": false+ },+ "legend": {+ "position": "right",+ "mode": "list",+ "customColors": null+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "time_series",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/instance/network/received_packets_count",+ "temporality": "",+ "timeAggregation": "rate",+ "spaceAggregation": "sum",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "",+ "fieldDataType": ""+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "{{instance_name}}"+ }+ }+ }+ }+ ],+ "links": []+ }+ },+ "ef53af26-93af-40e7-8588-65a17100f9a9": {+ "kind": "Panel",+ "spec": {+ "display": {+ "name": "Uptime total",+ "description": "Elapsed time since the VM was started, in seconds."+ },+ "plugin": {+ "kind": "signoz/TablePanel",+ "spec": {+ "visualization": {+ "timePreference": "global_time"+ },+ "formatting": {+ "columnUnits": {+ "A": "s"+ },+ "decimalPrecision": "2"+ },+ "thresholds": null+ }+ },+ "queries": [+ {+ "kind": "scalar",+ "spec": {+ "name": "A",+ "plugin": {+ "kind": "signoz/BuilderQuery",+ "spec": {+ "name": "A",+ "signal": "metrics",+ "source": "",+ "aggregations": [+ {+ "metricName": "compute.googleapis.com/instance/uptime_total",+ "temporality": "",+ "timeAggregation": "avg",+ "spaceAggregation": "avg",+ "reduceTo": "avg"+ }+ ],+ "disabled": false,+ "filter": {+ "expression": "project_id = $project_id AND instance_id in $instance_id AND gcp.resource_type = 'gce_instance'"+ },+ "groupBy": [+ {+ "name": "instance_name",+ "signal": "",+ "fieldContext": "attribute",+ "fieldDataType": "string"+ }+ ],+ "order": [],+ "having": {+ "expression": ""+ },+ "functions": [],+ "legend": "Age"+ }+ }+ }+ }+ ],+ "links": []+ }+ }+ },+ "layouts": [+ {+ "kind": "Grid",+ "spec": {+ "items": [+ {+ "x": 0,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/ef53af26-93af-40e7-8588-65a17100f9a9"+ }+ }+ ]+ }+ },+ {+ "kind": "Grid",+ "spec": {+ "display": {+ "title": "CPU & Memory",+ "collapse": {+ "open": true+ }+ },+ "items": [+ {+ "x": 0,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/1d9e2225-799c-4c10-9866-651a0c7aa28b"+ }+ },+ {+ "x": 6,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/4361db71-32d0-4b23-9e7a-6372a1a0c0be"+ }+ },+ {+ "x": 0,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/113668c5-fb85-4eab-9b31-1cae4ff06127"+ }+ },+ {+ "x": 6,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/1ee5e2e3-847b-49aa-a8aa-aa098d959468"+ }+ }+ ]+ }+ },+ {+ "kind": "Grid",+ "spec": {+ "display": {+ "title": "Disk",+ "collapse": {+ "open": true+ }+ },+ "items": [+ {+ "x": 0,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/b8b4b938-1995-4927-a286-d8cba19ef81f"+ }+ },+ {+ "x": 6,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/c8aad8b0-09fe-4e94-8af2-ed13c145f006"+ }+ },+ {+ "x": 0,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/4b5bfcca-f9d4-4118-996d-0a2deed0a02c"+ }+ },+ {+ "x": 6,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/cd2d5ebb-d1ec-4d61-89a2-82e99aa2583d"+ }+ },+ {+ "x": 0,+ "y": 12,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/48229d1e-52f9-49b7-9f15-b3fe17341540"+ }+ },+ {+ "x": 6,+ "y": 12,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/c06ce3ad-67f8-4e69-a8cd-44120416db42"+ }+ }+ ]+ }+ },+ {+ "kind": "Grid",+ "spec": {+ "display": {+ "title": "Network",+ "collapse": {+ "open": true+ }+ },+ "items": [+ {+ "x": 0,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/89c9a054-a281-485c-8b17-46590ac9804e"+ }+ },+ {+ "x": 6,+ "y": 0,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/adfe59ed-f188-4efd-b22a-b021577ca97c"+ }+ },+ {+ "x": 0,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/e90a9573-b523-4fd2-9b12-36915679a8bd"+ }+ },+ {+ "x": 6,+ "y": 6,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/d4fc8b10-aac3-437a-91d6-2f19ba4d6681"+ }+ },+ {+ "x": 0,+ "y": 12,+ "width": 6,+ "height": 6,+ "content": {+ "$ref": "#/spec/panels/503a1db2-69af-413f-8f5b-6e0c4eb7763a"+ }+ }+ ]+ }+ }+ ],+ "duration": "",+ "refreshInterval": "",+ "links": []+ }+}diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/computeengine/icon.svg b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/computeengine/icon.svgnew file mode 100644index 0000000000..811860c5c7--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/computeengine/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-2{fill:#669df6;}.cls-3{fill:#4285f4;}</style></defs><title>Icon_24px_ComputeEngine_Color</title><g data-name="Product Icons"><rect class="cls-1" x="9" y="9" width="6" height="6"/><rect class="cls-2" x="11" y="2" width="2" height="4"/><rect class="cls-2" x="7" y="2" width="2" height="4"/><rect class="cls-2" x="15" y="2" width="2" height="4"/><rect class="cls-3" x="11" y="18" width="2" height="4"/><rect class="cls-3" x="7" y="18" width="2" height="4"/><rect class="cls-3" x="15" y="18" width="2" height="4"/><rect class="cls-3" x="19" y="10" width="2" height="4" transform="translate(8 32) rotate(-90)"/><rect class="cls-3" x="19" y="14" width="2" height="4" transform="translate(4 36) rotate(-90)"/><rect class="cls-3" x="19" y="6" width="2" height="4" transform="translate(12 28) rotate(-90)"/><rect class="cls-2" x="3" y="10" width="2" height="4" transform="translate(-8 16) rotate(-90)"/><rect class="cls-2" x="3" y="14" width="2" height="4" transform="translate(-12 20) rotate(-90)"/><rect class="cls-2" x="3" y="6" width="2" height="4" transform="translate(-4 12) rotate(-90)"/><path class="cls-1" d="M5,5V19H19V5ZM17,17H7V7H17Z"/><polygon class="cls-2" points="9 15 15 15 12 12 9 15"/><polygon class="cls-3" points="12 12 15 15 15 9 12 12"/></g></svg>\ No newline at end of filediff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/computeengine/integration.json b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/computeengine/integration.jsonnew file mode 100644index 0000000000..f4d134340e--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/computeengine/integration.json@@ -0,0 +1,124 @@+{+ "id": "computeengine",+ "title": "GCP Compute Engine",+ "icon": "file://icon.svg",+ "overview": "file://overview.md",+ "supportedSignals": {+ "metrics": true,+ "logs": true+ },+ "dataCollected": {+ "metrics": [+ {+ "name": "compute.googleapis.com/instance/uptime_total",+ "unit": "Seconds",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/instance/cpu/utilization",+ "unit": "Percent",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/guest/memory/bytes_used",+ "unit": "Bytes",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/guest/memory/percent_used",+ "unit": "Percent",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "agent.googleapis.com/memory/percent_used",+ "unit": "Percent",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/instance/disk/average_io_latency",+ "unit": "Microseconds",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/instance/disk/read_bytes_count",+ "unit": "Bytes",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/instance/disk/write_bytes_count",+ "unit": "Bytes",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/instance/disk/read_ops_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/instance/disk/write_ops_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/instance/disk/performance_status",+ "unit": "None",+ "type": "Gauge",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/instance/network/received_bytes_count",+ "unit": "Bytes",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/instance/network/sent_bytes_count",+ "unit": "Bytes",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/instance/network/received_packets_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/instance/network/sent_packets_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ },+ {+ "name": "compute.googleapis.com/firewall/dropped_packets_count",+ "unit": "Count",+ "type": "Sum",+ "description": ""+ }+ ],+ "logs": []+ },+ "telemetryCollectionStrategy": {+ "gcp": {}+ },+ "assets": {+ "dashboards": [+ {+ "id": "overview",+ "title": "GCP Compute Engine Overview",+ "description": "Overview of GCP Compute Engine metrics",+ "definition": "file://assets/dashboards/overview.json"+ }+ ]+ }+}diff --git a/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/computeengine/overview.md b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/computeengine/overview.mdnew file mode 100644index 0000000000..a694cc9d86--- /dev/null+++ b/pkg/modules/cloudintegration/implcloudintegration/fs/definitions/gcp/computeengine/overview.md@@ -0,0 +1,3 @@+### Monitor GCP Compute Engine with SigNoz++Collect key GCP Compute Engine metrics and view them with an out of the box dashboard.diff --git a/pkg/types/cloudintegrationtypes/serviceid.go b/pkg/types/cloudintegrationtypes/serviceid.goindex 998d125868..33d36e0548 100644--- a/pkg/types/cloudintegrationtypes/serviceid.go+++ b/pkg/types/cloudintegrationtypes/serviceid.go@@ -43,6 +43,7 @@ var (// GCP services.GCPServiceCloudSQLPostgres = ServiceID{valuer.NewString("cloudsql_postgres")}GCPServiceMemorystoreRedis = ServiceID{valuer.NewString("memorystore_redis")}+ GCPServiceComputeEngine = ServiceID{valuer.NewString("computeengine")})func (ServiceID) Enum() []any {@@ -76,6 +77,7 @@ func (ServiceID) Enum() []any {AzureServiceRedis,GCPServiceCloudSQLPostgres,GCPServiceMemorystoreRedis,+ GCPServiceComputeEngine,}}@@ -115,6 +117,7 @@ var SupportedServices = map[CloudProviderType][]ServiceID{CloudProviderTypeGCP: {GCPServiceCloudSQLPostgres,GCPServiceMemorystoreRedis,+ GCPServiceComputeEngine,},}