Metrics and Events
By default, the agent gathers Kubernetes cluster and container metrics as well as Kubernetes events.
To change this, you can simply modify the environment aware variables toggle these items in a ConfigMap. See the section "Modify ConfigMap" to see step by step instructions.
- Turning off Cluster Metrics
SCALYR_K8S_EVENTS_DISABLE: "true"
-
Turning off Container Metric
SCALYR_REPORT_CONTAINER_METRICS: "false"
SCALYR_REPORT_K8S_METRICS : "false" -
Turning off Events
SCALYR_K8S_EVENTS_DISABLE: "true"
-
Other Environment Aware Variables
Modify ConfigMap
View ConfigMap
kubectl get configmap scalyr-config -n scalyr -o yaml
Export to filekubectl get configmap scalyr-config -n scalyr -o yaml > /tmp/scalyr-agent-2-configmap.yaml
or
Download a fresh ConfgMapEdit
sudo vim /tmp/scalyr-agent-2-configmap.yaml
Save
kubectl create configmap scalyr-config --from-file=/tmp/scalyr-agent-2-configmap.yaml -n scalyr -o yaml --dry-run=client | kubectl apply -f -
Redeploy agent
Comments
0 comments
Please sign in to leave a comment.