This patch adds the swagger definition for the metrics API. Currently, the API defines a get and set of the metric_relabel_config.
34 lines
1.3 KiB
JSON
34 lines
1.3 KiB
JSON
"metrics_config": {
|
|
"id": "metrics_config",
|
|
"summary": "An entry in the metrics configuration",
|
|
"properties": {
|
|
"source_labels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "The source labels, a match is based on concatination of the labels"
|
|
},
|
|
"action": {
|
|
"type": "string",
|
|
"description": "The action to perfrom on match",
|
|
"enum": ["skip_when_empty", "report_when_empty", "replace", "keep", "drop", "drop_label"]
|
|
},
|
|
"target_label": {
|
|
"type": "string",
|
|
"description": "The application state version"
|
|
},
|
|
"replacement": {
|
|
"type": "string",
|
|
"description": "The replacement string to use when replacing a value"
|
|
},
|
|
"regex": {
|
|
"type": "string",
|
|
"description": "The regex string to use when replacing a value"
|
|
},
|
|
"separator": {
|
|
"type": "string",
|
|
"description": "The separator string to use when concatinating the labels"
|
|
}
|
|
}
|
|
} |