-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up New Relic service #1007
Comments
@JeanMarie-TTS How do we want to handle the New Relic Service? Manifest - is one option that we can use. Python Agent - Looks like another. If we use the agent, we would likely need to have the following:
Do you have some insight to this methodology for installing the New Relic Service? I believe we can mock this by having a new relic account, and generating our own License Key, but the problem I am unsure about is if GSA has a New Relic provisioning service where we can request access to the dashboard, so that multiple people can view the metrics. |
The manifest option is only for when you're using the PHP buildpack. The Python integration is about like you described. I'm working on getting the license key sorted out... TTS has group licensing and there's an internal process that I'm pursuing to get the FAC account set up. |
Gotcha, okay, so we will just leave it in backlog and plan for it when the license key and account is setup. |
For Step 4 (actually 3), we provide the license key to the app via its environment using a user-provided service. For Step 3 (actually 4), we generate the config file before the start command is invoked by calling the utility in the .profile file. |
Status of preliminary testing with the python agent for new relic: NOTE: this was done locally, on the docker containers, to ensure data was infact being submitted, and understand the workflow for the agent installation. References: pypi new relic & NR Docs
Testing:
|
Now blocked on New Relic license availability |
|
@JeanMarie-TTS
Moving import newrelic.agent
newrelic.agent.initialize('./newrelic.ini') into config/settings.py seems to work fine locally
As of the moment, it is not possible unless you want to be added to my account (which I am not sure how to do) or, the steps above here can be used to implement this into your local work environment. When you do
New relic has its own built in logging functionality, and I am attempting to get rsyslog working as well in a local dockerized instance, but is having some issues. While this did work, on a functional level, it did not successfully create the Network > syslog reporting on the dashboard |
I think I managed to get syslog implemented. So I was messing around with some things, and I think this is effectively what this page was doing. So with the rsyslog, I threw it all into the dockerfile and attempted to atleast see the functionality of it. The last lines were done with this I am unsure if that is what we are going for, but from added the following to ENTRYPOINT ["newrelic-admin", "run-program"]
RUN apt-get -y install rsyslog-gnutls ca-certificates
COPY newrelic.conf /etc/rsyslog.d/
RUN sed -i '/imklog/s/^/#/' /etc/rsyslog.conf |
Per @JeanMarie-TTS I have uploaded necessary files here I was unable to get In order to use the dashboard locally, navigate here, create an account, grab your License Key, and replace it as necessary. Moving |
@asteel-gsa and I paired on setting up the cloud.gov side of things in #1077 and that should be good to go. Once that merges the agent will be shipping telemetry to NR from all of our spaces, which should be enough to have us ready for assessment. We may need additional PRs to set things up for local development, or to customize settings applied per-space. |
We've set up the agent but the license key we have isn't working. In the logs we see:
We've run the troubleshooting steps that New Relic has listed in their support docs, but even after verifying that our key is accurate, we see the following:
I've opened a support case with New Relic. |
With this PR the service 'gsa-fac' is now visible in new relic |
No description provided.
The text was updated successfully, but these errors were encountered: