Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 1.1.5
    • Fix Version/s: 1.2.0
    • Component/s: MongoDB_Exporter
    • Labels:
      None

      Description

      1) Stop mongod
      2) Run exporter:
      Result:

      [root@bm-qanqa05 mongodb_exporter]# ./mongodb_exporter -web.listen-address=10.10.11.54:42003
      INFO[0000] ### Warning: the exporter is in beta/experimental state and field names are very  source="mongodb_exporter.go:225"
      INFO[0000] ### likely to change in the future and features may change or get removed!  source="mongodb_exporter.go:226"
      INFO[0000] ### See: https://github.com/percona/mongodb_exporter for updates  source="mongodb_exporter.go:227"
      
      ERRO[0005] Cannot connect to server using url mongodb://localhost:27017: no reachable servers  source="connection.go:61"
      panic: collector has no descriptors
      
      goroutine 1 [running]:
      panic(0x839240, 0xc420152890)
      	/usr/lib/golang/src/runtime/panic.go:500 +0x1a1
      github.com/percona/mongodb_exporter/vendor/github.com/prometheus/client_golang/prometheus.(*Registry).MustRegister(0xc420018780, 0xc42012e6a0, 0x1, 0x1)
      	/tmp/mongo/src/github.com/percona/mongodb_exporter/vendor/github.com/prometheus/client_golang/prometheus/registry.go:404 +0xa4
      github.com/percona/mongodb_exporter/vendor/github.com/prometheus/client_golang/prometheus.MustRegister(0xc42012e6a0, 0x1, 0x1)
      	/tmp/mongo/src/github.com/percona/mongodb_exporter/vendor/github.com/prometheus/client_golang/prometheus/registry.go:152 +0x53
      main.registerCollector()
      	/tmp/mongo/src/github.com/percona/mongodb_exporter/mongodb_exporter.go:206 +0x1c5
      main.startWebServer()
      	/tmp/mongo/src/github.com/percona/mongodb_exporter/mongodb_exporter.go:143 +0xf4
      main.main()
      	/tmp/mongo/src/github.com/percona/mongodb_exporter/mongodb_exporter.go:229 +0x209
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                nailya.kutlubaeva Nailya Kutlubaeva
                Reporter:
                nailya.kutlubaeva Nailya Kutlubaeva
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: