当前位置:网站首页>Datakit agent realizes unified data aggregation in LAN

Datakit agent realizes unified data aggregation in LAN

2022-06-24 21:52:00 InfoQ

summary


For security reasons within the enterprise , Network management and control are usually carried out , For example, set up a firewall 、 Security group isolation 、 Even division  DMZ  Area . In an environment without a public network , How to summarize and process this part of data in a unified way , And send it to the observation cloud platform ?Datakit  Provides proxy functions .

precondition

  • You need to create a 【  Observation cloud account  】https://auth.guance.com
  • install  DataKit 【DataKit  Installation document  】https://docs.guance.com/datakit/datakit-install/

Agent function

1.  Open agent

Log in to the proxy host  ( Access to the public network ), Turn on  proxy  plug-in unit

cd /usr/local/datakit/conf.d/proxycp proxy.conf.sample proxy.conf
The configuration file  proxy.conf  The contents are as follows  ( Default listening  9530  port )
[[inputs.proxy]] ## default bind ip address bind = "0.0.0.0" ## default bind port port = 9530
restart  Datakit
systemctl restart datakit

2.  Offline installation

Log in to the host in the LAN  ( No public network ), Execute the installation command , And modify the parameters
  • proxy_ip, Proxy host intranet  ip
  • token, Of the workspace  token
export HTTPS_PROXY=http://<proxy_ip>:9530; DK_DATAWAY=https://openway.guance.com?token=<token> bash -c &quot;$(curl -L https://static.guance.com/datakit/install.sh)&quot;
working space  token  You can manage  -  Basic settings acquisition

null
原网站

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241841165223.html