Datadog: Difference between revisions
From Federal Burro of Information
Jump to navigationJump to search
(Created page with "Lessons Tip s and tricks. CPU by container: <pre> { "viz": "heatmap", "requests": [ { "q": "avg:kubernetes.cpu.usage.total{kube_namespace:kube-system,env:prod-...") |
No edit summary |
||
Line 1: | Line 1: | ||
Lessons Tip s and tricks. | Lessons Tip s and tricks. | ||
CPU by container: | == Graphs snippets == | ||
=== CPU by container: === | |||
<pre> | <pre> | ||
Line 16: | Line 18: | ||
}, | }, | ||
"conditional_formats": [] | "conditional_formats": [] | ||
} | |||
], | |||
"autoscale": true | |||
} | |||
</pre> | |||
=== coredns: memory usage / request / limit === | |||
<pre> | |||
{ | |||
"viz": "timeseries", | |||
"requests": [ | |||
{ | |||
"q": "avg:kubernetes.memory.usage{kube_deployment:coredns,$kubernetescluster}", | |||
"type": "line", | |||
"style": { | |||
"palette": "dog_classic", | |||
"type": "solid", | |||
"width": "normal" | |||
}, | |||
"conditional_formats": [] | |||
}, | |||
{ | |||
"q": "avg:kubernetes.memory.requests{kube_deployment:coredns,$kubernetescluster}", | |||
"type": "line", | |||
"style": { | |||
"palette": "cool", | |||
"type": "dotted", | |||
"width": "normal" | |||
} | |||
}, | |||
{ | |||
"q": "avg:kubernetes.memory.limits{kube_deployment:coredns,$kubernetescluster}", | |||
"type": "line", | |||
"style": { | |||
"palette": "warm", | |||
"type": "dashed", | |||
"width": "normal" | |||
} | |||
} | } | ||
], | ], |
Latest revision as of 16:09, 27 May 2019
Lessons Tip s and tricks.
Graphs snippets
CPU by container:
{ "viz": "heatmap", "requests": [ { "q": "avg:kubernetes.cpu.usage.total{kube_namespace:kube-system,env:prod-blue} by {container_name}", "type": null, "style": { "palette": "dog_classic", "type": "solid", "width": "normal" }, "conditional_formats": [] } ], "autoscale": true }
coredns: memory usage / request / limit
{ "viz": "timeseries", "requests": [ { "q": "avg:kubernetes.memory.usage{kube_deployment:coredns,$kubernetescluster}", "type": "line", "style": { "palette": "dog_classic", "type": "solid", "width": "normal" }, "conditional_formats": [] }, { "q": "avg:kubernetes.memory.requests{kube_deployment:coredns,$kubernetescluster}", "type": "line", "style": { "palette": "cool", "type": "dotted", "width": "normal" } }, { "q": "avg:kubernetes.memory.limits{kube_deployment:coredns,$kubernetescluster}", "type": "line", "style": { "palette": "warm", "type": "dashed", "width": "normal" } } ], "autoscale": true }