Skip to content

Instantly share code, notes, and snippets.

@jamesbeedy
Last active March 20, 2017 17:49
Show Gist options
  • Select an option

  • Save jamesbeedy/bf28aed5c849828f2fc4e53e84479023 to your computer and use it in GitHub Desktop.

Select an option

Save jamesbeedy/bf28aed5c849828f2fc4e53e84479023 to your computer and use it in GitHub Desktop.
newrelic-plugin-agent template for elasticsearch integration charm
%YAML 1.2
---
Application:
license_key: {{license_key}}
wake_interval: 60
elasticsearch:
name: {{cluster_name}}
host: localhost
port: 9200
scheme: http
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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment