Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
Billing
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Activate the paid version
    • Purchase a committed volume of services (CVoS)
    • Activate a promo code
    • View usage details
    • Top up your personal account
    • Link another bank card
    • Unlink a card
    • Link a cloud to a billing account
    • Change the payment method
    • Understand your payment invoice
    • View your payment history
    • Change your billing account data
    • Create a new billing account
    • Delete billing account
    • Get expense details by folder
    • View details in Yandex DataLens
    • Enable notifications
    • Enable electronic document management
    • Download reporting documents
    • Yandex Query integration
  • Concepts
    • All concepts
    • Promo code
    • Billing threshold
    • Billing accounts
      • Overview
      • Statuses
    • Personal account
    • Grant
    • Trial period
    • Committed volume of services (CVoS)
    • Free tier of serverless ecosystem
    • Budget
    • Agreement
    • Glossary
  • Paying for resources
    • General information
    • For individuals
      • How resources are paid for and funds are debited
      • Billing cycle
    • For businesses and individual entrepreneurs
      • Payment methods
        • Bank account transfers
        • Bank card transfer
    • Billing cycle
    • Reporting documents
      • General information
      • Report
      • Payment invoice
      • Invoice
      • Electronic document management
    • Payment currency
  • Tutorials
    • Creating a trigger for budgets that invokes a function to stop VM instances
  • Access management
  • Pricing policy
  • Questions and answers
    • General questions
    • Questions about an agreement
    • Questions about payment
    • Questions about the billing account
    • Questions about the trial period and paid version
    • Questions about working with non-residents of Russia or Kazakhstan
    • All questions on one page
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • BillingAccountService
      • BudgetService
      • CustomerService
      • ServiceService
      • SkuService
      • OperationService
    • REST
      • Overview
      • BillingAccount
        • Overview
        • bindBillableObject
        • get
        • list
        • listAccessBindings
        • listBillableObjectBindings
        • updateAccessBindings
      • Budget
        • Overview
        • create
        • get
        • list
      • Customer
        • Overview
        • activate
        • createResellerServed
        • invite
        • list
        • suspend
      • Service
        • Overview
        • get
        • list
      • Sku
        • Overview
        • get
        • list
  1. Step-by-step instructions
  2. Yandex Query integration

Yandex Query integration

Written by
Yandex Cloud
  • Standard tasks for searching data in Billing details
  • Setting up integration between Billing and Yandex Query
  • Running queries to data stored in Yandex Object Storage
  • Handling results
  • See also

Billing and Yandex Query are integrated with each other to enable standard tasks for analyzing billing details and run a custom search in YQL.

Standard tasks for searching data in Billing details

Yandex Query provides ready-made queries to implement standard scenarios for searching data in Billing details.

Examples of standard search tasks:

  • Consumption by month.
  • Consumption in the current month broken down by service and product.
  • Consumption in the current month broken down by cloud and folder.
  • Top 10 most expensive resources.
  • Payment for fixed consumption.
  • Utilization of fixed consumption.
  • Details by K8S clusters.

Setting up integration between Billing and Yandex Query

To set up integration:

  1. Open the list of billing detail exports in the Yandex Cloud console.
  2. Select the desired details and click Process in YQ.
  3. When switching from Billing to Yandex Query for the first time, set up integration:
    1. In the Yandex Query interface, select the service account to be used to read data from Yandex Object Storage in the connection creation dialog box and click Create.
    2. In the Yandex Query interface, check the preset parameters by clicking Preview in the binding creation dialog box. Next, click Create to complete the integration process.
    3. Once the integration settings are configured, you'll be redirected to the Billing section automatically.

Running queries to data stored in Yandex Object Storage

To query Billing analytical data stored in Yandex Object Storage:

  1. Under Billing in the Yandex Query interface, select the desired data binding from the list if there are multiple bindings.
  2. Select the desired query to data from Yandex Object Storage in the list and click Run.

Handling results

You can do the following with data processing results:

  1. Download them through the Yandex Query GUI by clicking Export.
  2. Save them to a Yandex Object Storage bucket.
  3. Visualize them in Yandex DataLens.
  4. Get and process them via the Yandex Query HTTP API.

See also

  • Yandex Object Storage.
  • Yandex DataLens.

Was the article helpful?

Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
In this article:
  • Standard tasks for searching data in Billing details
  • Setting up integration between Billing and Yandex Query
  • Running queries to data stored in Yandex Object Storage
  • Handling results
  • See also