Get

Get objects

Help

planeo get help

Get infra cost

planeo get cost cluster --name <cluster name> --project <project name> --env <environment name>

example:

planeo get cost cluster --name devcluster --project analytics --env dev

$0.59

Get service cost

Note: If you just deployed the service, it is recommended that you wait at least 5 minutes before fetching service cost

planeo get cost service --name <service name> --project <project name> --env <environment name> --cluster <cluster name> 

example:

planeo get cost service --name simple-python --project analytics --env dev --cluster devcluster

$0.003730

Get service logs

fetches urls for service logs

planeo get logs --project <project name> --env <environment name> --cluster <cluster name> --service <service name>

example:

planeo get logs --project analytics --env dev --cluster devcluster --service simple-python

fetching log info for: Project=analytics, Environment=dev, Cluster=devcluster, Service=simple-python
Log Count url: https://grafana.preprod.example.org/d-solo/o6-BGgnnk/loki-kubernetes-logs?orgId=1&var-query=&var-namespace=simple-python&var-stream=All&var-container=simple-python-helmchart&panelId=4&refresh=30s&from=5m&to=now
Log Message url: https://grafana.preprod.example.org/d-solo/o6-BGgnnk/loki-kubernetes-logs?orgId=1&var-query=&var-namespace=simple-python&var-stream=All&var-container=simple-python-helmchart&panelId=2&refresh=30s&from=5m&to=now

Get service metrics

fetches urls for service metrics

network i/o

planeo get metrics --project <project name> --env <environment name> --cluster <environment name> --service <service name> --metric networkio

example:

planeo get metrics --project analytics --env dev --cluster devcluster --service simple-python --metric networkio

fetching metric info for: Project=analytics, Environment=dev, Cluster=devcluster, Service=simple-python, MetricType=networkio
network I/O url: https://grafana.preprod.example.org/d-solo/k8s_views_global/kubernetes-views-global?orgId=1&panelId=44&refresh=30s&from=now-30m&to=now&var-datasource=Prometheus&var-resolution=5m&var-service=

resource usage

planeo get metrics --project <project name> --env <environment name> --cluster <cluster name> --service <service name> --metric cpumem

example:

planeo get metrics --project analytics --env dev --cluster devcluster --service simple-python --metric cpumem

fetching metric info for: Project=analytics, Environment=dev, Cluster=devcluster, Service=simple-python, MetricType=cpumem
cpu utilization url: https://grafana.preprod.example.org/d-solo/VKL0YH1Zz/kubernetes-app-metrics-k8s-1-16?orgId=1&var-query=&var-namespace=simple-python&var-stream=All&var-container=simple-python-helmchart&panelId=1&refresh=30s&from=now-5m&to=now
mem utilization url: https://grafana.preprod.example.org/d-solo/VKL0YH1Zz/kubernetes-app-metrics-k8s-1-16?orgId=1&var-query=&var-namespace=simple-python&var-stream=All&var-container=simple-python-helmchart&panelId=2&refresh=30s&from=now-5m&to=now

http metrics

planeo get metrics --project <project name> --env <environment name> --cluster <cluster name> --service <service name> --metric httpapp

example:

planeo get metrics --project analytics --env dev --cluster devcluster --service simple-python --metric httpapp

fetching metric info for: Project=analytics, Environment=dev, Cluster=devcluster, Service=simple-python, MetricType=httpapp
reponse code url: https://grafana.preprod.example.org/d-solo/vmIdaerGk/aws-alb-cloudwatch-metrics?orgId=1&var-datasource=CloudWatch&var-region=default&var-loadbalancer=app%2fk8s-simplepy-simplepy-a60e2cd3c9/53a2bd44f2886b5c&panelId=8&refresh=30s&from=now-30m&to=now
requests url: https://grafana.preprod.example.org/d-solo/vmIdaerGk/aws-alb-cloudwatch-metrics?orgId=1&var-datasource=CloudWatch&var-region=default&var-loadbalancer=app%2fk8s-simplepy-simplepy-a60e2cd3c9/53a2bd44f2886b5c&panelId=12&refresh=30s&from=now-30m&to=now
reponse time url: https://grafana.preprod.example.org/d-solo/vmIdaerGk/aws-alb-cloudwatch-metrics?orgId=1&var-datasource=CloudWatch&var-region=default&var-loadbalancer=app%2fk8s-simplepy-simplepy-a60e2cd3c9/53a2bd44f2886b5c&panelId=17&refresh=30s&from=now-30m&to=now

Last updated