Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-783

[mongodb_exporter] log everything to stderr

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: MongoDB_Exporter
    • Labels:
      None
    • Sprint:
      27W2017Y (07/3-07/9)

      Description

      mongodb_exporter store some log files in /tmp directory, this directory can be changed by -log_dir option.
      also something logged to /var/log/pmm-mongodb-metrics-*.log

      I think we should have the same approach for all our exporters:
      don't create any log files, just print everything to stderr (like node_exporter and mysqld_exporter do).
      in this case we receive all logs in /var/log/pmm-mongodb-metrics-*.log file and it will be possible to run several mongodb exporters on one host

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                nailya.kutlubaeva Nailya Kutlubaeva
                Reporter:
                mykola.marzhan Mykola Marzhan
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: