Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Mixer logging and metrics

Scott Ganyo edited this page Jul 31, 2018 · 4 revisions

Policy mixer

(for telemetry, use istio-mixer-type=telemetry in the commands below)

set logging levels via ctrlz

port-forward to ctrlz

kubectl -n istio-system port-forward $(kubectl -n istio-system get po -l istio-mixer-type=policy -o 'jsonpath={.items[0].metadata.name}') 9876

browse to ctrlz console and set logging levels

(alternatively, one could change the mixer args in the config to include a line like --log_output_level=adapters:debug)

viewing logs

kubectl -n istio-system log $(kubectl -n istio-system get po -l istio-mixer-type=policy -o 'jsonpath={.items[0].metadata.name}') mixer

note: add -f to follow logs

viewing metrics

port-forward to control port

kubectl -n istio-system port-forward $(kubectl -n istio-system get po -l istio-mixer-type=policy -o 'jsonpath={.items[0].metadata.name}') 9093

dump metrics

curl localhost:9093/metrics