Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sampler freezes after spawing a lot of processes (on server) #101

Open
dadyarri opened this issue Jan 10, 2021 · 0 comments
Open

Sampler freezes after spawing a lot of processes (on server) #101

dadyarri opened this issue Jan 10, 2021 · 0 comments

Comments

@dadyarri
Copy link

image

Is it error in config or bug?

runcharts:
  - title: VK's response time
    position: [[42, 16], [38, 25]]
    rate-ms: 500
    triggers:
      - title: Latency threshold exceeded
        condition: echo "$prev < 0.3 && $cur > 0.3" |bc -l
        actions:
            terminal-bell: true
            sound: true
            visual: true
            script: 'say alert: ${label} latency exceeded ${cur} second'
    legend:
        enabled: true
        details: false
    scale: 2
    items:
      - label: VK
        color: 178
        sample: curl -o /dev/null -s -w '%{time_total}'  https://www.vk.com
sparklines:
  - title: CPU Usage
    position: [[57, 9], [23, 8]]
    rate-ms: 200
    scale: 0
    sample: ps -A -o %cpu | awk '{s+=$1} END {print s}'
  - title: RAM Usage
    position: [[57, 0], [23, 9]]
    rate-ms: 200
    scale: 0
    sample: echo "scale=1; $(vmstat -s | grep 'used memory' | awk '{print $1}') /
        $( vmstat -s | grep 'total memory' | awk '{print $1}') * 100" | bc
textboxes:
  - title: Docker containers stats
    position: [[0, 9], [57, 8]]
    rate-ms: 500
    sample: docker stats --no-stream --format "table {{.Name}} \t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}\t{{.BlockIO}}\t{{.PIDs}}"
  - title: Docker logs
    position: [[0, 16], [42, 25]]
    rate-ms: 500
    sample: cd ~/projects/choco; docker-compose logs --tail=0 --follow
asciiboxes:
  - title: Current time (Europe/Moscow)
    position: [[0, 0], [31, 9]]
    rate-ms: 500
    color: 43
    sample: date +%H:%M:%S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant