client_js

(★ 3,482)

Prometheus client for node.js

파일 탐색기

  • .editorconfig
  • .gitattributes
  • .gitignore
  • .npmignore
  • .npmrc
  • CHANGELOG.md
  • CODE_OF_CONDUCT.md
  • eslint.config.mjs
  • index.d.ts
  • index.js
  • LICENSE
  • MAINTAINERS.md
  • NOTICE
  • package.json
  • README.md
  • SECURITY.md
  • tsconfig.json
  • Workers.md

# 설치 가이드

node
사전 준비물

설치 및 실행 절차

npm install

프로젝트의 의존성 패키지를 설치합니다.

npm test

테스트 스위트를 실행하여 정상 동작을 확인합니다.

핵심 명령어

npm install

package.json에 명시된 프로젝트 의존성을 설치합니다.

npm test

작성된 유닛 및 통합 테스트를 실행합니다.

이 라이브러리는 웹 프레임워크를 포함하지 않으며, /metrics 엔드포인트에서 await registry.metrics()를 호출하여 메트릭을 노출해야 합니다.

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

cluster

설명 보기 ▼

그래프에서 클러스터를 찾고, 해당 정보를 그래프에 추가.
더 많은 정보: <https://graphviz.org/pdf/cluster.1.pdf>.

cluster {{input.gv}}

모듈러리티(modularity)를 최적화하는 클러스터를 생성하고 결과를 `stdout`으로 출력:

cluster -C {{5}} {{input.gv}}

생성할 클러스터([C]lusters) 수를 지정 (대략적인 값) (0이 기본값, 모듈러리티(modularity)를 대략적으로 최적화하는 개수가 선택됨):

cluster -c {{0|1}} {{input.gv}}

다른 클러스터링([c]lustering) 방법을 사용 (0: 모듈러리티 클러스터링, 1: 모듈러리티 품질):

🔍

npm install

설명 보기 ▼

Install Node packages.

npm {{[i|install]}}

Install dependencies listed in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}

Download the latest version of a package and add it to the list of dev dependencies in `package.json`:

// repository documentation