当前位置: 首页 > news >正文

济南网站建设要多少钱建立企业门户网站建设

济南网站建设要多少钱,建立企业门户网站建设,知乎seo优化,wordpress微信 缩略图不显示图片概述 当前 OpenSearch 使用的越来越多, 但是 OpenSearch 生态还不尽完善. 针对如下情况: 监控容器化或运行在 K8s 中的 OpenSearch 我查了下, 官方还没有提供完备的方案. 这里如何监控 K8s 中的 OpenSearch, 包括安装 exporter 插件、采集、展示全环节。 OpenSearch 简介…概述 当前 OpenSearch 使用的越来越多, 但是 OpenSearch 生态还不尽完善. 针对如下情况: 监控容器化或运行在 K8s 中的 OpenSearch 我查了下, 官方还没有提供完备的方案. 这里如何监控 K8s 中的 OpenSearch, 包括安装 exporter 插件、采集、展示全环节。 OpenSearch 简介 OpenSearch 是一款开源的分布式搜索引擎(从 ElasticSearch 特定版本分叉而来)可以执行快速、可扩展的全文搜索、应用程序和基础设施监控、安全和事件信息管理、运营健康跟踪等用例。OpenSearch 具有多种功能和插件可以帮助索引、保护、监控和分析数据。OpenSearch 包含一个演示配置以便您可以快速启动和运行但在生产环境中使用 OpenSearch 之前您必须使用自己的证书、身份验证方法、用户和密码手动配置安全插件。OpenSearch 由 AWS 支持所有组件均可在 GitHub 上获得 Apache 许可证版本 2.0。 Prometheus Exporter Plugin for OpenSearch 简介 Prometheus Exporter 插件用于将 OpenSearch 指标暴露为 Prometheus 格式。插件版本必须与 OpenSearch 版本完全匹配因此需要保持 prometheus-exporter-plugin-for-opensearch 版本与 OpenSearch 版本同步。可以通过在每个要由 Prometheus 抓取的 OpenSearch 节点上安装插件来安装插件。可以通过在 config/opensearch.yml 中配置静态设置和动态设置来配置插件。指标可以直接在 http(s)://opensearch-host:9200/_prometheus/metrics 获得。 ️相关参考资料 本文会使用到 2 个资源: OpenSearchPrometheus Exporter Plugin for OpenSearch 具体实现 两种方案: 自己制作包含 prometheus-exporter 插件的镜像通过 OpenSearch Helm Chart 安装prometheus-exporter 插件 (方案一)制作包含 prometheus-exporter 插件的镜像并使用 Notes: 这里以 opensearch:2.12 版本为例 Dockerfile 内容如下: FROM opensearchproject/opensearch:2.12.0 LABEL maintainercuikaidongfoxmail.com ARG EXPORTER_PLUGIN_URLhttps://github.com/Aiven-Open/prometheus-exporter-plugin-for-opensearch/releases/download/2.12.0.0/prometheus-exporter-2.12.0.0.zip RUN opensearch-plugin install -b ${EXPORTER_PLUGIN_URL} Notes 如果 docker build 过程下载超时, 可以将对应EXPORTER_PLUGIN_URL行替换为相关代理的 URL(这里不详述). 或者, 下载后, 通过 COPY 复制进去后再执行: opensearch-plugin install -b file:///path/to/prometheus-exporter-2.12.0.0.zip 构建并推送镜像: docker build -t xxxxx/opensearch:2.12.0-prometheus-exporter -f ./Dockerfile docker push xxxx/opensearch:2.12.0-prometheus-exporter Notes 您可以通过 CICD Pipeline, 随着 OpenSearch 和 prometheus-exporter-plugin-for-opensearch 的更新, 自动构建新的镜像. 我相信, 随着 OpenSearch 生态的完善, 应该会有已经包含 exporter 的 OpenSearch 镜像. 对于容器化或 K8s 运行的 OpenSearch, 只需要将镜像改为构建后的, 带 prometheus-exporter 的镜像即可. 如: 原来是: image: opensearchproject/opensearch:2.12.0 修改为: image: xxxx/opensearch:2.12.0-prometheus-exporter (方案二)使用 OpenSearch Helm Chart 如果你是在 K8s 中运行 OpenSearch, 也可以考虑使用 OpenSearch 的 Helm Chart, 它包含了安装第三方插件的功能, 具体 values.yaml 如下: ## Enable to add 3rd Party / Custom plugins not offered in the default OpenSearch image. plugins:enabled: trueinstallList:- https://github.com/Aiven-Open/prometheus-exporter-plugin-for-opensearch/releases/download/2.12.0.0/prometheus-exporter-2.12.0.0.zip ️参考文档: OpenSearch Helm Chart 修改 pometheus-exporter 的配置 另外, 可以按需修改prometheus-exporter 的配置, 详细配置说明见: prometheus-exporter-plugin-for-opensearch config 示例配置如下: 在 config/opensearch.yml, 追加如下内容: plugins.security.disabled: true prometheus.indices_filter.selected_indices: log-*,*log,*log*,log*-test prometheus.indices_filter.selected_option: STRICT_EXPAND_OPEN_FORBID_CLOSED 声明 plugins.security.disabled: true 可选项, 允许通过 http 协议访问插件 url. 生产不建议使用. 建议只在快速验证时采用 prometheus.indices_filter.selected_indices 仅供参考. 请按需调整. prometheus.indices_filter.selected_option 使用默认配置. 请阅读细节后按需调整. 修改完配置后, 重启容器正常生效. 验证插件已启用 指标可直接在以下位置获取 http(s)://opensearch-host:9200/_prometheus/metrics 作为示例结果你将得到如下内容 # HELP opensearch_process_mem_total_virtual_bytes Memory used by ES process # TYPE opensearch_process_mem_total_virtual_bytes gauge opensearch_process_mem_total_virtual_bytes{clusterdevelop,nodedevelop01,} 3.626733568E9 # HELP opensearch_indices_indexing_is_throttled_bool Is indexing throttling ? # TYPE opensearch_indices_indexing_is_throttled_bool gauge opensearch_indices_indexing_is_throttled_bool{clusterdevelop,nodedevelop01,} 0.0 # HELP opensearch_jvm_gc_collection_time_seconds Time spent for GC collections # TYPE opensearch_jvm_gc_collection_time_seconds counter opensearch_jvm_gc_collection_time_seconds{clusterdevelop,nodedevelop01,gcold,} 0.0 opensearch_jvm_gc_collection_time_seconds{clusterdevelop,nodedevelop01,gcyoung,} 0.0 # HELP opensearch_indices_requestcache_memory_size_bytes Memory used for request cache # TYPE opensearch_indices_requestcache_memory_size_bytes gauge opensearch_indices_requestcache_memory_size_bytes{clusterdevelop,nodedevelop01,} 0.0 # HELP opensearch_indices_search_open_contexts_number Number of search open contexts # TYPE opensearch_indices_search_open_contexts_number gauge opensearch_indices_search_open_contexts_number{clusterdevelop,nodedevelop01,} 0.0 # HELP opensearch_jvm_mem_nonheap_used_bytes Memory used apart from heap # TYPE opensearch_jvm_mem_nonheap_used_bytes gauge opensearch_jvm_mem_nonheap_used_bytes{clusterdevelop,nodedevelop01,} 5.5302736E7 ... 使用 Prometheus 采集指标 (仅作为参考示例, 请按需调整), 在 Prometheus 的 scrape 下面, 追加如下内容: - job_name: opensearchmetrics_path: /_prometheus/metricsrelabel_configs:- replacement: your-instance-nametarget_label: nodestatic_configs:- targets: [your-host-name:9200] 配置 Prometheus Rules 和 Alerts 这里随便举一个简单例子, 现在使用 OpenSearch 的, 之前应该有完备的 ES 相关的 rules 和 alerts. 略作修改即可. alert: OpenSearchYellowCluster for: 5m annotations:summary: At least one of the clusters is reporting a yellow status.description: {{$labels.cluster}} health status is yellow over the last 5 minutesrunbook_url: labels:severity: warning: expr: |opensearch_cluster_status 1 使用 Grafana 查看 可以使用如下 Grafana Dashboard 进行查看: https://grafana.com/grafana/dashboards/20827-opensearch/ 效果如下: 更多 OpenSearch Dashboard 可以在 https://grafana.com/grafana/dashboards/ 中搜索关键词 OpenSearch. 总结 如何监控容器或 K8s 中的 OpenSearch? 先安装 OpenSearch Prometheus Exporter 插件, 有 2 种办法: 自己制作包含 OpenSearch Prometheus Exporter 插件的镜像使用 OpenSearch Helm Chart 安装 配置 Prometheus scrape config配置 Prometheus Rules 和 Alerts使用 Grafana 查看 以上. 三人行, 必有我师; 知识共享, 天下为公. 本文由东风微鸣技术博客 EWhisper.cn 编写.
http://www.pierceye.com/news/254224/

相关文章:

  • 网站文件目录结构wordpress 短信发送
  • 合肥专业做网站的公司东莞阳光网投诉电话
  • 网站呢建设英雄联盟更新公告最新
  • 做ps图标什么网站最好免费微网站怎么做
  • 网站建设与网络编辑综合实训课程指导手册pdf软件外包
  • 网站开发规划书怎么写wordpress前端会员中心
  • asp.net网站建设实战 pdfWordpress媒体库途径
  • 开家网站设计公司优化游戏性能的软件
  • php企业网站开发pdfdede5.7网站搬家
  • 珠海建设网站的公司哪家好精品wordpress 模板
  • 企业网站建设和实现 论文沧州最新消息今天
  • 连云港做企业网站公司wordpress小工具上下
  • 新房网站建设公司手机制作app需要什么软件
  • 网站备案登记表网站建设及规划
  • 彩票网站建设平台wordpress模板怎么改织梦
  • 商业中心 网站建设怎么创建自己的官网
  • 中国建设银行总行官方网站宁波网站推广渠道
  • 网站备案的网站名称分类信息网址
  • 教育类网站建站jae安装wordpress
  • wordpress自定义站点设计网站广告语
  • 广告型网站怎么做的网络技术学习网站
  • 网站建设公司不赚钱进一步推进网站建设
  • 四川省工程建设协会网站360路由器网站建设
  • 快云服务器怎么做网站360网站收录提交入口大全
  • 网站设计的安全尺寸正规的培训行业网站开发
  • 网站提交了被收录后改怎么做商丘网站制作教程
  • 建网站被封了网站建设网页设计小江
  • 用node做的网站索引网站有哪些
  • 无锡设计网站建设时尚杂志网站设计分析
  • 嘉定区网站建设网站建设怎么谈