GithubHelp home page GithubHelp logo

Comments (3)

oliveromahony avatar oliveromahony commented on August 26, 2024 2

Hi @chengshuyi, the NGINX config needs the access log information present. If this isn't present the NGINX Agent won't read it.

An example config would be:

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"'
                      '"$upstream_cache_status"';
  
    access_log  /var/log/nginx/access.log  main;

in this case the NGINX Agent would read the log_format mentioned above to collect OSS metrics from NGINX.
If the access_log and log_format directives are present in your configuration, can you post what NGINX config you have and I can see if there is something else we can take a look at being the potential cause?

from agent.

chengshuyi avatar chengshuyi commented on August 26, 2024

Thank you very much for your reply. I can collect access.log by adding advanced-metrics to the nginx-agent.conf file.

extensions:
   -advanced-metrics

from agent.

oliveromahony avatar oliveromahony commented on August 26, 2024

Ah, we have 2 sets of metrics being collected NGINX and app centric metrics (off by default). What you mentioned comes from the NGINX Plus Metrics Module (this needs to be installed on NGINX Plus and is what I called the app centric metrics). The documentation for that is located here: https://docs.nginx.com/nginx-management-suite/nginx-agent/install-nginx-plus-advanced-metrics/

Let me know if you have any other questions

from agent.

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.