kav91 / nri-flex-concept Goto Github PK
View Code? Open in Web Editor NEWAn agnostic AIO New Relic Integration
An agnostic AIO New Relic Integration
This is awesome. I just got it working to ship CircleCI events and it took about 15 minutes to implement.
I was wondering what your thoughts on key management were. i.e. the containerized version of this is great but, right now you have to bake in any keys in the config files.
You could write an entrypoint script that uses sed to replace these from environment variables but, I was wondering if you had any ideas or if anyone else has asked for this. I am happy to contribute if you post the source.
Hi - this project looks super interesting, in particular for the Prometheus exporter integration.
In the project README, it says, "New Relic has open-sourced this integration to enable monitoring of various technologies.". However, I don't see the sources or the build toolchain for nri-flex. Are these available, or will they be made available?
Thanks!
I'm attempting to use this integration with newrelic/infrastructure-k8s:1.9.0
.
This is my container discovery config file:
---
name: clusterautoscalermetrics
apis:
- name: clusterautoscalermetrics
url: http://${auto:host}:${auto:port}/metrics
prometheus:
enable: true
According to the docs on Kubernetes I should add an environment variable to my deployment so that the integration can find the container. I've added the following
flexDiscovery: t=cluster-autoscaler,c=clusterautoscaler,tt=img,tm=contains
When I run from the container (on the same host as my cluster-autoscaler container) ./nri-flex -container_discovery -docker_api_version 1.38 -container_discovery_dir flexContainerDiscovery/ -verbose -config_file flexContainerDiscovery/clusterautoscaler.yml
I get the following error:
/var/db/newrelic-infra/custom-integrations # ./nri-flex -container_discovery -docker_api_version 1.38 -container_discovery_dir flexContainerDiscovery/ -verbose -config_file flexContainerDiscovery/clusterautoscaler.yml
DEBU[0000] com.newrelic.nri-flex: v0.6.0-pre linux:amd64
DEBU[0000] starting to process 1 configs
DEBU[0000] running config: clusterautoscalermetrics
DEBU[0000] processing 1 apis in clusterautoscalermetrics
DEBU[0000] fetching data for clusterautoscalermetrics
DEBU[0000] clusterautoscalermetrics - running http requests
DEBU[0000] sending GET request to http://${auto:host}:${auto:port}/metrics
DEBU[0000] parse http://${auto:host}:${auto:port}/metrics: invalid character "{" in host name
DEBU[0000] running data handler for clusterautoscalermetrics
DEBU[0000] finished processing 1 apis in clusterautoscalermetrics
DEBU[0000] completed processing 1 configs
{"name":"com.newrelic.nri-flex","protocol_version":"2","integration_version":"0.6.0-pre","data":[{"metrics":[{"event_type":"flexStatusSample","flex.ConfigsProcessed":1,"flex.EventCount":0,"flex.EventDropCount":0}],"inventory":{},"events":[]}]}
DEBU[0000] sending GET request to http://${auto:host}:${auto:port}/metrics is what stands out to me as the issue.
Hi,
I've got flex set up scaping a bunch of Prometheus metrics endpoints.
I'm struggling to set up dashboards in Insights based on the data from flex.
I would be interested to see some example dashboards for common Prometheus metric types.
In particular, would like to see example NRQL for histograms and summaries as these are the ones I am struggling with the most.
Thanks
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.