INFINI console部署与使用

67 阅读1分钟

版本控制:(C、A、M、D:创建、增加、修订、删除)

版本号变更日志变更类型(C/A/M/D)修改人摘要备注
1.02024-12-25Cxxx



一、简介

文档:

github.com/infinilabs/…




二、部署(单点)

在主机 172.21.240.67/data/iniconsole/infini-console 上部署了 infini-console

# 这里指定安装目录为  ~/infini-console
curl -sSL http://get.infini.sh | bash -s -- -p console -d ~/infini-console

#执行启动命令
cd  ~/infini-console  && ./console-mac-amd64

执行脚本

访问:

http://172.21.240.67:9000




三、架构




四、功能测试

  1. 接管

  1. 集群概览

  1. 监控规则

  1. 告警

  1. 告警渠道

  1. 集群管理

  1. 集群index管理

  1. 集群别名管理

  1. 平台概览

  1. 监控报表

  1. 集群动态

  1. 审计日志

  1. 开发模式

  1. 数据探索




五、元数据管理

  1. 元数据的所在的index

元数据index的名字   .infini_metrics-00001

2. ## 元数据index的template

# 原始template,为.infini_metrics-rollover, 保留30天
.infini_metrics-rollover
{
    "order" : 100000,
    "index_patterns" : [
      ".infini_metrics*"
    ],
    "settings" : {
      "index" : {
        "format" : "7",
        "lifecycle" : {
          "name" : "ilm_.infini_metrics-30days-retention",
          "rollover_alias" : ".infini_metrics"
        },
        "codec" : "best_compression",
        "mapping" : {
          "coerce" : "false",
          "ignore_malformed" : "true"
        },
        "number_of_shards" : "1",
        "translog" : {
          "durability" : "async"
        }
      }
    },
    "mappings" : {
      "dynamic_templates" : [
        {
          "strings" : {
            "mapping" : {
              "ignore_above" : 256,
              "type" : "keyword"
            },
            "match_mapping_type" : "string"
          }
        }
      ]
    },
    "aliases" : { }
  }
}

修改为保留3天

PUT _template/.infini_metrics-rollover
{
    "order" : 100000,
    "index_patterns" : [
      ".infini_metrics*"
    ],
    "settings" : {
      "index" : {
        "format" : "7",
        "lifecycle" : {
          "name" : "ilm_.infini_metrics-3days-retention",
          "rollover_alias" : ".infini_metrics"
        },
        "codec" : "best_compression",
        "mapping" : {
          "coerce" : "false",
          "ignore_malformed" : "true"
        },
        "number_of_shards" : "1",
        "translog" : {
          "durability" : "async"
        }
      }
    },
    "mappings" : {
      "dynamic_templates" : [
        {
          "strings" : {
            "mapping" : {
              "ignore_above" : 256,
              "type" : "keyword"
            },
            "match_mapping_type" : "string"
          }
        }
      ]
    },
    "aliases" : { }
  }
}
  1. 元数据index的生存周期管理