---
title: "Create and assign the `service.name` attribute | Grafana Labs"
description: "Learn how to create the `service.name` attribute that identifies which service the collector monitors."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Create and assign the \`service.name\` attribute

In this milestone, you create the `service.name` attribute that identifies which service a collector monitors. This attribute enables service-based configuration and troubleshooting workflows, allowing you to manage telemetry collection for specific services across your infrastructure.

Repeat Milestone 3 to select collectors that monitor a specific service.

Click **Edit remote attributes**, then in the dialog:

1. Click **Add remote attributes** to expand the section.
2. In the **Key** field, type `service.name` and press Enter.
3. In the **Value** field, type a service name, for example, `payment-api`, and press Enter.
4. Click **Apply changes**.

Repeat this milestone until all your collectors are categorized by service.

After you apply the final changes, return to the **Inventory** tab to see the `service.name` attribute with assigned values in the attributes list of the selected collectors.

In the next milestone, you learn how to add the `env` attribute to specify where collectors are running.
