/exclusion
DesigningPOST
/exclusionModified at: a year ago
Add a new metric exclusion pattern.
Request
Body Params application/x-www-form-urlencoded
list_type_id
string
required
Which exclusion list to add the pattern to. Example: 1.
pattern
string
required
A regular expression for matching metrics. Example: (my|expression).
Request samples
Responses
An example Response(200)
An example Response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"status": {
"created_timestamp": 1671533956,
"created_string": "Tue 20 Dec 2022 @ 10:59 (GMT)",
"duration": 0.462,
"language": "en-gb",
"timezone": {
"timezone_type": 3,
"timezone": "Europe/London"
},
"code": 200,
"oldest_cached_component_age": 40,
"session_id": "bfd9b49b4048f7ee1be8d8937ba01211",
"org_onboarding_status_id": 300,
"api_host": "anomalarm.dev.dropbox.dev.local",
"user_onboarding_flags": {
"main_intro": false,
"alerts_intro": false,
"alerts_from_search": false,
"training_intro": false,
"alert_created": false,
"test_alert_sent": true,
"two_alerts_sent": true,
"pattern_trained": false
}
},
"data": {
"exclude": {
"id": "7",
"list_type_id": "1",
"pattern": "^demo"
},
"metrics": [
"demo_robustperception_io.prometheus.node_disk_io_time_seconds_total",
"demo_robustperception_io.prometheus.node_disk_io_time_weighted_seconds_total",
"demo_robustperception_io.prometheus.node_disk_read_time_seconds_total",
"demo_robustperception_io.prometheus.node_filesystem_free_bytes.device.dev.vda1",
"demo_robustperception_io.prometheus.node_forks_total",
"demo_robustperception_io.prometheus.node_load1",
"demo_robustperception_io.prometheus.node_load15",
"demo_robustperception_io.prometheus.node_load5",
"demo_robustperception_io.prometheus.node_memory_MemAvailable_bytes",
"demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
"demo_robustperception_io.prometheus.node_network_receive_bytes_total.eth0",
"demo_robustperception_io.prometheus.node_network_receive_bytes_total.lo",
"demo_robustperception_io.prometheus.prometheus.promhttp_metric_handler_requests_total.200"
]
}
}
Last modified: a year ago