# MegaBill View Telemetry

## Overview

MegaBill View Telemetry allows you to dynamically reallocate shared costs based on ratios derived from historical cost and usage data within Finout’s MegaBill. These ratios can be calculated daily or based on a sliding window (e.g., previous month, last 30 days), leveraging the data that already exists in Finout along with user-defined groupings and filters.

Transforming internal cost and usage data into telemetry enables flexible and precise cost reallocation within Finout. Organizations can distribute shared expenses across dimensions such as teams, namespaces, or cost centers using proportional ratios derived from historical cost or usage trends. This can be generated from any existing MegaBill view, enabling you to customize cost reallocation to fit your specific needs.<br>

**Use Cases**

* **AWS Support Costs Reallocation**: AWS support charges are typically applied as a percentage of an organization’s cloud spend, but they often lack a clear breakdown per team or business unit. With MegaBill View Telemetry, these costs can be **redistributed based on proportional usage or spend**, ensuring accurate financial accountability.
* **Idle Resource Cost Allocation**: In cloud environments, idle or underutilized resources often contribute to unnecessary unallocated or shared costs. By leveraging historical telemetry, FinOps teams can allocate these idle costs proportionally to the teams or services associated with them, enabling better visibility and cost accountability.

## Create a MegaBill View Telemetry

### 1. Obtain a View ID

1. In MegaBill, **select a view** that you want to base the telemetry on.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong>: </p><ul><li>You can use a <strong>pre-defined saved view</strong> or <strong>create your own view</strong>. See <a href="/pages/HmUJlXC09tHYvI2xpYC4#h_826c6d6143">MegaBill documentation</a> for full instructions regarding creating new views and using saved views.</li><li>Part of the process of creating a new view is <strong>Enabling ACL Permissions.</strong> This allows you to define specific read and write permissions for individual users and groups. See <a href="/pages/HmUJlXC09tHYvI2xpYC4#h_826c6d6143">MegaBill documentation</a> and <a href="/pages/i7OqCE0PN5UuVmvMYLUJ">ACL Permissions</a> for more information.</li><li>You cannot create a Megabill ratio with multiple group bys.</li></ul></div>

   <br>

   <figure><img src="/files/6zQLO26NiVNnL12EQ4F1" alt=""><figcaption></figcaption></figure>
2. Copy the **View ID**.

### 2. Connect MegaBill View Telemetry

1. Navigate to **Settings** > **Telemetry**.<br>

   <figure><img src="/files/8j5c1iZsj9DTgpEOoyv0" alt=""><figcaption></figcaption></figure>
2. Click **Add telemetry**.\
   The Connect Telemetry page appears.<br>

   <figure><img src="/files/KxzOWpj2RZi2uamDaFcB" alt=""><figcaption></figcaption></figure>
3. Under MegaBill View, click **Connect Now**.\
   The **Configure MegaBill View** step appears.<br>

   <div align="left"><figure><img src="/files/cTwbUt7BOsMDMZYAOfYE" alt=""><figcaption></figcaption></figure></div>
4. **Telemetry Display Name**: Choose a clear, descriptive name that identifies and locates the telemetry easily.
5. **MegaBill View**: Choose a MegaBill view from the dropdown.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note:</strong> If a view cannot be used for MB Telemetry (for example, when no <strong>Group By</strong> is selected or when multiple <strong>Group By</strong> dimensions are used), the view will still be displayed but cannot be used for telemetry.</p></div>

   <div align="left"><figure><img src="/files/36sOrbndCerUvSeizX40" alt=""><figcaption></figcaption></figure></div>
6. **Time Frame Type**: Specify either "Same-Day" or "Sliding Window":
   * **Same-Day Calculation**: (See [below](#same-day-calculation) for a more detailed explanation)
     * Ratios are calculated using data from the current day only.
     * Each day's calculation is independent and does not incorporate historical data.
     * Use case: Ideal when cost behavior or usage patterns vary significantly day to day (e.g., spot instances, ephemeral environments).
     * Data scope: Only today’s data is considered; no historical context is applied.
   * **Sliding Window Calculation**: (See [below](#sliding-window-calculation) for a more detailed explanation)
     * Ratios are calculated using historical data for the timeframe selected in the MegaBill view, up to 31 days. The current day is always excluded from the calculation window.
     * Use case: Ideal for stable environments where you want allocations to reflect historical averages.
     * Data scope: A rolling window of past days, excluding the current day.
7. Click **Next**.\
   You are brought to the **Review Configuration** step.\
   \
   **Same Day Calculation Review**:<br>

   <div align="center"><figure><img src="/files/T1rDBcNdb0by4OCtHLx4" alt=""><figcaption></figcaption></figure></div>

   \
   **Sliding Window Calculation Review**:

<figure><img src="/files/Rt3KDJ3hxCoQ1b2UK2Fg" alt=""><figcaption></figcaption></figure>

8. Review the configuration and click **Submit.**\
   \
   **Result:** The MegaBill View Telemetry is created and appears in the Telemetry list. \
   Data is automatically aggregated over the past 3 months.<br>

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong>: If a view is changed, the updated calculation will appear in the MegaBill View Telemetry by the next day and will also apply to the current month's configuration.</p></div>

## Same-Day Calculation

* **Definition**: Ratios are calculated independently for each day, using only that day’s data.
* **Use case**: This is ideal when cost behavior or usage patterns vary significantly day to day (e.g., spot instances, ephemeral environments).
* **Data scope**: Only today’s data is considered; no historical context is applied.

Example:

You want to distribute daily Datadog costs across teams based on their cloud spend on that same day:

* On March 5th:
  * Team A spent $200
  * Team B spent $800
  * Total daily spend: $1,000\
    \
    Datadog bill for March 5th: $100

Ratio-based allocation:

* Team A: $100 × (200 / 1,000) = $20
* Team B: $100 × (800 / 1,000) = $80\
  \
  This calculation resets daily, using only the respective day’s spend.

## Sliding Window Calculation

* **Definition**: Ratios are based on historical data over a defined window of days (up to 31 days max).
* **Use case**: This is ideal for stable environments where you want allocations to reflect historical averages.
* **Data scope**: A window of past days, excluding the current day.

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note:</strong> The sliding window is limited to a maximum of 31 days, and the current day is always excluded from the calculation. The window is dynamic and does not support a fixed static timeframe (for example, January 25); it continuously adjusts based on the current date.</p></div>

**Example**:

You want to allocate March 1st’s AWS support cost based on spend from the previous 30 days (Feb 1–Feb 29).

Historical team spend:

* Team A: $900
* Team B: $8,100
* Total: $9,000

&#x20;  AWS Support bill for March 1st: $270

Ratio-based allocation:

* Team A: $270 × (900 / 9,000) = $27
* Team B: $270 × (8,100 / 9,000) = $243

&#x20;  This sliding window recalculates daily, shifting one day forward and excluding today’s data.

### Sliding Window Variations

* **Last X Days**: For each day, sum of the cost and usage of the previous X days, not including the current day.<br>

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note:</strong> The window slides forward daily.</p></div>

  \
  For Example: On April 9, with a 3-day window, the value includes April 6, 7, and 8.
* **Last Month (Previous Calendar Month)**: For each day, sum of the cost and usage of the entire previous calendar month.<br>

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note:</strong> Value is constant across all days (e.g., April 1–30 shows the same March total).</p></div>

  \
  Example: On any day in April, the value will be the total of March 1–31.
* **Current Month (Same Calendar Month)**: For each day, sum of the cost and usage of the current calendar month.<br>

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note:</strong> Value is updated retroactively for each day in the month as new data arrives,   so April 1 through April 30 will all eventually show the total for April.</p></div>

  \
  Example: On April 9, the value includes April 1–9. On April 30, it includes April 1–30.

## FAQs

**How do I use telemetry for shared cost reallocations?**

To use telemetry for shared cost reallocations, select the generated MegaBill View Telemetry from the existing dropdown within the Virtual Tag reallocation options. Reallocations are performed similarly to external telemetry sources. For detailed instructions, please refer to the [How to Use Shared Cost Reallocation](https://docs.finout.io/user-guide/inform/shared-cost-reallocation/how-to-use-shared-cost-reallocation) documentation.

**What is the recommended daily telemetry data limit?**

The recommended daily telemetry limit is up to 1,000 telemetry values per day to ensure optimal performance and reliability.

**How frequently is historical telemetry data recalculated?**

Historical telemetry data is automatically recalculated over the past 3 months.&#x20;

**What is the maximum number of hierarchical levels or nested categories I can effectively implement when organizing telemetry data in the MegaBill Ratio system?**

It is recommend to use up to three nested levels of virtual tags for optimal performance when working with MegaBill View Telemetry

**How many active MegaBill View Telemetry sources can I maintain per account?**

Each account supports up to 50 active MegaBill Ratio telemetry.<br>

**If I change a view, when will the updated data appear in MegaBill?**

A: Changes to a view will be reflected in MegaBill View Telemetry by the next day. The updated calculation will also apply to the configuration for the current month.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.finout.io/telemetry-integrations/telemetry/megabill-view-telemetry.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
