We are currently transitioning our API documentation to Apidog and making changes to improve standardization, and as such, methods are subject to change.
Returns a list of the most anomalous metrics in the time period requested, ordered by most anomalous first. Returns 10 results unless the optional limit parameter is specified.
Request
Query Params
from
stringÂ
required
Timestamp. Example: 1588603852.
until
stringÂ
optional
Timestamp. Example: 1588690252.
alerting_metrics_only
stringÂ
optional
When set 'true' (default), only consider alerting metrics. Example: true.
limit
stringÂ
optional
Limit the number of results returned, must be between 1 and 30. Defaults to 10 if not specified. Example: 5.
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET '/metrics/mostanomalous?from='
Responses
🟢200An example Response
application/json
Body
object {0}
Example
{"status":{"created_timestamp":1639583785,"created_string":"Wed 15 Dec 2021 @ 15:56 (+00:00)","duration":0.408,"language":"en-gb","timezone":{"timezone_type":3,"timezone":"Europe\/London"},"code":200,"oldest_cached_component_age":0,"session_id":"6206afee223870f0170fd1afd33133da"},"data":{"metrics":[{"metric":"grph_1.cloudinfra.mx-out02.network.eth0.rx_byte","anomalies":3,"last_anomaly_id":7785,"last_anomaly_timestamp":1588685340,"last_anomaly_timestamp_string":"Tue 05 May 2020 @ 14:29 (+01:00)"},{"metric":"graphite-labs_wikimedia_org.clouddb-services.clouddb1002.cpu.total.steal","anomalies":3,"last_anomaly_id":7750,"last_anomaly_timestamp":1588669860,"last_anomaly_timestamp_string":"Tue 05 May 2020 @ 10:11 (+01:00)"},{"metric":"grph_1.cloudinfra.mx-out02.network.eth0.tx_byte","anomalies":3,"last_anomaly_id":7786,"last_anomaly_timestamp":1588685340,"last_anomaly_timestamp_string":"Tue 05 May 2020 @ 14:29 (+01:00)"},{"metric":"graphite-labs_wikimedia_org.cloudinfra.cloud-cumin-01.memory.MemFree","anomalies":2,"last_anomaly_id":7687,"last_anomaly_timestamp":1588642500,"last_anomaly_timestamp_string":"Tue 05 May 2020 @ 02:35 (+01:00)"},{"metric":"grph_1.cloudinfra.cloud-cumin-01.network.eth0.rx_byte","anomalies":2,"last_anomaly_id":7643,"last_anomaly_timestamp":1588612140,"last_anomaly_timestamp_string":"Mon 04 May 2020 @ 18:09 (+01:00)"}]}}