Skip to main content
POST
/
api
/
v1
/
config
/
derived-labels
{
  "derived_label": {
    "label_name": "<string>",
    "name": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "existing_label_policy": "KEEP",
    "metric_label": {
      "constructed_label": {
        "value_definitions": [
          {
            "filters": [
              {
                "name": "job",
                "value_glob": "myservice*"
              }
            ],
            "value": "<string>"
          }
        ]
      },
      "mapping_label": {
        "name_mappings": [
          {
            "filters": [
              {
                "name": "job",
                "value_glob": "myservice*"
              }
            ],
            "source_label": "<string>",
            "value_mappings": [
              {
                "source_value_globs": [
                  "<string>"
                ],
                "target_value": "<string>"
              }
            ]
          }
        ],
        "value_mappings": [
          {
            "source_value_globs": [
              "<string>"
            ],
            "target_value": "<string>"
          }
        ]
      }
    },
    "slug": "<string>",
    "span_tag": {
      "name_mappings": [
        {
          "source_tag": "<string>"
        }
      ]
    },
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Body

application/json
derived_label
object

The DerivedLabel to create.

dry_run
boolean

If true, validates the specified configuration without creating the DerivedLabel. If the specified configuration is valid, the endpoint returns a partial response without the DerivedLabel. If the specified configuration is invalid, the endpoint returns an error.

Response

A successful response containing the created DerivedLabel.

derived_label
object