Coder Social home page Coder Social logo

Comments (3)

ilyam8 avatar ilyam8 commented on June 14, 2024

Hey, @bgabler. Unfortunately, I can't reproduce the issue.

I was surprised by this issue as I was confident that the log rotation handling was working - there is even a test case for it.

Anyway I decided to do a manual test and had no problem:

  • install nginx.
  • restart netdata and make sure it tails /var/log/nginx/access.log.
  • run sudo logrotate --force /etc/logrotate.d/nginx.
  • check web log charts.

I think there is confusion, because

template: NGINX
      on: nginx.requests

has nothing to do with logs/rotation. The nginx.requests metrics collected by go.d/nginx.

It sends HTTP requests to the NGINX location stub-status, which is a built-in location that provides metrics about the NGINX server.

from netdata.

bgabler avatar bgabler commented on June 14, 2024

It's so strange, as soon as we restart netdata it starts collecting again.

I modified our go.d file to have:

autodetection_retry: 3

This was commented out before.

from netdata.

ilyam8 avatar ilyam8 commented on June 14, 2024

autodetection_retry is

Recheck interval in seconds. Zero means no recheck will be scheduled.

Before starting a data collection job, the plugin checks whether the data can be collected and does not run the job if the check fails. So I see no how this option will help you.

Consider checking logs, always a good idea when debugging a problem.

  • tail Netdata logs
journalctl --namespace=netdata -f
  • force nginx logrotate
  • see logs

from netdata.

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.