[influxdb] 유형 오류: 객체 # 메소드 "hrtime"없음
묘사
Linux 4.1.15-v7+#830 SMP 화요일 12월 15일 17:02:45 GMT 2015 armv7l GNU/Linux노드2.4
NPM 2.14.12
xDB v0.9.6
NPM 보고 시에도 Statsd [email protected])
내 구성.js 파일:
{
port: 8125,
backends: [ "statsd-influxdb-backend" ],
influxdb: {
host: '127.0.0.1',
port: 8086,
database: 'statsd',
username: 'user',
password: 'pass',
version: 0.9,
flush: {
enable: true
},
proxy: {
enable: false,
suffix: 'raw',
flushInterval: 1000
},
includeStatsdMetrics: true,
includeInfluxdbMetrics: true,
},
debug: true,
legacyNamespace: false
}
내가 statsd를 시작했을 때, 나는 다음과 같은 것을 얻었다.10 Jan 23:49:48 - reading config file: /opt/statsd/config.js
10 Jan 23:49:48 - server is up
10 Jan 23:49:48 - DEBUG: Loading backend: statsd-influxdb-backend
10 Jan 23:49:58 - [influxdb] TypeError: Object #<EventEmitter> has no method 'hrtime'
10 Jan 23:50:08 - [influxdb] TypeError: Object #<EventEmitter> has no method 'hrtime'
10 Jan 23:50:18 - [influxdb] TypeError: Object #<EventEmitter> has no method 'hrtime'
10 Jan 23:50:28 - [influxdb] TypeError: Object #<EventEmitter> has no method 'hrtime'
...and so on, forever.
statsd에서 XDB로 흐르는 데이터가 없습니다.예, 다음 명령이 작동합니다.
curl -G http://localhost:8086/query --data-urlencode "q=CREATE DATABASE mydb"
다음과 같이 백엔드를 설치했습니다.$ sudo npm install statsd-influxdb-backend -d
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm WARN package.json [email protected] No license field.
npm info addNameTag [ 'statsd-influxdb-backend', 'latest' ]
npm info attempt registry request try #1 at 3:20:23 PM
npm http request GET https://registry.npmjs.org/statsd-influxdb-backend
npm http 200 https://registry.npmjs.org/statsd-influxdb-backend
npm info retry fetch attempt 1 at 3:20:24 PM
npm info attempt registry request try #1 at 3:20:24 PM
npm http fetch GET https://registry.npmjs.org/statsd-influxdb-backend/-/statsd-influxdb-backend-0.6.0.tgz
npm http fetch 200 https://registry.npmjs.org/statsd-influxdb-backend/-/statsd-influxdb-backend-0.6.0.tgz
npm info install [email protected] into /opt/statsd
npm info installOne [email protected]
npm info preinstall [email protected]
npm info build /opt/statsd/node_modules/statsd-influxdb-backend
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
[email protected] node_modules/statsd-influxdb-backend
npm info ok
$
나는 이 모든 것이 낯설다.해결책을 아시는 분?토론 #1
빠른 구글 검색에 의하면구 버전의 nodejs입니다.
어쨌든, 당신은 어떻게 statsd를 시작했는지 공유할 수 있습니까?그렇게 지도 모른다, 아마, 아마...
이 안에 뭐가 있어요.
2016년 1월 11일 월요일 오후 2:59, 올리스터[email protected]쓰기:
Linux 4115-v7+ #830 SMP Tue Dec 15 17:02:45 GMT 2015 armv7l GNU/Linux Node v424 NPM 21412 Influxdb v096 Statsd 072 (even though NPM reports statsd@071)
My configjs file:
{ port: 8125, backends: [ "statsd-influxdb-backend" ],
``` influxdb: { host: '127001', port: 8086, database: 'statsd', username: 'user', password: 'pass', version: 09, flush: { enable: true }, proxy: { enable: false, suffix: 'raw', flushInterval: 1000 }, includeStatsdMetrics: true, includeInfluxdbMetrics: true, },
debug: true, legacyNamespace: false ```
}
When I start statsd I get:
10 Jan 23:49:48 - reading config file: /opt/statsd/configjs 10 Jan 23:49:48 - server is up 10 Jan 23:49:48 - DEBUG: Loading backend: statsd-influxdb-backend 10 Jan 23:49:58 - [influxdb] TypeError: Object #
has no method 'hrtime' 10 Jan 23:50:08 - [influxdb] TypeError: Object # has no method 'hrtime' 10 Jan 23:50:18 - [influxdb] TypeError: Object # has no method 'hrtime' 10 Jan 23:50:28 - [influxdb] TypeError: Object # has no method 'hrtime' and so on, forever No data flows from statsd to influxdb And, yes, the following command works:
curl -G http://localhost:8086/query --data-urlencode "q=CREATE DATABASE mydb"
I installed the backend as follows:
$ sudo npm install statsd-influxdb-backend -d npm info it worked if it ends with ok npm info using npm@21412 npm info using node@v424 npm WARN packagejson statsd@071 No license field npm info addNameTag [ 'statsd-influxdb-backend', 'latest' ] npm info attempt registry request try #1 at 3:20:23 PM npm http request GET https://registrynpmjsorg/statsd-influxdb-backend npm http 200 https://registrynpmjsorg/statsd-influxdb-backend npm info retry fetch attempt 1 at 3:20:24 PM npm info attempt registry request try #1 at 3:20:24 PM npm http fetch GET https://registrynpmjsorg/statsd-influxdb-backend/-/statsd-influxdb-backend-060tgz npm http fetch 200 https://registrynpmjsorg/statsd-influxdb-backend/-/statsd-influxdb-backend-060tgz npm info install statsd-influxdb-backend@060 into /opt/statsd npm info installOne statsd-influxdb-backend@060 npm info preinstall statsd-influxdb-backend@060 npm info build /opt/statsd/node_modules/statsd-influxdb-backend npm info linkStuff statsd-influxdb-backend@060 npm info install statsd-influxdb-backend@060 npm info postinstall statsd-influxdb-backend@060 statsd-influxdb-backend@060 node_modules/statsd-influxdb-backend npm info ok $
I'm pretty new to all this Does anyone know a solution for it?
— Reply to this email directly or view it on GitHub https://github.com/bernd/statsd-influxdb-backend/issues/30.
카필 라트나니
MT2009119
M.Tech(IT) IIIT 벵갈루루
고급 소프트웨어 개발자
Myntra Designs Pvt.Ltd.
토론 #2
네, 구글에서 같은 버전을 검색했는데 이것은 저를 더욱 곤혹스럽게 합니다. 왜냐하면 저는 이미 최신 버전(armv7l의 v4.2.4)을 사용하고 있기 때문입니다.넌 히든카드야!!!
나는 statsd라는 예를 썼다.sh (패키지와 함께 제공) 수호 프로세스를 만들고 (/etc/init.d에서) 필요에 따라
sudo service statsd start/restart/stop
시작/재시작/정지합니다.하지만, 당신의 요구는 나로 하여금 직접 시도하게 하였다
node /opt/statsd/stats.js /opt/statsd/config.js
. 단지 호기심에서 비롯되었을 뿐이다. 봐라, 더 많은 오류 정보와 데이터가 나의 Grafana 계기판에 유입되지 않았다!너무 예뻐요!고마워요, 고마워요, 고마워요!
나는 더 좋은 방식으로 서비스를 제공하는 것을 연구할 것이다.
Reference
이 문제에 관하여([influxdb] 유형 오류: 객체 # 메소드 "hrtime"없음), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://github.com/bernd/statsd-influxdb-backend/issues/30텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)