Comments (2)
Hey @gabrielnewrelic, dedupe_lookups
is available to the new native lookups.
In the info about that feature the hyperlink refers to this implementation here -> https://github.com/newrelic/nri-flex/blob/master/docs/basics/functions.md#lookups
Your example is using a lookup generated from store_lookups
. This is now simplified with the doc mentioned.
add_attribute
is for building new attributes from existing attributes, the functionality is different to custom_attributes
.
eg.
integrations:
- name: nri-flex
interval: 30s
config:
name: addTest
apis:
- url: https://jsonplaceholder.typicode.com/users/1
add_attribute:
newAttr: myNewAttr_${name}_${username}_${email}
I don't believe there is any issue here, but we should improve the docs to direct users to look at the new lookup feature first. Let me know if that all makes sense or if there is still any issues.
from nri-flex.
Hi Kav, thank you for the prompt reply. So I tried a few different things with dedupe_lookups:
- event_type: JenkinJobsLookup
url: /api/json?tree=jobs[name]
ignore_output: true
- event_type: JenkinsBuilds
url: /job/${lookup.JenkinJobsLookupSample:name}/api/json?tree=allBuilds[*]
dedupe_lookups:
- name
also tried without Sample
- event_type: JenkinJobsLookup
url: /api/json?tree=jobs[name]
ignore_output: true
- event_type: JenkinsBuilds
url: /job/${lookup.JenkinJobsLookup:name}/api/json?tree=allBuilds[*]
dedupe_lookups:
- name
It is not recognizing the variable and return nothing on the second call. I can send you the full example if you want to replicate. Thank you
from nri-flex.
Related Issues (20)
- Add automatic time server discovery for Windows NTP Clock Drift integration HOT 2
- linux-file-count.yml does not work as-is
- Review/create e2e tests to be able to upgrade go version HOT 1
- Upgrade Go version to > 1.15
- Flex IP Discovery on Kubernetes HOT 3
- Flex not working though API call works with Curl -k HOT 1
- Impossible to use the '%' character in a db query (MySQL)
- Running Flex Serverless - Azure Function App?
- Getting Parse errors in case if docker discovery doesn't finds any suitable containers
- Add support for Oracle DB HOT 1
- null value being converted to unicode HOT 8
- [Repolinter] Open Source Policy Issues HOT 1
- Extra middle whitespace in `name: nri-flex` throws an error HOT 3
- "lookups" function fails when looking up more than one value in same command HOT 1
- [Repolinter] Open Source Policy Issues HOT 1
- Sampling rate to New Relic does not go below 15s HOT 2
- [Repolinter] Open Source Policy Issues HOT 1
- Not possible to add user/pass as global to invoke PowerShell script with specific credentials HOT 3
- Swedish characters like Γ₯Àâ is not working in Flex via PowerShell HOT 3
- Recursively get data by using the 'nextCursor' attribute in Nerdgraph API HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nri-flex.