Comments (3)
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.
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.
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)
- Nginx agent returns invalid metrics after the first correct result. HOT 1
- Uninstalling agent duplicates messages HOT 1
- nginx-agent packages do not have logrotate configuration HOT 1
- NGINX agent cannot find the default network interface on Linux hosts. HOT 1
- Bypass Nginx Cache HOT 2
- "Failed to get disk metrics, permission denied" log message is unhelpful
- Agent segfaults intermittently when it receives a SIGTERM or SIGINT
- Agent uses "nms" as its environment prefix HOT 1
- path to agent-dynamic.conf should be configurable HOT 2
- Access log pattern is not being set if access_log directive is set before log_format HOT 1
- Log formats without names and access logs without names will have log tailing fail silently
- How are NGINX Agent monitoring reports presented through Prometheus HOT 9
- "include" directive is not allowed within an "if" block HOT 4
- gogo protobuf is deprecated HOT 1
- Securing access to the agent API HOT 6
- How to config multiple grpcs proxy in same location with different headers? HOT 2
- How do I retrieve the NGINX config? HOT 2
- grpc and http cannot successfully listen to port HOT 2
- 401 Unauthorized Error after Login HOT 3
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 agent.