Deploy Reporter as DaemonSet
If you are running Tianji inside Kubernetes, you may want to collect each node's
system metrics. The easiest way is to run tianji-reporter as a DaemonSet so it
runs on every node.
- Edit
docker/k8s/reporter-daemonset.yamland replace theTIANJI_SERVER_URLandTIANJI_WORKSPACE_IDvalues with your actual server address and workspace ID. - Apply the manifest:
kubectl apply -f docker/k8s/reporter-daemonset.yaml
Every node will start a tianji-reporter container which reports system
statistics to your Tianji instance. You can check the logs of a specific pod to
ensure it works:
kubectl logs -l app=tianji-reporter -f
Once the pods are running, the Servers page in Tianji will list your Kubernetes nodes just like regular machines.