Get support for soyuka/supervisordstat
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
soyuka/supervisordstat
SupervisordStat
Run pidstat
over supervisord processes.
Usage
The process will log to a file named monit-{process-name}.txt
.
Use the following configuration in supervisord to start monitoring:
[eventlistener:mylistener]
command=./supervisordstat
events=PROCESS_STATE
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes = 0
redirect_stderr=true
To transform the output to csv and json, one may use csvtk:
#!/bin/bash
# Usage to-csv.sh monit-logger.txt
temp=${1/txt/temp}
tab=${1/txt/tab}
csv=${1/txt/csv}
json=${1/txt/json}
head -n 3 $1 | tail -n 1 | sed 's/# //' > $temp
sed '1d' $1 >> $temp
csvtk space2tab $temp > $tab
csvtk tab2csv $tab > $csv
csvtk csv2json $csv > $json
rm $temp $tab
Dockerfile
FROM golang:1.11-alpine AS build-env
RUN apk add --update git && rm -rf /var/cache/apk/*
ADD supervisordstat /src
RUN cd /src && go get && CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o supervisordstat .
FROM xxx:xx-alpine
RUN apk add --no-cache --update supervisor sysstat
COPY --from=build-env /src/supervisordstat /usr/bin/supervisordstat
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2