Code Monkey home page Code Monkey logo

provider-newrelic's Introduction

provider-newrelic

provider-newrelic is a Crossplane Provider that is meant to be used for infrastructure-as-code for New Relic.

See the examples directory for advanced usage.

This provider supports the following:

apiVersion: provider-newrelic.crossplane.io/v1alpha1
kind: ProviderConfig
metadata:
  name: newrelic-provider
spec:
  account_id: "your_nr_account_id"
  region: "US | EU" # Optional
  credentials:
    source: Secret
    secretRef:
      namespace: crossplane-system
      name: newrelic-creds
      key: key
  • Secret which contains a new relic user token
---
apiVersion: v1
data:
  key: NRAK-YOUR_NEW_RELIC_TOKEN_BASE64
kind: Secret
metadata:
  name: newrelic-creds
  namespace: crossplane-system
type: Opaque

Additional Note

Sometimes an AlertsPolicy may be deleted, or regenerated, giving it a new ID.
This can cause issues for any NrqlAlertCondition with a reference to that object resulting in errors such as "error": "Policy with ID 1234567 not found" To fix you can simply remove the policyId on the NrqlAlertCondition to to cause the reference to re-resolve. (There is no harm in doing this, it will just cause the provider to lookup the new ID.)

kubectl -n crossplane-system patch NrqlAlertCondition my-condition-name --type json  --patch='[ { "op": "remove", "path": "/spec/forProvider/policyId" } ]'

Developing

Run against a Kubernetes cluster:

make run

Build, push, and install:

make all

Build image:

make image

Push image:

make push

Build binary:

make build

provider-newrelic's People

Contributors

dependabot[bot] avatar haarchri avatar hasheddan avatar smcavallo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

provider-newrelic's Issues

Support for NewRelic workflow

What problem are you facing?

NewRelic has changed how alerting work by the introduction of NewRelic workflows. Any plans to support this "and needed sub-components" soon?

How could Crossplane help solve your problem?

Supporting the creation of a workflow and other needed sub-components

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.