Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@skbkontur/monitoring-client
Advanced tools
MonitoringClient(slugs, address)
Клиент сервиса мониторинга
Начало префикса для всех метрик
Адресс графита для агрегации метрик
Имя метрики для отправки
Значение метрики
Monitor(monitoringClient, intervals)
класс для проверки состояния приложения. Класс отправляет системные метрики о состоянии процесса node приложения.
Список:
heapUsed
- использованный хип в мегабайтахcpuUsage
- использованное cpu в процентахrpm
- количество запросов в минутуavgLatency
- среднее время ответа в мсmaxLatency
- максимальное время ответа в мсКлиент мониторинга для отправки метрик.
Интервалы отправки системных метрик в мс. Если значение интервала -1
то метрика не отправляется.
const DEFAULT_INTERVALS = {
updateMetrics: 5000,
cpu: 7000,
heap: 7000,
rpm: 60000,
latency: 30000
}
const MonitoringClient = require('monitoring-client')
const Monitor = require('monitoring-client/lib/Monitor')
const monitoringClient = new MonitoringClient(
['ExpertNode', 'instance1'],
'graphite-relay.skbkontur.ru:2003/'
)
monitoringClient.send('MetricName', 20)
const monitor = new Monitor(monitoringClient)
FAQs
Библиотека для отправки метрик в мониторинг
The npm package @skbkontur/monitoring-client receives a total of 7 weekly downloads. As such, @skbkontur/monitoring-client popularity was classified as not popular.
We found that @skbkontur/monitoring-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.