二进制部署ES集群
1. 准备文件 # 1. 下载、解压文件 wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-linux-x86_64.tar.gz tar -zxvf elasticsearch-7.6.2-linux-x86_64.tar.gz mv elasticsearch-7.6.2 /usr/...
1. 准备文件 # 1. 下载、解压文件 wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-linux-x86_64.tar.gz tar -zxvf elasticsearch-7.6.2-linux-x86_64.tar.gz mv elasticsearch-7.6.2 /usr/...
es 接口调用 查看索引: curl -u ${user_name}:${user_passwd} -s "http://127.0.0.1:9200/_cat/indices?v" -u=--user #删除索引(以及对应的数据) curl -u ${user_name}:${user_passwd} -X DELETE "127.0.0.1:9200/k8s-prod-logs-20...
申请es用户 https://register.elastic.co/ 下载许可证 接口更新许可证 # 请求的json字符串就是下载的证书 POST /_license/start_basic?acknowledge=true { "licenses": [ { "uid":"1fd51ab7-777b-4d94-99c3-786ec15223e7...
为什么使用pushgateway 1. Prometheus 采用pull模式,可能由于不在一个子网或者防火墙原因,导致 Prometheus 无法直接拉取各个 target 数据 2. 可以单独运行在任何节点上,并不一定要运行在被监控的客户端 docker-compose部署 version: '3.8' services: pushgateway: image: pro...
方法一 添加步骤 1. 在对应的服务器启动一个服务: node-exporter: 172.17.3.15:9100 2. 在普罗米修斯的配置文件中加入新加服务器的ip:port # vim prometheus.yml scrape_configs: - job_name: bin-k8s-node02 static_configs: - targets: [...
docker-compose部署 version: '3.8' services: prometheus: image: prom/prometheus container_name: prometheus hostname: prometheus restart: always volumes: ...
docker-compose.yml version: "3" services: logstash-k8s: hostname: logstash-k8s image: logstash:7.6.1 restart: always volumes: - /etc/localtime:/etc/localtime - /opt/l...
# 按终端大小打印字符 function printLine() { # 进行判断 if [ ! $1 ]; then # 没有参数则直接输出 - outword='-' else # 将输入的参数1 赋值给outword outword=$1 fi shellwidth=`s...
content阶段流程顺序: concat -> random_index -> index -> auto_index -> static index模块: 功能: 指定/访问时返回index文件的内容 模块: ngx_http_index_module 指令: index file ...; 默认: index index.html; 可以出现在: http...
1. 环境参数 操作系统: Centos 7.5 64位 ES: 6.3.2 kibana: 6.3.2 logstash: 6.3.2 jdk: 1.8 ES用户: elk 节点: 192.168.11.132 master + node-01 192.168.11.133 node-02 2.下载 cd /opt ES: wge...