anthonybloomer / nrql-simple Goto Github PK
View Code? Open in Web Editor NEWnrql-simple provides a convenient way to interact with the New Relic Insights query API.
nrql-simple provides a convenient way to interact with the New Relic Insights query API.
Hi,
Not to barrage you, but I just opened another issue and I was going to tell you what version of nrql-cli I'm using but I can't:
[~/nrql-cli] [nrql-cli] $ nrql --version
usage: nrql_cli [-h] [--region {EU,US}] [--env ENV] [--verbose]
nrql_cli: error: unrecognized arguments: --version
[~/nrql-cli] [nrql-cli] $
Not a showstopper, I installed it with pip
so I can get the version from there:
[~/nrql-cli] [nrql-cli] $ pip freeze | grep nrql-cli
nrql-cli==1.0.3
[~/nrql-cli] [nrql-cli] $
Hello! I'm just trying nrql-cli because I thought the command line completion might be handy. However, it does not seem to be working.
For example, here I am getting suggestions that have nothing to do with the EMR integration:
[~/nrql-cli] [nrql-cli] $ nrql
Welcome to your data, let's get querying...
> from ElasticMapReduceInstanceSample select
IntegrationError
is
Transaction
begin
DSSTimeout
where
IntegrationError
PaymentMetric
Compare that to the web UI:
I have to hack it to get it to work with '%' in query_stmt else it gave me: status_code :400. The url is not encoded properly when '%' present.
Hack.....
INSIGHTS_URL = "https://insights-api.newrelic.com/v1/accounts/%s/query"
def _make_request(self, query_stmt):
payload = {'nrql':query_stmt}
req = requests.get(self._url % (self.account_id),
headers={"X-Query-Key": self.api_key},params=payload)
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.