setting logs_enabled: true during install?
まだ誰も着手していません。
評価
調査の方向性
まず、報告で参照されているインストールスクリプトを読み、/etc/datadog-agent/datadog.yaml の生成時に DD_LOGS_ENABLED がどのように処理されるかを追跡します。変数を設定した状態でクリーンインストールを再現し、その後、生成された設定に logs_enabled: true が含まれていることを確認します。ドキュメントに記載された環境変数がインストール中に機能すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I've been maintaining an ansible install script and have been calling it like this:
DD_API_KEY={{ DD_API_KEY }} \
DD_ENV={{ env }} \
DD_HOSTNAME={{ sftp_hostname }} \
DD_LOGS_ENABLED=true \
DD_REMOTE_UPDATES=true \
DD_SITE="datadoghq.com" \
bash -c "$(curl -L https://install.datadoghq.com/scripts/install_script_agent7.sh)"
I expect that setting the DD_LOGS_ENABLED parameter to translate into the logs_enabled key in the conf file during a fresh install, according to this comment in the datadog.yaml.
## Log collection Configuration ##
##################################
## @param logs_enabled - boolean - optional - default: false
## @env DD_LOGS_ENABLED - boolean - optional - default: false
## Enable Datadog Agent log collection by setting logs_enabled to true.
#
# logs_enabled: false
However, during a clean install, I am still seeing logs_enabled set to false despite including the DD_LOGS_ENABLED variable.
Attached the relevant install logs:
Installed:
datadog-agent-1:7.80.2-1.aarch64
Complete!
* Adding your API key to the Datadog Agent configuration: /etc/datadog-agent/datadog.yaml
* Setting SITE in the Datadog Agent configuration: /etc/datadog-agent/datadog.yaml
* Adding your HOSTNAME to the Datadog Agent configuration: /etc/datadog-agent/datadog.yaml
* Adding your DD_ENV to the Datadog Agent configuration: /etc/datadog-agent/datadog.yaml
* Setting Datadog Agent configuration to use Remote Updates: /etc/datadog-agent/datadog.yaml
/usr/bin/systemctl
* Starting the Datadog Agent...
Your Datadog Agent is running and functioning properly.
It will continue to run in the background and submit metrics to Datadog.
If you ever want to stop the Datadog Agent, run:
systemctl stop datadog-agent
Is there a way to set logs_enabled: true during install?
- 主要言語
- Shell
- スター
- 17
- フォーク
- 14
- 平均マージ
- 2日 22時間
- マージ済み PR(30日)
- 7
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DataDog/agent-linux-install-script のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
DataDog/agent-linux-install-script#354 · コメント 1 件 · リアクション 1 件 ·
DataDog/agent-linux-install-script の issue をすべて見る
似ている issue
-
Bob Shell support オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
openSUSE/python-rpm-macros#219 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
YunoHost-Apps/adguardhome_ynh#258 ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repair オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
ValveSoftware/SteamOS#2829 ·