GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hashbrowncipher/taskstats_exporter: A Prometheus exporter for Linux task statistics (CPU time, delays, etc.)

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
debian
debian
 
 
taskstats_exporter
taskstats_exporter
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.rst
README.rst
 
 
requirements.txt
requirements.txt
 
 
setup.py
setup.py
 
 

Repository files navigation

taskstats_exporter: A Prometheus exporter for Linux process statistics

This is a Prometheus exporter for performance information about Linux tasks. The following information is collected:

  • task accounting statistics from netlink for the task itself and all of its threads, living or dead
  • basic process statistics from /proc/<pid>/stat
  • proportional set size
  • block I/O delays and scheduler statistics for niced threads

Installation and usage

The taskstats exporter is installable as a Python egg. It expects to read named pidfiles from a directory. The directory is automatically scanned on each prometheus scrape: there is no need to restart the exporter when the directory contents change. The user running taskstats_exporter must be root or have CAP_NET_ADMIN.

Usage:

# taskstats_exporter <pidfiles_dir> <listen_port>

Example:

$ mkdir exporter_pidfiles
$ ln -s /run/cassandra/cassandra.pid exporter_pidfiles/cassandra
$ taskstats_exporter exporter_pidfiles 8080
$ curl 127.0.0.1:8080
taskstat_cpu_count{name="cassandra", pid="16923"} 8365887
taskstat_cpu_delay_total{name="cassandra", pid="16923"} 659867655322
taskstat_blkio_count{name="cassandra", pid="16923"} 477
taskstat_blkio_delay_total{name="cassandra", pid="16923"} 2508392517
taskstat_swapin_count{name="cassandra", pid="16923"} 41
taskstat_swapin_delay_total{name="cassandra", pid="16923"} 164895486
taskstat_nvcsw{name="cassandra", pid="16923"} 8049063
taskstat_nivcsw{name="cassandra", pid="16923"} 267691
procstat_utime{name="cassandra", pid="16923"} 323090000000
procstat_stime{name="cassandra", pid="16923"} 76490000000
procstat_cutime{name="cassandra", pid="16923"} 140000000
procstat_cstime{name="cassandra", pid="16923"} 160000000
procstat_num_threads{name="cassandra", pid="16923"} 81
procstat_rss{name="cassandra", pid="16923"} 414740
procmaps_pss{name="cassandra", pid="16923"} 416220
thread_blkio_delay{name="cassandra", pid="16923", nice="3"} 0
thread_blkio_delay{name="cassandra", pid="16923", nice="4"} 0
thread_schedstat_oncpu{name="cassandra", pid="16923", nice="3"} 4000000000
thread_schedstat_oncpu{name="cassandra", pid="16923", nice="4"} 6055831288000
thread_schedstat_waiting{name="cassandra", pid="16923", nice="3"} 28283162000
thread_schedstat_waiting{name="cassandra", pid="16923", nice="4"} 11788537641000
thread_schedstat_slices{name="cassandra", pid="16923", nice="3"} 35
thread_schedstat_slices{name="cassandra", pid="16923", nice="4"} 101519

About

A Prometheus exporter for Linux task statistics (CPU time, delays, etc.)

Resources

Readme
License
Activity

Stars

5 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.