티스토리 뷰

공부

[datadog] install & yarn

승가비 2023. 6. 17. 09:19
728x90
DD_AGENT_MAJOR_VERSION=7 
DD_API_KEY=1234 
DD_SITE=datadoghq.com 

bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/datadog-agent/master/cmd/agent/install_script.sh)"
HOSTNAME=$(hostname)

YARN_CONF=/etc/datadog-agent/conf.d/yarn.d/conf.yaml
sudo cp ${YARN_CONF}.example ${YARN_CONF}

RESOURCEMANAGER_URI=http:\\/\\/${HOSTNAME}:8088
sudo sed -i "s/# resourcemanager_uri: http:\/\/localhost:8088/resourcemanager_uri: ${RESOURCEMANAGER_URI}/g" ${YARN_CONF}

sudo sed -i "s/# collect_apps_states_list:/collect_apps_states_list:/g" ${YARN_CONF}
sudo sed -i "s/#   - FINISHED/  - FINISHED/g" ${YARN_CONF}
sudo sed -i "s/#   - FAILED/  - FAILED/g" ${YARN_CONF}
sudo sed -i "s/#   - KILLED/  - KILLED/g" ${YARN_CONF}

sudo service datadog-agent restart

sudo -u dd-agent -- datadog-agent check yarn
sudo service datadog-agent restart

sudo -u dd-agent -- datadog-agent check yarn​

https://docs.datadoghq.com/agent/basic_agent_usage/amazonlinux/?tab=agentv6v7 

 

Basic Agent Usage for Amazon Linux

Datadog, the leading service for cloud-scale monitoring.

docs.datadoghq.com

https://github.com/DataDog/integrations-core/tree/master/yarn

 

GitHub - DataDog/integrations-core: Core integrations of the Datadog Agent

Core integrations of the Datadog Agent. Contribute to DataDog/integrations-core development by creating an account on GitHub.

github.com

 

 

728x90
댓글