npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kubernetes-monitoring-collector

v1.4.8

Published

Kubernetes monitoring: Collect data, logs and statistics and forward to a monitoring server.

Downloads

7

Readme

Kubernetes Monitoring Collector

This "Kubernetes Monitoring Collector" should run in your Kubernetes cluster to read out information, logs, metrics.

By default data is sent to a Kubernetes Monitor service API. There you can configure a web dashboard and configure alarms (missing data, pod or container error status) and send notifications (E-Mail and/or Webhook per namespace) to your DevOps teams.

Web Dashboard

Usage

const collector = require( 'kubernetes-monitoring-collector' )
collector.start()

Configuration

Set via environment or config package files variables:

  • DATA_INTERVAL: in ms, default value is 30000
  • LOG_INTERVAL: in ms, default value is 10000
  • SKIP_METRICS: set this, if you don't want to read out CPU/memory usage from metric server

Configure Logging

See https://www.npmjs.com/package/npmlog

Install as Pod from Docker Hub

You need to generate credentials for a "Monitoring Dashboard" per cluster: https://www.kubernetes-monitor.com/

Install the "collector" pod:

kubectl create namespace monitoring 
kubectl apply -f mon-collector-rbac.yml -n monitoring 
kubectl create secret generic monitoring-secret -n monitoring \
      --from-literal=id="$MONITORING_ID" \
      --from-literal=key="$MONITORING_KEY" 
kubectl apply -f mon-collector.yml -n monitoring 

Set Up Own API Server

Data is posted in JSON format to the following endpoints:

  • /mon/dta
    • response should return e.g.
    • { "ms":[ <array od service names, which logs should be send> ] }
  • /mon/logs
  • /mon/access-stats

HTTP Header contain monid and key (from env vars "EKOSYS_ID" and "EKOSYS_KEY") to identify the clusters in a multi-tenant environment.