Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Further documentation for the new Infra Groups API #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions spec/descriptions/getInfrastructureGroupsQuery.md
Original file line number Diff line number Diff line change
@@ -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"
}
]
}'
```