curl --request PUT \
--url https://{tenant}.chronosphere.io/api/v1/config/consumption-config \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'{
"consumption_config": {
"created_at": "2023-11-07T05:31:56Z",
"partitions": [
{
"filters": [
{
"operator": "IN",
"conditions": [
{
"dataset_slug": "<string>",
"log_filter": {
"query": "<string>"
},
"metric_filters": [
{
"name": "job",
"value_glob": "myservice*"
}
],
"trace_filter": {
"scope_filter": {
"span_scopes": [
{
"duration": {
"max_secs": 123,
"min_secs": 123
},
"error": {
"value": true
},
"is_root_span": {
"value": true
},
"match_type": "INCLUDE",
"operation": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"parent_operation": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"parent_service": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"service": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"span_count": {
"max": 123,
"min": 123
},
"tags": [
{
"key": "<string>",
"numeric_value": {
"comparison": "EQUAL",
"value": 123
},
"value": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
}
}
]
}
]
},
"span": [
{
"duration": {
"max_secs": 123,
"min_secs": 123
},
"error": {
"value": true
},
"is_root_span": {
"value": true
},
"match_type": "INCLUDE",
"operation": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"parent_operation": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"parent_service": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"service": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"span_count": {
"max": 123,
"min": 123
},
"tags": [
{
"key": "<string>",
"numeric_value": {
"comparison": "EQUAL",
"value": 123
},
"value": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
}
}
]
}
],
"trace": {
"duration": {
"max_secs": 123,
"min_secs": 123
},
"error": {
"value": true
}
}
}
}
]
}
],
"name": "<string>",
"partitions": "<array>",
"slug": "<string>"
}
],
"updated_at": "2023-11-07T05:31:56Z"
}
}curl --request PUT \
--url https://{tenant}.chronosphere.io/api/v1/config/consumption-config \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'{
"consumption_config": {
"created_at": "2023-11-07T05:31:56Z",
"partitions": [
{
"filters": [
{
"operator": "IN",
"conditions": [
{
"dataset_slug": "<string>",
"log_filter": {
"query": "<string>"
},
"metric_filters": [
{
"name": "job",
"value_glob": "myservice*"
}
],
"trace_filter": {
"scope_filter": {
"span_scopes": [
{
"duration": {
"max_secs": 123,
"min_secs": 123
},
"error": {
"value": true
},
"is_root_span": {
"value": true
},
"match_type": "INCLUDE",
"operation": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"parent_operation": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"parent_service": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"service": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"span_count": {
"max": 123,
"min": 123
},
"tags": [
{
"key": "<string>",
"numeric_value": {
"comparison": "EQUAL",
"value": 123
},
"value": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
}
}
]
}
]
},
"span": [
{
"duration": {
"max_secs": 123,
"min_secs": 123
},
"error": {
"value": true
},
"is_root_span": {
"value": true
},
"match_type": "INCLUDE",
"operation": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"parent_operation": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"parent_service": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"service": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
},
"span_count": {
"max": 123,
"min": 123
},
"tags": [
{
"key": "<string>",
"numeric_value": {
"comparison": "EQUAL",
"value": 123
},
"value": {
"in_values": [
"<string>"
],
"match": "EXACT",
"value": "<string>"
}
}
]
}
],
"trace": {
"duration": {
"max_secs": 123,
"min_secs": 123
},
"error": {
"value": true
}
}
}
}
]
}
],
"name": "<string>",
"partitions": "<array>",
"slug": "<string>"
}
],
"updated_at": "2023-11-07T05:31:56Z"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.chronosphere.io/llms.txt
Use this file to discover all available pages before exploring further.
Chronosphere API token
The ConsumptionConfig to update.
Show child attributes
If true, the ConsumptionConfig will be created if it does not already exist. If false, an error will be returned if the ConsumptionConfig does not already exist.
If true, validates the specified configuration without creating or updating the ConsumptionConfig. If the specified configuration is valid, the endpoint returns a partial response without the ConsumptionConfig. If the specified configuration is invalid, the endpoint returns an error.
A successful response containing the updated ConsumptionConfig.
Show child attributes