nri-statsd

by Helm

Helm chartv1.1.0App 2.0.3

A Helm chart to deploy the New Relic Statsd integration

About this chart

New Relic's StatsD Integration

Chart Details

This chart will deploy the New Relic's StatsD Integration. Keep in mind that due to limitations in the nri-statsd / gostatsd implementation, the insights API key will be stored as plain text within the gostatsd configmap.

Configuration

ParameterDescriptionDefault
global.cluster - clusterThe cluster name for the Kubernetes cluster.
global.insightsKey - insightsKeyThe New Relic Inights API Key.
accountIdThe New Relic account ID.
flushTypeThe type of metric being reported. (metrics, insights, infra)metrics
statsdPortThe port statsd pods and the service will listen on.8125
transportGoStatsD New Relic transport type.default
insightsDomainThe New Relic insights domain.collector.newrelic.com
metricsDomainThe New Relic metrics domain.metric-api.newrelic.com
metricTags.*Additional tags to add to all collected metrics.{}
additionalConfig.*Additional GoStatsD configuration. Define config parameters as additionalConfig.key: value. The provided values are formatted directly into the GoStatsD configmap.See values.yaml
disabledSubMetrics.*Additional GoStatsD configuration. Define config parameters as disabledSubMetrics.key: value. The provided values are formatted directly into the GoStatsD configmap.See values.yaml
additionalNewRelicConfig.*Additional GoStatsD New Relic specific configuration. Define config parameters as additionalNewRelicConfig.key: value. The provided values are formatted directly into the GoStatsD configmap.{}
nameOverrideThe name that should be used for the deployment.
image.repositoryThe prometheus openmetrics integration image name.newrelic/nri-statsd
image.tagThe prometheus openmetrics integration image tag.2.2.0
image.pullSecretsImage pull secrets.nil
replicaCountThe number of replicas in the deployment.1
resourcesA yaml defining the resources for the events-router container.{}
daemonset.createIf true, StatsD will be deployed as a daemonset instead of a deploymentfalse
daemonset.annotationsThe annotations to add to the daemonset if daemonset.create is set to true.{}.
serviceAccount.createIf true, a service account would be created and assigned to the deploymenttrue
serviceAccount.nameThe service account to assign to the deployment. If serviceAccount.create is true then this name will be used when creating the service account
serviceAccount.annotationsThe annotations to add to the service account if serviceAccount.create is set to true.
priorityClassNameScheduling priority of the podnil
nodeSelectorNode label to use for scheduling{}
tolerationsList of node taints to tolerate (requires Kubernetes >= 1.6)[]
affinityNode affinity to use for scheduling{}
global.nrStaging - nrStagingSend data to staging (requires a staging license key)false

Example

Make sure you have added the New Relic chart repository.

To install this chart, run the following command:

helm install newrelic/nri-statsd \
--set insightsKey=<new_relic_insights_api_key> \
--set cluster=my-k8s-cluster

Deploy nri-statsd with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nri-statsd on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnri-statsd is pinned at v1.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply