Comments (7)
hey Zack, the script should stop the agent prior to the block of code you've mentioned
https://github.com/newrelic/nri-flex/blob/master/scripts/install_linux_s3.sh#L24
have you had situations where the agent has not stopped, before attempting to start again?
Also with the new work that has been done with the infrastructure agent we could make use of the hot reloading capabilities and not worry about start/stopping.
from nri-flex.
Thanks Kav;
Yesterday I installed on 4 servers using this method:
sudo bash -c "$(curl -L https://newrelic-flex.s3-ap-southeast-2.amazonaws.com/install_linux_s3.sh)"
With all 4, I noticed that after a successful installation, no events were being sent to Insights until I restarted the Infrastructure agent.
workflow:
- install Flex via snippet from README.md above
- create 1 or more YAML configs in the default
/flexConfigs
directory - execute the config via:
./nri-flex --verbose --config_file "flexConfigs/configName.yml"
to validate data collection
This is where I noted the lack of data actually being sent into Insights. One the first server I waited about 20 minutes before restarting the agent to ensure it was not a latency issue.
On all 4 servers, data immediately began flowing on reboot of the infrastructure agent and any subsequent changes/removals/additions of flex configs would automatically send data as expected.
inventory of sample servers:
SUSE Linux Enterprise Server 11 SP4
Infrastructure Agent Versions 1.4.9 and 1.5.51
from nri-flex.
got it, one more question was the infrastructure agent sending any of the default events at all either?
eg. SystemSample, ProcessSample etc.
or was that also not being sent till you did the restart?
thx
from nri-flex.
to my knowledge yes, the standard infrastructure metrics were still being sent correctly.
from nri-flex.
As the linux infrastructure agent now comes with Flex bundled this issue can be closed.
from nri-flex.
@Kav91 , when you say "bundled", do you mean that infrastructure agent binary has nri-flex code too? I didn't notice it in the go.mod
of infrastructure agent. Or do you mean nri-flex is installed as part of infrastructure agent installation? But that doesn't seem to be the case for installation through tar ball. Or does infrastructure agent pull nri-flex binary when required? π€
from nri-flex.
@karuppiah7890 the code is not added, but the Flex binary itself is pulled in. I don't believe it will be pulled in during a tarball based install, since we typically recommend to install via the automated methods.
You will find the nri-flex
binary at these paths if it was automatically bundled.
If you are managing your install manually, then you could take the appropriate binary from the releases section and place the Flex binary into the same path.
# Linux
/var/db/newrelic-infra/newrelic-integrations/bin/
# Windows
C:\Program Files\New Relic\newrelic-infra\newrelic-integrations\
from nri-flex.
Related Issues (20)
- 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
- Dependency Dashboard HOT 1
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.