### PostgreSQL Connection String Example Source: https://docs.cloudthinker.io/guide/connections/postgresql An example of a PostgreSQL connection string with specific credentials and host information. ```text postgresql://cloudthinker_readonly:mypassword123@db.example.com:5432/production ``` -------------------------------- ### Tony Agent Example: Database Source: https://docs.cloudthinker.io/guide/knowledge Example of how the Tony agent uses the `#kb` command for PostgreSQL performance tuning, referencing database optimization guides. ```text @tony #kb PostgreSQL performance tuning → References database optimization guide → Suggests specific improvements ``` -------------------------------- ### Example Shortcut Configurations Source: https://docs.cloudthinker.io/guide/use-cases/multi-aws-accounts Table showing example shortcut names and their corresponding initialization steps for assuming specific IAM roles in different AWS accounts. ```text | Shortcut Name | Init Step | | -------------------- | -------------------------------------------------------------------------------------------------------------------------- | | /switch-to-prod | Please assume the Role ARN `arn:aws:iam::111111111111:role/CloudThinkerAccessRole` and use the STS token for this session. | | /switch-to-dev | Please assume the Role ARN `arn:aws:iam::222222222222:role/CloudThinkerAccessRole` and use the STS token for this session. | | /switch-to-staging | Please assume the Role ARN `arn:aws:iam::333333333333:role/CloudThinkerAccessRole` and use the STS token for this session. | ``` -------------------------------- ### Prompt Pattern 3: Optimization Request Examples Source: https://docs.cloudthinker.io/guide/language Examples of using the '@agent optimize/recommend' pattern to request optimizations and recommendations. ```bash @alex recommend cost optimizations maintaining 99.9% availability @tony recommend index changes for queries >500ms execution time @kai optimize pod resource requests based on actual utilization ``` -------------------------------- ### Test Slack Integration Source: https://docs.cloudthinker.io/guide/slack-integration After setup, test the integration by invoking an agent in a Slack channel. This example shows how to ask for AWS costs. ```bash `@CloudThinker alex show AWS costs` ``` -------------------------------- ### Progressive Refinement: Step-by-Step Analysis Source: https://docs.cloudthinker.io/guide/language Illustrates a multi-step approach to cloud analysis, starting broad and drilling down. ```bash # Step 1: Broad overview @alex #dashboard cloud spending trends # Step 2: Identify problem area @alex which services drove the November cost spike? # Step 3: Deep dive @alex break down RDS costs by instance type and utilization # Step 4: Actionable recommendation @alex #recommend RDS optimization prioritizing underutilized instances ``` -------------------------------- ### Prompt Pattern 5: Coordination Request Examples Source: https://docs.cloudthinker.io/guide/language Examples of using the '@agent coordinate' pattern for project and task coordination. ```bash @anna coordinate AWS to GCP migration with @alex @tony @kai @anna coordinate security remediation with @oliver leading, @alex @kai supporting @anna coordinate quarterly review: @alex cost, @oliver security, @tony databases, @kai containers ``` -------------------------------- ### Example Agent Instructions Source: https://docs.cloudthinker.io/guide/configuration Define custom behavior for an agent by specifying role context, scope limits, and operational guidelines. This example sets up an agent for a Cloud Engineer role with specific environment details and operational rules. ```text You are Alex, the Cloud Engineer for Acme Corp. Environment: - Primary cloud: AWS (us-east-1, us-west-2) - Secondary cloud: GCP (for ML workloads) - Cost target: Reduce by 20% this quarter Guidelines: - Always check with @oliver before recommending security group changes - Prioritize production stability over cost savings - Flag any resource costing >$1000/month for review ``` -------------------------------- ### Example Prompts for MongoDB Agent Source: https://docs.cloudthinker.io/guide/connections/mongodb Use these prompts to interact with the Tony agent for MongoDB analysis and optimization tasks. ```bash @tony analyze slow queries on production MongoDB ``` ```bash @tony recommend index optimizations for the users collection ``` ```bash @tony check replication lag on the secondary nodes ``` -------------------------------- ### Prompt Pattern 1: Analysis Request Examples Source: https://docs.cloudthinker.io/guide/language Examples of using the '@agent analyze' pattern to request analysis of cloud resources. ```bash @alex analyze EC2 spending by instance family over last quarter @tony analyze query patterns on production PostgreSQL cluster @kai analyze pod scheduling efficiency across all nodes @oliver analyze IAM permission usage for service accounts ``` -------------------------------- ### Example ArgoCD Prompts for Kai Agent Source: https://docs.cloudthinker.io/guide/connections/argocd Examples of prompts to interact with ArgoCD using the Kai agent. These demonstrate how to query application status, analyze deployments, and trigger sync operations. ```bash @kai show me all out-of-sync applications in ArgoCD ``` ```bash @kai analyze deployment failures for the payment service ``` ```bash @kai sync the frontend application to latest commit ``` ```bash @kai check health status of all apps in production ``` ```bash @kai list applications with degraded health ``` -------------------------------- ### Comparative Analysis: Comparing Cloud Options Source: https://docs.cloudthinker.io/guide/language Examples of requesting comparative analysis between different cloud services or strategies. ```bash @alex compare reserved instances vs savings plans for our EC2 usage pattern @tony compare these approaches for database scaling: 1. Read replicas 2. Sharding by customer_id 3. Migration to Aurora Serverless Include: cost, complexity, performance impact @oliver compare SOC 2 vs ISO 27001 based on our customer requirements ``` -------------------------------- ### Combined Context Example Source: https://docs.cloudthinker.io/guide/language Demonstrates how to combine analysis and audit requests with specific conditions and exclusions. ```bash @alex analyze EC2 instances in us-east-1 with CPU <20% over last 30 days excluding production-critical #recommend right-sizing with projected savings @oliver audit security groups in production for public access on ports 22, 3389, 3306 #report with remediation timeline prioritizing internet-facing resources ``` -------------------------------- ### Install ArgoCD CLI Source: https://docs.cloudthinker.io/guide/connections/argocd Install the ArgoCD command-line interface using Homebrew. This is a prerequisite for managing ArgoCD instances. ```bash brew install argocd ``` -------------------------------- ### Example Prompts for Tony Agent Source: https://docs.cloudthinker.io/guide/connections/redis Use these prompts to have the Tony agent analyze your Redis instance. Ensure Tony is connected to your Redis instance first. ```bash @tony analyze hot keys on production Redis ``` ```bash @tony check memory fragmentation and eviction stats ``` ```bash @tony review replication lag on the Redis replica ``` -------------------------------- ### Example Prompts for Tony Agent Source: https://docs.cloudthinker.io/guide/connections/mysql Sample prompts to interact with the Tony agent for various database-related tasks on a connected MySQL instance. ```bash @tony analyze slow queries on production MySQL ``` ```bash @tony #dashboard database performance metrics ``` ```bash @tony recommend index optimizations for high-frequency queries ``` ```bash @tony check replication status on the read replica ``` -------------------------------- ### Example Prompts for Tony Agent Source: https://docs.cloudthinker.io/guide/connections/postgresql Use these prompts to interact with the Tony agent for PostgreSQL analysis and monitoring. Ensure the agent is connected to your database. ```bash @tony analyze slow queries on production PostgreSQL ``` ```bash @tony #dashboard database performance metrics ``` ```bash @tony recommend index optimizations for the orders table ``` ```bash @tony check replication lag on the read replica ``` -------------------------------- ### Install Akuity CLI Source: https://docs.cloudthinker.io/guide/connections/argocd Download and install the Akuity CLI. This tool is required for interacting with the Akuity Platform's managed ArgoCD service. ```bash curl -sSL -o /tmp/akuity \ "https://dl.akuity.io/akuity-cli/$(curl -sL https://dl.akuity.io/akuity-cli/stable.txt)/$(uname)/$(uname -m)/akuity" chmod +x /tmp/akuity sudo mv /tmp/akuity /usr/local/bin/akuity ``` -------------------------------- ### Example Jenkins Prompts for CloudThinker Agent Source: https://docs.cloudthinker.io/guide/connections/jenkins These example prompts demonstrate how to interact with a connected Jenkins instance using a CloudThinker agent. They cover common tasks like listing jobs, checking test results, searching logs, and monitoring build queues. ```bash @alex list all Jenkins jobs and their last build status ``` ```bash @alex show test results for recent builds ``` ```bash @alex search build logs for errors ``` ```bash @alex check queue status and identify stuck builds ``` -------------------------------- ### Connect to MySQL as Root User Source: https://docs.cloudthinker.io/guide/connections/mysql Connect to your MySQL instance using the root or an administrative user to begin the setup process. ```bash mysql -h your-host -u root -p ``` -------------------------------- ### Get Actionable Recommendations with #recommend Source: https://docs.cloudthinker.io/guide/capabilities Employ the #recommend capability to obtain prioritized, actionable recommendations. Specify the area for recommendations. ```bash @alex #recommend cost savings opportunities ``` ```bash @tony #recommend index optimizations for orders table ``` ```bash @kai #recommend resource limits for web deployments ``` ```bash @oliver #recommend IAM policy improvements ``` -------------------------------- ### Kubernetes Kubeconfig Format Source: https://docs.cloudthinker.io/guide/connections/kubernetes Example structure of a kubeconfig file, including cluster details, context, and user token. ```yaml apiVersion: v1 kind: Config clusters: - cluster: certificate-authority-data: server: https://your-cluster-endpoint:6443 name: your-cluster contexts: - context: cluster: your-cluster user: cloudthinker-readonly name: cloudthinker-context current-context: cloudthinker-context users: - name: cloudthinker-readonly user: token: ``` -------------------------------- ### Example Natural Language Prompt Source: https://docs.cloudthinker.io/guide/tutorial/vibeops Use this syntax to ask an agent to perform a task. The agent will interpret the request and execute the necessary commands. ```text @alex find EC2 instances with low utilization ``` -------------------------------- ### Example Agent Prompts for Grafana Source: https://docs.cloudthinker.io/guide/connections/grafana These prompts demonstrate how agents can interact with Grafana for tasks like checking dashboards, querying metrics, and referencing visualizations. ```bash @alex check the AWS cost dashboard for anomalies @kai reference the Kubernetes cluster dashboard @tony query database metrics from the Grafana data source ``` -------------------------------- ### Example Knowledge Base: Company Procedures Source: https://docs.cloudthinker.io/guide/knowledge YAML configuration for a 'Document Upload' type knowledge base named 'Operations Procedures', including employee handbook and IT policies. ```yaml Name: "Operations Procedures" Type: Document Upload Content: - Employee handbook (PDF) - IT policies (Word docs) - Emergency procedures (PDF) Access: Always Available Agents: All agents can reference ``` -------------------------------- ### Example Agent Prompts for Flespi Source: https://docs.cloudthinker.io/guide/connections/flespi These prompts demonstrate how to interact with Flespi agents to retrieve device information, check stream health, query telemetry, and manage geofences. ```bash @alex list all flespi devices and their last known positions ``` ```bash @alex check stream health and identify any delivery failures ``` ```bash @alex query telemetry for device 12345 over the last 24 hours ``` ```bash @alex show all active channels and their connected protocol types ``` ```bash @alex list geofences and check which devices are inside zone "warehouse-01" ``` -------------------------------- ### Using Tool Commands for Output Formatting Source: https://docs.cloudthinker.io/guide/tutorial/vibeops Append a tool command to your prompt to specify the desired output format. This example requests a dashboard visualization of EC2 costs. ```text @alex #dashboard show me EC2 cost breakdown by instance type over the last 30 days ``` -------------------------------- ### Basic Agent Interaction Source: https://docs.cloudthinker.io/guide/tutorial/vibeops Initiate a conversation with an agent by mentioning it in your prompt. This example asks Alex for a summary of AWS resources. ```text @alex show me a summary of my AWS resources ``` -------------------------------- ### Example Knowledge Base: Technical Documentation Source: https://docs.cloudthinker.io/guide/knowledge YAML configuration for a 'Web Crawler' type knowledge base named 'AWS Documentation', specifying the URL and update schedule. ```yaml Name: "AWS Documentation" Type: Web Crawler URL: "https://docs.aws.amazon.com/" Schedule: Weekly updates Access: Manual (#kb command) Agents: Alex (primary), others as needed ``` -------------------------------- ### Compare Production and DR Topologies Source: https://docs.cloudthinker.io/guide/infrastructure/topology Ensure disaster recovery readiness by comparing the production infrastructure topology with the DR region's setup. ```bash @alex compare production topology with DR region topology ``` -------------------------------- ### Example Agent Prompts for Elasticsearch Source: https://docs.cloudthinker.io/guide/connections/elasticsearch Illustrates how to use CloudThinker agents to query Elasticsearch data. These prompts cover searching logs, analyzing errors, and investigating incidents. ```bash @oliver search logs for authentication failures in the last 24 hours ``` ```bash @alex find error patterns in application logs for service-api ``` ```bash @kai search for OOMKilled events in Kubernetes logs ``` ```bash @tony analyze database error logs for connection issues ``` -------------------------------- ### Initial Agent Commands Source: https://docs.cloudthinker.io/index This example shows how to invoke different agents for specific tasks using the `@agent` syntax. It demonstrates initiating analysis, audits, performance monitoring, optimization, and coordination. ```bash @alex analyze EC2 instances with <20% CPU utilization over 30 days @oliver audit security groups for public access on database ports @tony #dashboard database performance metrics for production cluster @kai optimize pod resource allocation across all namespaces @anna coordinate quarterly infrastructure review with all agents ``` -------------------------------- ### Alex Agent Example: Cloud Engineer Source: https://docs.cloudthinker.io/guide/knowledge Example of how the Alex agent uses the `#kb` command to find EC2 cost savings, referencing uploaded cost optimization guides. ```text @alex #kb find EC2 cost savings → References uploaded cost optimization guide → Provides specific recommendations ``` -------------------------------- ### Create E-commerce Platform Topology Overview Source: https://docs.cloudthinker.io/guide/infrastructure/topology Provide new team members with a comprehensive topology overview of the e-commerce platform to accelerate onboarding. ```bash @anna create topology overview of our e-commerce platform ``` -------------------------------- ### Example Agent Prompts for Kafka Monitoring Source: https://docs.cloudthinker.io/guide/connections/kafka Use these prompts with agents like Alex and Tony to monitor Kafka consumer lag, topic health, throughput, and broker status. ```bash @alex check consumer lag for the orders-service group @alex identify under-replicated partitions @tony analyze message throughput trends for the events topic @tony check data retention policies across all topics ``` -------------------------------- ### Connect to PostgreSQL Instance Source: https://docs.cloudthinker.io/guide/connections/postgresql Connect to your PostgreSQL instance using the psql command-line tool. Ensure you have the host, port, and database name. ```bash psql -h your-host -U postgres -d your-database ``` -------------------------------- ### Performance Bottleneck Example Source: https://docs.cloudthinker.io/guide/infrastructure/topology Example of API response time degradation caused by database latency, visualized on a topology map. ```text User → CloudFront (5ms) → ALB (3ms) → API (50ms) → RDS (1800ms) ← Bottleneck ↘ ElastiCache (2ms) ``` -------------------------------- ### Prompt Pattern 4: Investigation Request Examples Source: https://docs.cloudthinker.io/guide/language Examples of using the '@agent investigate' pattern to request investigation into specific issues. ```bash @alex investigate cost spike on database services last week @tony investigate slow query performance on orders table @kai investigate pod crash loops in payment namespace @oliver investigate failed authentication attempts from unusual IPs ``` -------------------------------- ### Conditional Logic: Applying Business Rules Source: https://docs.cloudthinker.io/guide/language Demonstrates how to apply specific conditions and business rules to agent recommendations. ```bash @alex #recommend instance right-sizing where: - CPU utilization <20% for >14 days - Not tagged as burst-capable - Not in auto-scaling groups - Savings >$50/month @oliver prioritize security findings: - Critical: internet-exposed + known CVE - High: production + public access - Medium: everything else ``` -------------------------------- ### Prompt Pattern 2: Audit Request Examples Source: https://docs.cloudthinker.io/guide/language Examples of using the '@agent audit' pattern to request security and compliance audits. ```bash @oliver audit S3 buckets for public access and encryption @oliver audit IAM policies for privilege escalation paths @alex audit infrastructure for unused or orphaned resources @kai audit RBAC configuration against least-privilege principles ``` -------------------------------- ### Oliver Agent Example: Security Source: https://docs.cloudthinker.io/guide/knowledge Example of how the Oliver agent uses the `#kb` command for security incident response, referencing uploaded incident procedures. ```text @oliver #kb security incident response → References uploaded incident procedures → Provides step-by-step guidance ``` -------------------------------- ### Implement Recommendation with Alex Source: https://docs.cloudthinker.io/guide/cost-optimization/recommendations Instruct Alex to implement a specific recommendation, such as resizing an instance. Alex will present proposed changes for approval. ```bash @alex implement recommendation for resizing instance i-0abc123 # Alex will show the proposed changes and request approval ``` -------------------------------- ### Get Kubernetes Cluster Info Source: https://docs.cloudthinker.io/guide/connections/kubernetes Retrieve the cluster endpoint information using kubectl. ```bash kubectl cluster-info ``` -------------------------------- ### Basic Tool Commands Source: https://docs.cloudthinker.io/guide/language Use '#' to specify output format or invoke specific capabilities. Examples include generating dashboards, reports, recommendations, alerts, charts, and knowledge base searches. ```bash #dashboard monthly cost trends ``` ```bash #report SOC 2 compliance assessment ``` ```bash #recommend index optimizations ``` ```bash #alert when node CPU >80% ``` ```bash #chart spending by service ``` ```bash #kb AWS cost optimization policies ``` -------------------------------- ### Slack Integration: Basic Agent Commands Source: https://docs.cloudthinker.io/guide/language Examples of how to invoke CloudThinker agents within Slack by prefixing with '@CloudThinker'. ```bash @CloudThinker alex what's our AWS spending this week? @CloudThinker oliver any critical security findings? @CloudThinker tony why are queries slow on production? @CloudThinker kai check EKS cluster health ``` -------------------------------- ### Ask Alex to Analyze S3 Costs and Recommend Optimizations Source: https://docs.cloudthinker.io/guide/cost-optimization/recommendations Utilize Alex to analyze S3 storage costs and identify optimization opportunities. ```bash @alex analyze our S3 storage costs and recommend optimizations ``` -------------------------------- ### Check pg_stat_statements Extension Source: https://docs.cloudthinker.io/guide/connections/postgresql Verify if the pg_stat_statements extension is installed on your PostgreSQL server. This is often required for performance analysis. ```sql SELECT * FROM pg_extension WHERE extname = 'pg_stat_statements'; ``` -------------------------------- ### Install Metrics Server Source: https://docs.cloudthinker.io/guide/connections/kubernetes Applies the Metrics Server deployment to the Kubernetes cluster, which is required for CloudThinker to gather resource metrics. ```bash kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml ``` -------------------------------- ### Configure and Verify AWS Credentials Source: https://docs.cloudthinker.io/guide/byok Set up a local AWS profile using the generated access keys and verify the credentials by checking the caller identity. This confirms successful IAM setup. ```bash aws configure --profile bedrock-byok-user ``` ```bash aws sts get-caller-identity --profile bedrock-byok-user ``` -------------------------------- ### Identify Missing DR Resources Source: https://docs.cloudthinker.io/guide/infrastructure/topology Detect resources missing from the disaster recovery setup by comparing production and DR topologies. ```bash @alex identify resources missing from DR setup ``` -------------------------------- ### Right-size RDS Instances Source: https://docs.cloudthinker.io/guide/tutorial/vibeops Use conversational commands to recommend right-sizing options for over-provisioned RDS instances. ```text @alex #recommend right-sizing options for the over-provisioned RDS instances ``` ``` -------------------------------- ### Structured Requests: Complex Optimization Task Source: https://docs.cloudthinker.io/guide/language An example of a complex optimization request using a structured format with specific targets and constraints. ```bash @tony optimize database performance: Target: production PostgreSQL cluster Focus: queries running >100x daily with >500ms P95 Constraints: - No schema changes requiring downtime - Maintain read replica compatibility Output: #recommend with implementation order and rollback plan ``` -------------------------------- ### Context Modifiers: Scope Source: https://docs.cloudthinker.io/guide/language Define the scope for commands to focus on specific environments or resources. Examples include regions, environments, and databases. ```bash @alex analyze EC2 instances in us-east-1 region ``` ```bash @oliver audit production environment security groups ``` ```bash @tony check performance on the orders database ``` ```bash @kai review staging cluster resource allocation ``` -------------------------------- ### Start Vanilla Redis Docker Container Source: https://docs.cloudthinker.io/guide/connections/redis Run a minimal Redis instance using Docker. Ensure to set a password and enable append-only file (AOF) for durability. ```bash docker run -d --name redis-min \ -p 6379:6379 \ redis:7-alpine \ redis-server --requirepass --appendonly yes ``` -------------------------------- ### Set and Track Savings Goals with Agent Source: https://docs.cloudthinker.io/guide/cost-optimization/savings Configure monthly or quarterly savings targets using the agent. Monitor progress towards these goals and receive alerts when falling behind. ```bash # Set a savings goal @alex we're targeting $50,000 monthly savings by Q2 ``` ```bash # Track progress @alex show progress toward our quarterly savings goal ``` -------------------------------- ### Mount ACL file for Redis persistence Source: https://docs.cloudthinker.io/guide/connections/redis Example of mounting the `users.acl` file into the Redis container using Docker's volume flag. ```bash -v $PWD/users.acl:/data/users.acl ```