Documentation Index
Fetch the complete documentation index at: https://narev.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Active Google Cloud Platform account with billing data access
- BigQuery billing export configured
- Service account with appropriate permissions
- BigQuery dataset containing billing export data
Setting up BigQuery billing export
1. Enable BigQuery billing export
- Sign in to the Google Cloud Console
- Navigate to Billing > Billing export
- Go to the BigQuery export tab

- Enable both exports:
- Detailed usage cost data: Click Edit settings and configure
- Pricing data: Click Edit settings and configure
- Configure your exports:
- Project: Select the project where you want to store billing data
- Dataset: Create or select a BigQuery dataset (for example,
billing export) - Enable both detailed usage cost data and pricing data export
- Click Save for both exports
2. Create FOCUS view (recommended)
For better compatibility with multi-cloud analysis, Google provides a FOCUS-compliant BigQuery view:- Wait 24-48 hours after enabling exports for data to populate
- Follow one of these guides to create the FOCUS view:
- Google’s official guide: FOCUS BigQuery View guide
- FinOps Foundation guide: Creating FOCUS Views in BigQuery (comprehensive step-by-step)
- Use the provided SQL template, replacing dataset paths with your actual ones
- Save the view with a name like
gcp_billing_focus_v1
3. Note your configuration
After setup, note these details for NarevAI configuration:- Project ID: Where your billing data is stored
- Dataset ID: The BigQuery dataset name (for example,
billing export) - FOCUS view name: The name you gave your FOCUS view (for example,
gcp_billing_focus_v1)
Service account setup
1. Create service account
- Go to Identity and Access Management (IAM) & Admin > Service Accounts in the Google Cloud Console

- Click Create Service Account
- Provide details:
- Username:
narevai-billing-reader - Description:
Service account for NarevAI billing analysis
- Username:
- Click Create and Continue
2. Assign permissions
Assign the following roles to your service account:- BigQuery Data Viewer: To read billing data from BigQuery
- BigQuery Job User: To execute queries
- BigQuery Metadata Viewer: To access dataset and table metadata
3. Create and download key
- In the service accounts list, click your newly created service account
- Go to the Keys tab
- Click Add Key > Create new key
- Select JSON format
- Click Create and save the downloaded JSON file securely
Adding GCP Provider in NarevAI
Step 1: Navigate to Connect
- In the NarevAI sidebar, under Data Connections, click Connect
- You’ll see the “Provider Integrations” page with available providers

Step 2: Select GCP Provider
- Find the Google Cloud Platform card in the provider grid
- Click the Connect button on the GCP card
- The GCP configuration dialog opens

Step 3: Configure GCP Provider
Narev configuration
Provider Name ✅ Required- Unique identifier (for example,
gcp-prod,company-gcp) - Format: lowercase letters, numbers, hyphens, underscores only
- Human-readable name (for example,
GCP Production,Company GCP) - Shown in the interface
App configuration - GCP credentials ✅ Required
Service Account Credentials ✅- Service account JSON key from Google Cloud Console
- Input options:
- Paste JSON: Copy and paste the entire JSON content
- Upload File: Upload the downloaded
.jsonfile
- Must include fields like
type,project_id,private_key,client_email
Provider-specific configuration
Dataset ID ✅ Required- BigQuery dataset with billing export (for example,
billing export) - Must match the dataset you configured in Google Cloud
- FOCUS view name (for example,
gcp_billing_focus_v1) - Must match the FOCUS view you created in BigQuery
Step 4: Connect Provider
- Review all configuration settings
- Click the Connect button
- NarevAI tests the connection to your BigQuery dataset
- If successful, NarevAI adds the provider and marks it as “Connected”
- You can now sync billing data from this GCP account
- Service account credentials validation
- BigQuery dataset access verification
- Table/view existence check
- Data query permissions test
Configuration examples
Basic setup
Multi-Regional Setup
Custom View Name
Service Account JSON Structure
Your service account JSON should look like this:Testing the Connection
After configuring your provider:- Click Test Connection before saving
- The system will verify:
- Service account credentials validity
- BigQuery dataset access permissions
- Table existence and structure
- Query execution permissions
- Successful test shows dataset details and row count
- Failed test will show specific error messages to help troubleshoot
Common Test Results
Success Response
Dataset Not Found
- Solution: Verify the dataset ID and ensure billing export is configured
Permission Denied
- Solution: Ensure your service account has BigQuery Data Viewer and Job User roles
Authentication Failed
- Solution: Verify your service account JSON is complete and valid
Supported Features
The GCP provider supports:- ✅ BigQuery billing export data
- ✅ FOCUS format compatibility
- ✅ Detailed cost breakdown by service and resource
- ✅ Resource hierarchy analysis (organization/folder/project)
- ✅ Labels and tags for cost attribution
- ✅ Multi-regional dataset support
Troubleshooting
Service Account Issues
- Ensure the service account has the required BigQuery permissions
- Verify the JSON file is complete and contains all required fields
- Check that the service account email format is correct
BigQuery Access Issues
- Confirm billing export is enabled and data is being generated
- Verify the dataset and table names match exactly (case-sensitive)
- Ensure the dataset location matches your configuration
Data Export Problems
- Check if billing export is actively generating data (may take 24-48 hours initially)
- Verify your GCP project has billing enabled
- Confirm you have sufficient billing data for the time period
Permission Errors
- BigQuery Data Viewer: Required to read billing data
- BigQuery Job User: Required to execute queries
- BigQuery Metadata Viewer: Required to access dataset information
Authentication Failures
- Verify the service account JSON format is valid
- Check that the private key in the JSON is complete and properly formatted
- Ensure the service account hasn’t been deleted or disabled
Regional Configuration
- Verify the BigQuery dataset location matches your provider configuration
- Some features may not be available in all regions
- Cross-regional access may have additional latency
Finding Your FOCUS View Name
To find your FOCUS view name in BigQuery:- Go to BigQuery in the Google Cloud Console
- Navigate to your billing dataset
- Look for your FOCUS view (typically named
gcp_billing_focus_v1or similar) - Use this exact view name in your NarevAI provider configuration
Data Collection
Once configured, the GCP provider will collect:- Usage metrics: Service usage, resource consumption, API calls
- Cost data: On-demand pricing, sustained use discounts, committed use discounts
- Resource information: Compute instances, storage usage, network traffic
- Project hierarchy: Organization, folder, and project-level cost attribution
- Labels and tags: Custom labels for cost allocation and analysis
- Time-series data: Daily cost and usage patterns