使用 Redis Cloud 的 New Relic

要从数据库和其他集群组件收集、查看和监控指标数据,您可以使用 Redis New Relic 集成将 New Relic 连接到 Redis Cloud 集群。

New Relic 被各种规模和各行各业的组织用于 支持数字化转型和云迁移,推动开发、运营、安全和 业务团队,加快应用程序上市时间,缩短解决问题的时间,保护应用程序 基础架构,了解用户行为,并跟踪关键业务指标。

Redis Cloud 的 New Relic 集成使用 Prometheus 远程写入功能来连接 Prometheus 数据 来源到 New Relic。此集成使 Redis Cloud 用户能够将指标导出到 New Relic 进行分析, 并包括 Redis 设计的控制面板,用于监控 Redis Cloud 集群。

这种集成使:

  • 收集和显示 Admin Console 中不可用的量度
  • 为节点或集群事件设置自动警报
  • 将这些指标与来自其他系统的数据一起显示

为 Redis Cloud 安装 Redis 的 New Relic 集成

适用于 Redis 的 New Relic 集成基于 Prometheus 数据源的功能。Prometheus 可以将指标转发到 另一个目标使用远程写入。这将需要在与 Redis Cloud 部署。

如果您尚未在 Redis Cloud 集群和托管计算机的网络之间创建 VPC Prometheus lives 你应该现在就这样做。请访问 VPC 对等连接,并按照所选云平台的说明进行作。

最后,必须将 Prometheus 安装配置为从 Redis Cloud 中提取指标并将其写入 New Relic。那里 分为两个部分,首先是从 Redis 拉取,第二个是写入 New Relic。

从 Redis Cloud 获取指标:

  - job_name: "redis-cloud"
    scrape_interval: 30s
    scrape_timeout: 30s
    metrics_path: /
    scheme: https
    tls_config:
      insecure_skip_verify: true
    static_configs:
      # The default Redis Cloud Prometheus port is 8070. 
      # Replace REDIS_CLOUD_HOST with your cluster's hostname.
      - targets: ["REDIS_CLOUD_HOST:8070"]

Write them to New Relic:

# Remote write configuration for New Relic.
# - Replace REDIS_CLOUD_SERVICE NAME with any name you'd like to use to refer to this data source.
# - Replace NEW_RELIC_BEARER_TOKEN with the token you generated on the New Relic Administration -> API Keys page.
remote_write:
- url: https://metric-api.newrelic.com/prometheus/v1/write?prometheus_server=REDIS_CLOUD_SERVICE_NAME
  authorization:
    credentials: NEW_RELIC_BEARER_TOKEN

View metrics

The Redis Cloud Integration for New Relic contains pre-defined dashboards to aid in monitoring your Redis Enterprise deployment.

The following dashboards are currently available:

  • Cluster: top-level statistics indicating the general health of the cluster
  • Database: performance metrics at the database level
  • Node
  • Shard: low-level details of an individual shard
  • Active-Active: replication and performance for geo-replicated clusters
  • Proxy: network and command information regarding the proxy
  • Proxy Threads: processor usage information regarding the proxy's component threads

Monitor metrics

New Relic dashboards can be filtered using the text area. For example, when viewing a cluster dashboard it is possible to filter the display to show data for only one cluster by typing 'cluster' in the text area and waiting for the system to retrieve the relevant data before choosing one of the options in the 'cluster' section.

Certain types of data do not know the name of the database from which they were drawn. The dashboard should have a list of database names and ids; use the id value when filtering input to the dashboard.

RATE THIS PAGE
Back to top ↑