Giter Site home page Giter Site logo

grafana-newrelic-apm-datasource's People

Contributors

alexanderzobnin avatar foxboron avatar wevanscfi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grafana-newrelic-apm-datasource's Issues

Adding Host ID

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 ?

Can't use more than one New Relic account

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.

Cannot Add datasource in Grafana 3.1.0, There is no API or Application Field

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.

Cannot extract data from servers

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? :)

"Web transaction response time" graph

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): image

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?

Unexpected Error Status 502

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?

Unable to add NR Datasource with 3.1.1

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 #.

image

Thank you for your work on this! Can't wait to see if in the official plugin repo

Problem with datasource

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

We have multiple APM's Can't Chose Which App

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!!!

newrelic data source as a template variable?

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:
image
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?

License Text

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.

Releases to include on Dockerimage

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!

Grafana v4.3.1 support?

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

Alert/Incident details of New Relic in Grafana

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

No Selectable Application ID?

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

Not working with Grafana version 3.1.1

Just to let you know I upgraded to 3.1.1 and restarted the server, I still have same files in location /usr/share/grafana/public/app/plugins/datasource/newrelic however when I go to data sources, this is all I see.
image

Support alerting feature

Grafana 4 comes with alerting feature, however, this datasource doesn't support it. Please make it work with the alerting feature.

Req: Add Insights Or Plugins

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'

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.