Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing metrics when using Syslog for collection #68

Open
AlexanderMatveev opened this issue Jan 31, 2021 · 2 comments
Open

Missing metrics when using Syslog for collection #68

AlexanderMatveev opened this issue Jan 31, 2021 · 2 comments

Comments

@AlexanderMatveev
Copy link

AlexanderMatveev commented Jan 31, 2021

Switched to using syslog instead of log files.

These metrics no longer delivered to Amplify:

  • http.request.time
  • nginx.upstream.response.time

log_format is same as when I was using log files:

log_format  main_ext  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for" '
                      '"$host" sn="$server_name" '
                      'rt=$request_time '
                      'ua="$upstream_addr" us="$upstream_status" '
                      'ut="$upstream_response_time" ul="$upstream_response_length" '
                      'cs=$upstream_cache_status' ;

# this works fine:
#access_log /var/log/nginx/access.log main_ext;

# this variant hides two metrics I mentioned (all other metrics are fine):
access_log syslog:server=127.0.0.1:12000,tag=amplify,severity=info main_ext;

Screenshot_2021-01-31 NGINX Monitoring Made Easy(5)
Screenshot_2021-01-31 NGINX Monitoring Made Easy(3)
Screenshot_2021-01-31 NGINX Monitoring Made Easy(2)

@AlexanderMatveev
Copy link
Author

Looks like some other metrics no longer collecting or showing incorrect zeros.

Screenshot_2021-01-31 NGINX Monitoring Made Easy(4)
Screenshot_2021-01-31 NGINX Monitoring Made Easy(1)
Screenshot_2021-01-31 NGINX Monitoring Made Easy

@mbrondogutierrez
Copy link

were you able to fix this? Im having the same problem

@defanator defanator transferred this issue from another repository Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants