全部产品
Search
文档中心

Resource Management:Meminta tagihan terpisah untuk instance kontainer elastis berdasarkan tag

更新时间:Nov 24, 2025

Anda dapat mengikat tag ke sumber daya Elastic Container Instance seperti instance kontainer elastis, cache gambar, dan node virtual (VNodes) sesuai kebutuhan. Kemudian, Anda dapat mengelola buku besar perusahaan berdasarkan tag. Topik ini menjelaskan cara meminta tagihan terpisah perusahaan berdasarkan tag sesuai permintaan.

Mengikat tag ke sumber daya Elastic Container Instance

Tag serupa dengan label di Kubernetes dalam hal fitur. Tag digunakan untuk menandai sumber daya Elastic Container Instance yang memiliki kebutuhan manajemen atau bisnis yang sama. Ini mempermudah pengelolaan klasifikasi dan operasi penyaringan selanjutnya. Tabel berikut menjelaskan sumber daya Elastic Container Instance yang dapat Anda ikat dengan tag:

Skenario

Sumber Daya

Referensi

Tambahkan tag di konsol Elastic Container Instance atau dengan memanggil operasi API

Instance kontainer elastis

Gunakan tag untuk mengelola instance kontainer elastis

Cache gambar

Kelola cache gambar

VNodes

Pasang VNode secara manual di kluster Kubernetes yang dikelola sendiri

Tambahkan tag dengan menambahkan anotasi ke kluster Kubernetes

Instance kontainer elastis

Mengikat tag kustom ke sebuah pod

Secara default, tag berikut ditambahkan ke instance kontainer elastis yang dibuat menggunakan Container Service for Kubernetes:

  • ManagedBy: jenis klaster.

  • ClusterId: ID klaster.

  • NameSpace: namespace klaster.

  • OwnerReferenceKind: jenis workload yang dibuat di dalam klaster, seperti Deployment dan Job.

  • OwnerReferenceName: nama workload yang dibuat di dalam klaster, seperti nama Deployment dan nama Job.

  • PodName: nama pod.

Kueri tagihan terpisah berdasarkan tag

  1. Log in to the Elastic Container Instance console.

  2. In the top navigation bar, click Expenses to go to the Expenses and Costs console.

  3. In the left-side navigation pane, choose Manage Split > Cost allocation tags.

  4. Enable cost allocation tags.

    The first time you enable cost allocation tags

    1. On the Cost allocation tags page, read the description of tags and click Next.

    2. Select a tag that you want to enable, click ">" to move the tag to the Selected Tags list, and then click Next.

    启用费用标签1

    Click Enable.

    You previously enabled cost allocation tags

    • To enable a single tag, find the tag and click Enable in the Operations column.

    • To enable multiple tags at a time, select the tags and click Batch Enable in the lower part of the page.

      启用费用标签

    Catatan

    Tags are case-sensitive. If many tags are displayed in the list, you can search for tags by key.

  5. In the left-side navigation pane, choose Manage Split > Cost Center. You can allocate resources to cost centers by tag.

    1. Add a cost center.

      1. In the left-side navigation pane of the Cost Centers page, click the "+" icon next to Cost Center.

        新增财务单元

      2. In the Add Cost Center dialog box, enter a name for the cost center and click OK.

    2. Allocate resources to the cost center.

      1. In the left-side navigation pane of the Cost Centers page, click All Resources.

      2. In the Tag column of the resource list on the right, click the filter icon. In the dialog box that appears, select the tags that you enabled and click OK.

        财务单元筛选标签

      3. Select Elastic Container Instance resources from the filter results and click Allocate. In the Allocate dialog box, select the cost center that you added and click OK.

        分配财务单元

  6. In the left-side navigation pane, choose Manage Split > Split Bill. On the Split Bill page, filter and view split bills by cost center.

    Catatan

    The first time you use the split bill feature, follow the on-screen instructions to enable the feature.

    财务单元筛选.png

  7. In the left-side navigation pane, choose Cost Management > Cost Analysis. Filter costs by cost center and tag to view the cost analysis.

    Catatan

    The first time you use the cost analysis feature, follow the on-screen instructions to enable the feature.

    On the Cost Analysis page, the display mode of charts varies based on the value of Category. The filters that you select from the Filters section on the right filter the data that you want to view. For example, you can select Instance Tag from the Category drop-down list, and then select the tags that you want to view in the Filters section. This way, you can view the cost details of the resources to which the tags are added.

    成本分析-intl.png