GithubHelp home page GithubHelp logo

Comments (7)

Kav91 avatar Kav91 commented on June 12, 2024

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.

cah-zack-mutchler avatar cah-zack-mutchler commented on June 12, 2024

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:

  1. install Flex via snippet from README.md above
  2. create 1 or more YAML configs in the default /flexConfigs directory
  3. 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.

Kav91 avatar Kav91 commented on June 12, 2024

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.

cah-zack-mutchler avatar cah-zack-mutchler commented on June 12, 2024

to my knowledge yes, the standard infrastructure metrics were still being sent correctly.

from nri-flex.

Kav91 avatar Kav91 commented on June 12, 2024

As the linux infrastructure agent now comes with Flex bundled this issue can be closed.

from nri-flex.

karuppiah7890 avatar karuppiah7890 commented on June 12, 2024

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

Kav91 avatar Kav91 commented on June 12, 2024

@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)

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.