跳到主要内容
版本:3.7.0

Prometheus Exporter

收集 Exporter 对外暴露的指标,获取 Prometheus 监控平台的指标到 ONE 平台。

前置条件

  • 在环境中已经部署了可用的 SmartGate 探针。
  • Exporter 服务与ONE平台能够进行网络通信。

开始使用

ONE 平台配置

  • 进入数据集成 -> 数据接入页面,找到 Exporter 数据接入卡片,点击开始集成。

  • 添加被采集的组件配置并指定采集的SmartGate,配置信息参考Prometheus官方文档

    scrape_configs:
    - job_name: 'my_static_job-one'
    scrape_interval: 30s
    scrape_timeout: 10s
    metrics_path: '/metrics'
    scheme: 'http'
    static_configs:
    - targets: ['localhost:9090', 'localhost:8080']
    labels:
    environment: 'development'
    group: 'static'
    br_middleware_component: 'componentOne'
    - job_name: 'my_static_job-two'
    scrape_interval: 40s
    scrape_timeout: 20s
    metrics_path: '/metrics2'
    scheme: 'https'
    static_configs:
    - targets: ['localhost:9091', 'localhost:8081']
    labels:
    environment: 'production'
    group: 'dynamic'
    br_middleware_component: 'componentTwo'
  • 保存任务配置。

  • 任务创建完成后,默认是未启用状态,需要手动开启进行数据处理。

配置接入流

  • ONE平台提供开箱即用的默认数据处理流。
  • 也可以根据所需监控场景的需要,手动配置数据流。

验证

  • 观测洞察 -> 数据模型 ->指标 下查看对应的指标注册数据。
  • 观测洞察 -> 数据探索 下查看对应指标数据。