From 948c309d2c7e7c23ea56581f4a07bc1b88f80367 Mon Sep 17 00:00:00 2001 From: Matthias Luebken Date: Mon, 1 Mar 2021 14:52:57 +0100 Subject: [PATCH] initial commit --- .../getInfrastructureGroupsQuery.md | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 spec/descriptions/getInfrastructureGroupsQuery.md diff --git a/spec/descriptions/getInfrastructureGroupsQuery.md b/spec/descriptions/getInfrastructureGroupsQuery.md new file mode 100644 index 0000000..862618d --- /dev/null +++ b/spec/descriptions/getInfrastructureGroupsQuery.md @@ -0,0 +1,33 @@ +## Example + +Show the 99th percentage of all Docker containers memory usage in a Kubernetes cluster per Kubernetes namespace for the last week. + +```bash +curl --request POST \ + --url https://test-instana.instana.io/api/infrastructure-monitoring/explore/groups \ + --header 'Authorization: apiToken xxxxxxxxxxxxxxxx' \ + --header 'Content-Type: application/json' \ + --data '{ + "timeFrame": { + "to": 1614594081406, + "windowSize": 604800000 + }, + "tagFilterExpression": { + "type": "TAG_FILTER", + "name": "kubernetes.cluster.name", + "value": "my-cluster", + "operator": "EQUALS" + }, + "pagination": { + "retrievalSize": 200 + }, + "groupBy": ["kubernetes.namespace.name"], + "type": "docker", + "metrics": [ + { + "metric": "memory.usage", + "aggregation": "P99" + } + ] +}' +``` \ No newline at end of file