/metrics/mostanomalous
DevelopingGET
/metrics/mostanomalousLast modified: 2 months ago
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
Responses
An example Response(200)
An example Response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
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)"
}
]
}
}
Last modified: 2 months ago