Cloud Cost Optimization and Performance Monitoring using Prisma Cloud

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
L4 Transporter
100% helpful (3/3)

By Raqeeb Iliyas, Cloud Security Engineer


Introduction:


Effective cloud cost management is crucial for organizations seeking to optimize spending while maintaining high performance. This article explores how Prisma Cloud customers can leverage custom RQLs to proactively identify and manage cloud cost optimization and performance improvements.

 

By integrating these custom policies into a Cost Optimization Compliance Standard, organizations can seamlessly detect non-compliant resources, trigger alerts, and streamline policy violations. This approach empowers cloud teams to address inefficiencies promptly, collaborate with compliance teams, and drive effective remediation. The following sections outline key strategies and technical benefits that underpin this cost optimization framework.

 

The workflow involves three simple steps:

 

Step 1: Create a Custom Compliance Standard and name it Cost Optimization. Then, click on the compliance standard and add the compliance requirement and compliance section. Once you complete creating custom policies as described in Step 2, map this compliance standard with the cost optimization policies.

 

image3.png

Figure 1:  Custom_Compliance_PaloAltoNetworks

 

Step 2: Create Custom RQLs as defined in the technical summary section to monitor each resource specifically—for example, EC2 instances, Load Balancers, EBS volumes, etc. Prisma Cloud monitors cloud resources for any violations against all the policies mapped to the Cost Optimization Compliance Standard.

 

image1.png

Figure 2:  Custom_Policy_PaloAltoNetworks

 

Once created, combine the custom policies into a compliance standard.

As seen in the image below, there are seven custom policies created for monitoring cost optimization, all grouped under the compliance standard Cost Optimization.

 

image5.png

Figure 3:  Alerts_tab_PaloAltoNetworks

 

Step 3: Create Alert Rules specific to the compliance standard, as shown in the screenshot below, to separate cost optimization alerts for remediation accordingly.

image2.png

Figure 4:  Alert_Rules_PaloAltoNetworks


Once the alert rule is created, navigate to the 
Alerts Overview section and verify that alerts have been triggered for the custom policies. Simply add the Cost Optimization filter, and it should display the triggered alerts.

 

image4.png

Figure 5:  Alerts_Tab_PaloAltoNetworks

 

This approach to cost optimization workflows is underpinned by the following key strategies and technical benefits:

 

Resource Efficiency: Identify unused or underutilized cloud resources, such as unattached Elastic IPs, dormant EC2 instances, and detached EBS volumes. By targeting these inefficiencies, they eliminate unnecessary costs while maintaining optimal operational performance.

 

Enhanced Security and Compliance: By integrating Prisma Cloud’s monitoring capabilities, customers can ensure that their cloud workloads meet both organizational policies and industry best practices. This reduces the attack surface by addressing security risks associated with unused or misconfigured resources, such as unpatched instances or exposed IPs.

 

Improved Workload Performance: Legacy resources, such as older EC2 instance types and outdated storage configurations, are upgraded to modern, cost-efficient alternatives. This results in optimized workloads that leverage advanced infrastructure features, reducing operational latency, and ensuring scalability.

 

Comprehensive Cost Visibility: Prisma Cloud provides detailed insights into cost trends and non-compliance issues across Prisma Cloud customers' cloud estates. These insights allow teams to prioritize remediation efforts, ensuring a continuous cycle of optimization and compliance improvement.

 

Streamlined Remediation Workflows: By automating alerts for policy violations and integrating them into compliance workflows, Prisma Cloud customers minimize the time to resolution for identified issues. This leads to quicker cost recovery and improved governance across cloud environments.

 

The combination of these strategies with Prisma Cloud’s advanced capabilities has enabled Prisma Cloud customers to achieve a dual benefit: substantial cost savings and enhanced workload performance. This translates to improved business outcomes and an optimized cloud environment, setting a benchmark for IT management excellence.

Technical Summary of Each Use Case

 List of Use Cases

 

  1. AWS Unused IP Addresses
  2. AWS EBS Volumes - GP2 to GP3 Migration
  3. AWS EC2 Instances in Sandbox Accounts
  4. AWS EBS Volumes - Detached Volumes
  5. AWS EBS Volumes - IO1
  6. AWS Detached Load Balancers
  7. Identifying Legacy EC2 Instances (C3 and C4) for Upgrades

 

Use Case 1: AWS Unused IP Addresses

 

  • RQL Definition:

config from cloud.resource where api.name = 'aws-ec2-elastic address' AND (json.rule = instanceId does not exist AND json.rule = associationId does not exist)

  • Purpose: Identify and remove unused Elastic IPs to reduce costs and security risks.
  • Advantages:
    • Cost reduction: Avoid $0.005/hour(per IP) charges for unused IPs.
    • Enhanced security: Minimize attack surface by removing unused public IPs.

 

Use Case 2: AWS EBS Volumes - GP2 to GP3 Migration

 

  • RQL Definition:

config from cloud.resource where api.name = 'aws-ec2-describe-volumes' and json.rule = volumeType equals "gp2"

  • Purpose: Migrate from gp2 to gp3 volumes for cost and performance benefits.
  • Advantages:
    • Cost savings: Save ~20% on storage costs.
    • Performance: Achieve scalable IOPS without increasing volume size.

 

Use Case 3: AWS EC2 Instances in Sandbox Accounts

 

  • RQL Definition:

config from cloud.resource where api.name = 'aws-ec2-describe-instances' AND json.rule = '$.tags[*].key does not equal aws:eks:cluster-name and $.state.name equals running and $.networkInterfaces[0].ownerId is member of (AWS_Sandbox_account_Ids) and _DateTime.ageInDays($.launchTime) > 7'

  • Purpose: Ensure EC2 instances in sandbox accounts do not run beyond 7 days.
  • Advantages:
    • Cost optimization:Eliminate unnecessary charges.
    • Security improvement:Mitigate risks from overlooked resources.

 

Use Case 4: AWS EBS Volumes - Detached Volumes

 

  • RQL Definition:

config from cloud.resource where api.name = 'aws-ec2-describe-volumes' and json.rule = attachments is empty

  • Purpose: Identify and delete detached EBS volumes to save costs and improve security.
  • Advantages:
    • Cost savings: Avoid charges for unused storage.
    • Security: Prevent potential data exposure from detached volumes.

 

Use Case 5: AWS EBS Volumes - IO1

 

  • RQL Definition:

config from cloud.resource where api.name = 'aws-ec2-describe-volumes' and json.rule = volumeType equals "io1"

  • Purpose: Monitor and upgrade IO1 volumes to IO2 for enhanced durability.
  • Advantages:
    • Performance: Ensure durability and performance for critical workloads.
    • Alignment with best practices: Use advanced storage options.

 

Use Case 6: AWS Detached Load Balancers

 

  • RQL Definition:

config from cloud.resource where api.name = 'aws-elb-describe-load-balancers' and json.rule = instancesAttached is false

  • Purpose: Identify unused load balancers to reduce unnecessary expenses.
  • Advantages:
    • Cost savings: Avoid hourly charges for idle ELBs.
    • Resource optimization: Streamline cloud governance.

 

Use Case 7: Identifying Legacy EC2 Instances (C3 and C4) for Upgrades

 

  • RQL Definition:

config from cloud.resource where cloud.service = 'Amazon EC2' AND api.name = 'aws-ec2-describe-instances' AND json.rule = instanceType starts with "c3" or instanceType starts with "c4" addcolumn instanceType

  • Purpose: Flag older instance types for migration to modern, cost-efficient alternatives.
  • Advantages:
    • Cost efficiency: Up to 40%-60% savings with Graviton-based instances.
    • Improved performance: Leverage advanced architecture for demanding workloads.

 

Conclusion and Summary


As you can see in the screenshot, multiple assets have been identified, and if remediated appropriately, these resources could lead to cost savings along with performance enhancements.

image6.png

Figure 6:  Compliance_Tab_PaloAltoNetworks

 

Prisma Cloud not only strengthens security but also plays a pivotal role in optimizing cloud costs and enhancing operational performance. By leveraging custom RQLs, organizations have achieved significant savings, improved resource utilization, and reinforced their cloud security posture. Continuous monitoring and proactive remediation ensure alignment with best practices, enabling a scalable and high-performance cloud environment.

 

Additionally, Prisma Cloud has been instrumental in identifying inefficiencies within AWS infrastructures, helping organizations refine their Cloud Cost Optimization (CCO) strategies. By addressing wasteful practices, outdated services, and underutilized resources, Prisma Cloud empowers customers to drive sustainable cost savings while maintaining operational excellence.


References


RQL Operators
RQL Examples Library
Prisma Cloud Compliance

 

About the Author

 

Raqeeb Iliyas is a cybersecurity engineer specializing in cloud operations, performance monitoring, and compliance. With expertise in Prisma Cloud, he helps organizations optimize cloud costs, enhance security, and ensure regulatory compliance.

 

 

 

Rate this article:
(1)
  • 747 Views
  • 0 comments
  • 2 Likes
Register or Sign-in
Contributors
Labels
Article Dashboard
Version history
Last Updated:
‎02-10-2025 05:50 PM
Updated by: