GithubHelp home page GithubHelp logo

Comments (5)

ardias avatar ardias commented on June 1, 2024

Hi @thezackm
Using version 1.0.0 i can get output similar to that in both macOs and Windows.
Example in windows:
image

What is missing from the output?

from nri-flex.

thezackm avatar thezackm commented on June 1, 2024

this is from Windows v.1.0.0, downloaded from the latest release .zip HERE and installed/configured on Feb 28.

Screenshot is current as of 5 min ago: notice that my sample data from the config file is not presented in the JSON payload; and my verbose output for the steps being conducted are missing as well. (lines 3-9 on your screenshot)
image

Note that I am receiving data in Insights; the Flex integration is working, the command line argument/output is the issue here.
image

from nri-flex.

Kav91 avatar Kav91 commented on June 1, 2024

@ardias as discussed in my PR #109
@thezackm is executing his flexConfig directly from the integrations.d/ folder, it is not a config format Flex understands via the config_file arg anymore, its the infra agent config which then passes the config block to Flex but only when the agent executes it. For Flex to execute it now, it needs to be aware of the agents config format.

Zack would have to edit his config manually, to remove the below and re-indent every time he needs to test. Then again add it back when he is ready, which could lead to frequent copy/pasting and indent issues.

integrations:
  - name: nri-flex
    config:

PR should be merged to resolve the issue.

from nri-flex.

ardias avatar ardias commented on June 1, 2024

@thezackm Sorry for the confusion regarding file formats.
As @Kav91 said, you're using a format meant for the NR Infra agent and trying to use it with Flex.
We want to understand why did you try to use the Infra agent format directly with Flex. Was the documentation not clear in that regard? Was it the examples you saw that lead you to that?

If you look at the output you got, there is an error in there. Was it not visible enough? Was the fact you still got some output, leading you to believe that it was working properly?

Regarding the data you are receiving, is that by running just Flex, like you did in the screen shot, or is it because you are also running the NR Infra agent (with the same configuration)?

from nri-flex.

ardias avatar ardias commented on June 1, 2024

For future reference, we've tried to make it more clear the difference between the Infra agent configuration format and Flex configuration format in these docs:

https://github.com/newrelic/nri-flex/blob/master/docs/development.md
https://github.com/newrelic/nri-flex/blob/master/docs/basic-tutorial.md

Take a look at them, and if you feel they need changes let us know.
Closing this for now.

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.