ini New Relic Postfix插件示例配置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini New Relic Postfix插件示例配置相关的知识,希望对你有一定的参考价值。

%YAML 1.2
---
Application:
  license_key: YOUR_NEWRELIC_LICENSE_KEY
  wake_interval: 60
  #newrelic_api_timeout: 10
  #proxy: http://localhost:8080

  postfix: {}

Daemon:
  user: root
  pidfile: /var/run/newrelic/newrelic-plugin-agent.pid

Logging:
  formatters:
    verbose:
      format: '%(levelname) -10s %(asctime)s %(process)-6d %(processName) -15s %(threadName)-10s %(name) -45s %(funcName) -25s L%(lineno)-6d: %(message)s'
  handlers:
    file:
      class : logging.handlers.RotatingFileHandler
      formatter: verbose
      filename: /var/log/newrelic/newrelic-plugin-agent.log
      maxBytes: 10485760
      backupCount: 3
  loggers:
    newrelic_plugin_agent:
      level: INFO
      propagate: True
      handlers: [console, file]
    requests:
      level: ERROR
      propagate: True
      handlers: [console, file]

以上是关于ini New Relic Postfix插件示例配置的主要内容,如果未能解决你的问题,请参考以下文章

如何配置 New Relic 插件以显示速率

新的 Relic 平台插件和 RVM

new Relic - 如何传递自定义字符串

New Relic性能监控概览

如何使用 New Relic 跟踪 Parse Server 的类名?

APM系列-国外新兴厂商New Relic vs. AppDynamics