Git Product home page Git Product logo

Comments (6)

sv2 avatar sv2 commented on May 31, 2024 1

addressed in 0.93.1

from swagger-stats.

sv2 avatar sv2 commented on May 31, 2024

Thank you! will address shortly

from swagger-stats.

reuben453 avatar reuben453 commented on May 31, 2024

Hi,

I'm facing a very similar (or exactly same) issue on node v6.2.1, mac v10.12.6.

This is the error I get when I start the app:

/node_modules/prom-client/lib/gauge.js:219
			throw new TypeError(`Value is not a valid number: ${util.format(value)}`);
			^

TypeError: Value is not a valid number: undefined
    at /node_modules/prom-client/lib/gauge.js:219:10
    at Gauge.set (/node_modules/prom-client/lib/gauge.js:85:31)
    at swsCoreStats.calculateSystemStats (/node_modules/swagger-stats/lib/swsCoreStats.js:151:65)
    at swsCoreStats.tick (/node_modules/swagger-stats/lib/swsCoreStats.js:121:10)
    at Timeout.swsProcessor.tick (/node_modules/swagger-stats/lib/swsProcessor.js:137:20)
    at Timeout.ontimeout [as _repeat] (timers.js:392:34)
    at Timeout.wrapper [as _onTimeout] (timers.js:417:11)
    at tryOnTimeout (timers.js:224:11)
    at Timer.listOnTimeout (timers.js:198:5)

Should I create a separate issue?

from swagger-stats.

reuben453 avatar reuben453 commented on May 31, 2024

Line 151 of /node_modules/swagger-stats/lib/swsCoreStats.js:151 is:
this.promClientMetrics.nodejs_process_memory_external_bytes.set(this.sys.external);

I checked the this.sys content :

this.sys { rss: 115826688,
  heapTotal: 93437952,
  heapUsed: 56715592,
  external: undefined,
  cpu: 11.12675279025026 }

from swagger-stats.

sv2 avatar sv2 commented on May 31, 2024

@reuben453, yes, I believe it's the same issue. "external" is missing in process.memoryUsage() result; I've added fix to handle this properly, and will release version with this fix shortly. Thanks!

from swagger-stats.

anija avatar anija commented on May 31, 2024

Thank you!

from swagger-stats.

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.