Skip to content

Latest commit

 

History

History
98 lines (75 loc) · 1.82 KB

README.md

File metadata and controls

98 lines (75 loc) · 1.82 KB

Prometheus: New Relic Exporter

CircleCI

Maintainer: Nick Schuch

Prometheus exporter for a single New Relic application.

Exposes the following metrics:

  • Response Time
  • Throughput
  • Error Rate
  • Apdex Target
  • Apdex Score
  • Host Count
  • Instance Count

Usage

CLI

newrelic-exporter --application="My Application" \
                  --api-key="xxxxxxxxxxxxxxxxx"

Kubernetes

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: amaysim-newrelic-exporter
  namespace: kube-system
spec:
  replicas: 1
  template:
    metadata:
      annotations:
        prometheus.io/port: "9000"
        prometheus.io/scrape: "true"
      labels:
        app: amaysim-newrelic-exporter
        task: monitoring
    spec:
      containers:
      - name: exporter
        image: previousnext/newrelic-exporter:0.0.2
        imagePullPolicy: Always
        resources:
          limits:
            cpu: 5m
            memory: 25Mi
          requests:
            cpu: 5m
            memory: 25Mi
        env:
          - name: NEW_RELIC_APPLICATION 
            value: "My Application"
          - name: NEW_RELIC_API_KEY
            value: "xxxxxxxxxxxxxxxxx"

Resources

Development

Tools

Workflow

(While in the workspace directory)

Installing a new dependency

gb vendor fetch github.com/foo/bar

Running quality checks

make lint test

Building binaries

make build