Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

New Relic Servers (add) #602

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions templates/newrelicservers/0/docker-compose.yml.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
newrelic-servers:
environment:
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY}
{{- if (.Values.FORWARD_PROXY)}}
FORWARD_PROXY: ${FORWARD_PROXY}
{{- end}}
labels:
io.rancher.scheduler.global: 'true'
io.rancher.container.pull_image: always
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need to pull image always.

-    io.rancher.container.pull_image: always

io.rancher.scheduler.affinity:host_label_ne: ${HOST_EXCLUDE_LABEL}
tty: true
image: uzyexe/newrelic:2.3.0.132
volumes:
- /dev:/dev
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
stdin_open: true
net: host
28 changes: 28 additions & 0 deletions templates/newrelicservers/0/rancher-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.catalog:
name: "New Relic"
version: "2.3.0.132"
description: "Performance management solution enabling developers to diagnose and fix application performance problems in real time"
questions:
- variable: "NEW_RELIC_LICENSE_KEY"
label: "New Relic license key"
description: "Specify your New Relic license key. You can get it by clicking on 'Add more' on the servers view of newrelic."
type: "string"
default: ""
required: true
- variable: "VERSION"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERSION variable is not used anywhere.

label: "New Relic version"
description: "Specify a version of the newrelic container to pull (default will pull latest stable version)."
type: "string"
default: "latest"
required: true
- variable: "HOST_EXCLUDE_LABEL"
label: "Host exclude label"
description: "Specify a host label here that can be used to exclude deployment of the newrelic container on any given host. Eg: newrelic.exclude_newrelic=true (you could then add the label 'newrelic.exclude_newrelic=true' to any host to exclude newrelic from that host)."
type: "string"
default: "newrelic.exclude_newrelic=true"
required: true
- variable: "FORWARD_PROXY"
label: "Forward Proxy"
description: "Optional, a forward proxy to use (in format, user:password@hostname:port)."
type: "string"
required: false
1 change: 1 addition & 0 deletions templates/newrelicservers/catalogIcon-newrelic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions templates/newrelicservers/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: New Relic Servers
description: |
New Relic Servers for Linux allows you to view and analyze critical system metrics, including CPU usage, physical memory, network activity, processes, and disk I/O utilization and capacity.
version: 2.3.0.132
category: Monitoring