# Sidecar InitContainers Support

Finout includes Prometheus metrics from both main containers and persistent initContainers, ensuring more accurate Kubernetes cost attribution by capturing resource usage beyond the primary workload.

**Definitions**:

* **Main container** – The primary application container within a pod, responsible for executing the workload’s core functionality.
* **Sidecar InitContainer** – A special type of Kubernetes initContainer introduced in Kubernetes v1.29, which can remain active for the entire pod lifecycle. This enables side processes such as logging or proxying to run continuously, unlike traditional initContainers that are always short-lived.<br>

With this change, Finout’s exporter v2.0.0 added support for collecting initContainer resource request metrics for cost attribution. Prior to the exporter’s v2.0.0, these metrics were not included. While short-lived initContainers still have negligible cost impact, persistent initContainers (used as sidecars) are now accurately reflected in the cost calculation.

The updated cost data will appear in the Finout after 2 days.

**Configuration Result:**

After configuring the final step, the CronJob starts exporting data from Prometheus into your S3 bucket. After the integration, the Kubernetes cost data may take up to 24 hours to become available in your Finout account.

If this process fails, guidance is provided in the Finout console to help resolve the problem, or review the [FAQs](/kubernetes-integrations/kubernetes/prometheus/prometheus-faqs.md) and [Troubleshooting](/kubernetes-integrations/kubernetes/prometheus/prometheus-troubleshooting.md), as this will assist you to fix any errors easily.

For new updates to the Prometheus Exporter introduced between versions and their impact on cost calculation, refer to the [release notes](/kubernetes-integrations/kubernetes/prometheus/prometheus-metrics-exporter-release-notes.md).

<br>


---

# 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/kubernetes-integrations/kubernetes/prometheus/sidecar-initcontainers-support.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.
