wevanscfi / grafana-newrelic-apm-datasource Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
As title says, we have multiple applications, but I can't pick one I want to use and display data.
Also would be cool if we could somehow map the server ID to server Name . That way we could create like group and chose which server to display info from. OVERALL AWESOME JOB!!!
Grafana 4 comes with alerting feature, however, this datasource doesn't support it. Please make it work with the alerting feature.
Adding templating would enhance this data source plugin greatly. instead of an applications pick list in the query editor, you should add "Applications" as a templating query to return a list of application names.
I created a couple of NewRelic data sources pointing to different NewRelic App IDs . In the new dashboard I created template variable as on the screen below:
Now, in the graph panels I specified variable $NRApp instead of specific NewRelic data source, so theoretically when I switch between data sources from the template menu I should see data from different apps. Unfortunately it doesn't work for me and all graph panels 'remember' previous APP ID and don't switch to another one.
Is it supported by this datasource?
We found the plugin for New Relic APM. We are looking to create dashboard based on alert/incident generated by New Relic.
Could you please also provide plugin for Alert and incidents or guidance how to write it ourself
Hi
while trying to enable the plugin on Grafan 4.2 windows version
a plugin error occured
Plugin Error
(SystemJS) XHR error (404 Not Found) loading http://127.0.0.1:3000/public/app/plugins/app/newrelic-app/module.js?bust=1493836183810 Error: XHR error (404 Not Found) loading http://127.0.0.1:3000/public/app/plugins/app/newrelic-app/module.js?bust=1493836183810 Error loading http://127.0.0.1:3000/public/app/plugins/app/newrelic-app/module.js
This is more of a request, and ill see if I can do some trickery magic about it...
Req: Basically I would like to pull info from Insights.. or whatever API NR as custom metric allows to be pulled into grafana. Example: I would like to pull replication lag for mysql and I am able to pull the info via API and Insights (dashboard) but that is not possible with the plugin as it only supports APM and Servers.. would be nice to just have a custom variable where we add after newrelic.com/v2/....
In my case
curl -X GET 'https://api.newrelic.com/v2/components/XXXXXXXX/metrics/data.json' \ -H 'X-Api-Key:{api_key}' -i \ -G -d 'names[]=Component/newrelic/replication_status[State]&values[]=average_value'
We currently have a good deal of applications and currently it looks like it only returns the top X applications. Is there a way to filter or return all of the applications available in newrelic?
I have created a working api query:
curl -X GET 'https://api.newrelic.com/v2/applications/*appid*/hosts/*hostid*/metrics/data.json'
-H 'X-Api-Key:apikey' -i
-G -d 'names[]=Apdex&values[]=score', which gives me data like this:
https://gist.github.com/willd/b61792a042379114194386bdbcc0c734
When trying to add that as a server in Grafana using your plugin, I create a new row, choose server, enter the host id, metric Apdex and value score. After that it seems to fetch data forever, while not giving me any data points.
Am I doing something wrong?
EDIT: Realized that this plugin isn't capable of fetching hosts just yet. I guess this is a feature request then? :)
I am getting the following error using the plugin:
msg="Request Completed" logger=context userId=3 orgId=1 uname=xxxx@xxx method=GET path=/v2/applications.json status=502
I can use the curl -X GET 'https://api.newrelic.com/v2/applications.json to access outside of the plugin but within Grafana the plugin gives me a unexpected error and status 502. Any ideas on where I can start to debug?
HI! Thank you for writing this. I'm trying to pull data from our servers via New Relic. I've installed the plugin and my API key and when I go to add a datasource it asks for an Application, and there's a select box with one (blank) option. If I hit Save and Test it says "invalid ID."
Any idea what I might be doing wrong?
Thank you!
Matt
I believe you've licensed this software under the MIT license, but I wasn't able to locate the license text. Would you please consider adding a LICENSE file with your copyright information which includes the text of the MIT license? The MIT license specifically states that the license text must accompany the source code. I'd be happy to do a pull request if you'll let me know what copyright information you want at the top of the LICENSE file.
Hi Guys
its a very good plugin you have created.
but i didnt see any option to make pulling data per Host ID.
if i have a few web servers under the Application ID
so if i want to monitor each Web server load time its impossible.
maybe i am missing something ?
There isn't a field to add the API key or the Application ID when I add a datasource. I am running grafana 3.1.0.
https://cloud.githubusercontent.com/assets/2660564/20686138/a5dc4576-b574-11e6-835b-7f98491d516a.png
When I click on Save & Test I get an error saying that I didn't specify an API key. After looking at the console I see it is sending a HTTP GET request to api.newrelic.com/applications/undefined and getting a 401 response.
I have applications the I'd like to add to Grafana dashboard in 2 different new relic accounts. They have different API keys.
The current plugin supports only one datasource that is tied to one account only.
I tried making a copy of the plugin and just renaming in order to create a second data source with a different API key but that didn't work. The list of applications showing up under the second app was from the first new relic account, not the second one.
Any comments on how can I get 2 accounts working?
I tried a prior version (commit a1dc1ab) which is just a datasource plugin (not an app plugin). I could add multiple data sources with different api keys. However, that version was missing some good features like there was no list of applications, for instance.
Are you looking to bring back this functionality? Or will you be okay with me opening a PR to bring this feature back?
Thank you.
Hi, very good work here!
Are you interested in making this a normal Grafana plugin included in its repos as per here ?
I might be able to give you a hand if you want.
Cheers!
It's possible obtain metrics like "Average page load time"?
curl -X GET "https://api.newrelic.com/v2/applications/XXXXXX/metrics/data.json" -H "X-Api-Key:XXXXXXXXXXXXX" -i -d 'names[]=EndUser&values[]=average_response_time&summarize=true'
I think that only works calls to
https://api.newrelic.com/v2/applications.json or https://api.newrelic.com/v2/servers.json
Isn't it?
When I put "EndUser" into NameSpace doesn't find anything.
Thank you
Hi !
I'd like to ship the plugin with my custom Docker Image of Grafana and it would be really good if there had a release or a place to download only the needed files, so the Docker Image would be as cleanest and lightest as possible.
Do you have plans to create a way to distribute the plugin?
Thanks!
Hi!
Any chance you will be looking at 4.3.1 support?
-Setup APM and Browser monitoring in New Relic.
-Setup REST API key under Account Integrations and confirmed working via Curl
-Added API key into New Relic Plugin in Grafana
-Added DataSource in Grafana but get "Problem: Unexpected error" when I select New Relic Plugin and drop down Application
Hi,
I have grafana-3.0.1-1.x86_64 installed and I would like connect to new relic, but when I copy unzip into /usr/share/grafana/public/app/plugins/ and do restart grafana, when I select datasource.
I recived a message error like not found module.js
Plugin Error
Error loading http://XXXXX:3000/public/app/plugins/datasource/newrelic/module.js
grafana.log says:
"GET /public/app/plugins/datasource/newrelic/module.js HTTP/1.1" 404 Not Found 19 bytes in 789us"
I don't found this file in your repository.
Thank you so much
Was very happy to find a plugin for this!
To be fair I did not get a chance to try this on 3.0.1 as I just went from 2.x to 3.1.1. I have tried adding the whole contents of the repo to the datasources/newrelic folder, and also just the dist. Both give the same results, you can add the NewRelic datasource, but there's nowhere to enter the API key or Account #.
Thank you for your work on this! Can't wait to see if in the official plugin repo
I would like to be able to show the "Web Transaction Response Time" graph from the newrelic overview tab on my dashboard.
Here is what it looks like (screenshot from NR docs):
Unfortunately the NR API does not expose the metrics for this graph, but it is possible to compute them.
Here are the NR docs explaining how to do it: Obtain web transaction time data.
The gist is that you need to do calculations like this:
Datastore time = ( Datastore/${DBTYPE}/allWeb:average_response_time * Datastore/${DBTYPE}/allWeb:call_count ) / HttpDispatcher:call_count
Web external = ( External/allWeb:average_response_time * External/allWeb:call_count ) / HttpDispatcher:call_count
I was wondering if you could think of a way to do this using your plugin?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.