new relic app name
I have deployed novu to azure kubernetes cluster but the api pod is stuck in a restart loop and the issue is its asking me to set the NEW_RELIC_APP_NAME but I don't know what this is or where to set it.
26 Replies
i get this error New Relic for Node.js was unable to bootstrap itself due to an error:
Error: New Relic requires that you name this application!
Set app_name in your newrelic.js or newrelic.cjs file or set environment variable
NEW_RELIC_APP_NAME. Not starting!
I have set the name in .env.production and .env.development and also set enabled to false in both
Hey @Evkhim !
@Pawan Jain can you help us here?
Hi @Evkhim
Can you try with this value
[DEV] - api
@jainpawan21 hello where do i set this value?
This value should be used in api service env file
service.yaml?
@jainpawan21 these are all of the occurrences of NEW_RELIC_APP_NAME
@zacclifton could you please help us here?
As far as I am aware, that this warning is just the dependency saying its does not have the key.
Is this effecting something in your deployment?
this is the logs from the api pod
@Evkhim, you just advanced to level 1!
The error that is preventing startup is the missing environment variables for the object storage. The new relic one is just a warning.
is there a global setting I can use to disable s3 and aws?
Unfortunately, no. Object storage is required by Novu to store notfication attachements. You can alternatively use gcp storeage or azure blob
ok so I can remove all references to s3 and aws and replace with STORAGE_SERVICE: Name of the storage service to use, ‘AZURE’ Azure Blob.
AZURE_CONTAINER_NAME: The name of the container in your Azure Storage account that you wish to use for your blob storage.
AZURE_ACCOUNT_NAME: The name of your Azure Storage account. This is used to form the URL at which your blob storage is accessible.
AZURE_ACCOUNT_KEY: The access key for your Azure Storage account. This is used to authenticate requests made against your blob storage.
AZURE_HOST_NAME: The host name of your Azure Storage account . This is used to form the URL at which your blob storage is accessible. Ref.
Yes and STORAGE_SERVICE: Name of the storage service to use, ‘AZURE’ Azure Blob.
https://docs.novu.co/self-hosting-novu/object-storage#azure-blob-storage-configuration
i am still getting the same error and i only have these occurrences of AWS and none for S3
Are you using localstack or minio in your cluster?
sorry this is all new to me I am deploying to an azure kubernetes service using the helm install command
What is your plan for object storage for your novu deployment?
There is https://artifacthub.io/packages/helm/bitnami/minio that you can run in the cluster or you can just leverage azure blob storage
blob storage
is there a guide available for deploying novu to azure?
We do not have a guide for the community on how to deploy to azure at this time
@Evkhim if it's relevant to you I am happy to jump on a call and learn more about this, not sure if I can help, but happy to try
that is a shame it may not be the product for us then thanks for the help
I am willing to accept any help I can as our team has Novu as there number 1 choice having used it locally as part of our new stack POC
@Evkhim, you just advanced to level 2!
Hi @Evkhim please feel free to schedule a call here: https://calendly.com/dima-grossman/30min as mentioned previously we don't have an official azure guide, but I can help with the initial setup. The only main different should be is to pass the azure storage env variables instead of AWS ones. We also have an azure terraform setup for our ee license deployment, so might be able to take some assets from there if applicable to what you are trying to achieve.