目标是引入敏捷度量指标的介绍篇 (1)

一位选项:IT技能为零的项目管理人员受到书籍的启发,开始记录着追求IT产品开发的度量收集与运营过程。
暂时先行动起来就好,运营则是边进行边考虑的方针。
(即使后来会遇到困难,也愿意接受!)

 

0. 环境

    • 端末:DX-T5 (Thirdwave Corporation)

CPU:i5-1135G7
RAM:16.0 GB

OS:Microsoft Windows 11 Pro
WSL : Ubuntu 22.04.2 LTS \n \l

Elasticsearch 8.7
Kibana 8.7

1. 引入WSL

请在 Windows 终端上执行以下命令。

wsl --update
wsl --install -d Ubuntu

2. 升级Ubuntu环境

请在WSL 的终端上执行以下命令。

sudo apt update
sudo apt full-upgrade -y

创建 wsl.conf 作为 WSL2 对 systemd 的支持

sudo vim /etc/wsl.conf

附加内容如下。

[boot]
systemd=true

对于上述设置,重新启动 WSL 在 Windows 终端中。

wsl --shutdown
Ubuntu

3. 引入 ElasticSearch

请在终端上按顺序执行以下命令。

3.1. 安装 ElasticSearch

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
sudo apt install apt-transport-https
echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
sudo apt update
sudo apt install elasticsearch 

在安装完成时,会出现以下消息,请记住超级用户的密码。

--------------------------- Security autoconfiguration information ------------------------------

Authentication and authorization are enabled.
TLS for the transport and HTTP layers is enabled and configured.

The generated password for the elastic built-in superuser is : <password>

If this node should join an existing cluster, you can reconfigure this with
'/usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token <token-here>'
after creating an enrollment token on your existing cluster.

You can complete the following actions at any time:

Reset the password of the elastic built-in superuser with
'/usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic'.

Generate an enrollment token for Kibana instances with
 '/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana'.

Generate an enrollment token for Elasticsearch nodes with
'/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node'.

-------------------------------------------------------------------------------------------------

3.2. 启动ElasticSearch服务

sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service

确认ElasticSearch是否正常运行

在连接时输入先前保存的密码。

sudo curl --cacert /etc/elasticsearch/certs/http_ca.crt -u elastic https://localhost:9200

执行结果

Enter host password for user 'elastic':
{
  "name" : "DX-T5",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "Wl6FAB7LRP6eCMCVuyrRhw",
  "version" : {
    "number" : "8.7.0",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "09520b59b6bc1057340b55750186466ea715e30e",
    "build_date" : "2023-03-27T16:31:09.816451435Z",
    "build_snapshot" : false,
    "lucene_version" : "9.5.0",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}

引入处理日语的分析器。

cd /usr/share/elasticsearch
sudo bin/elasticsearch-plugin install analysis-kuromoji
sudo systemctl restart elasticsearch

4. 引入 Kibana

4.1. 安装 Kibana

sudo apt install kibana 

4.2. 启动 Kibana 服务

sudo systemctl daemon-reload
sudo systemctl enable kibana.service
sudo systemctl start kibana.service

4.3. 確認 Kibana 是否運作正常

请记下通过以下命令输出的令牌。

/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana

打开浏览器,访问 http://localhost:5601/。
输入保存的令牌,并完成。

今天到此为止。
事实上,并不是通过尝试和错误来按上述漂亮的步骤进行。
因此,计划在验证步骤后修正文章(可能未定结尾)。

请参考以下资料

Web

WSL の基本的なコマンド
Install Elasticsearch with Debian Package
Install Kibana with Debian package

書籍

Elastic Stack実践ガイド[Elasticsearch/Kibana編]
Elastic Stack実践ガイド[Logstash/Beats編]
アジャイルメトリクス

广告
将在 10 秒后关闭
bannerAds