Giter Site home page Giter Site logo

Logging? about mediamtx HOT 5 CLOSED

bluenviron avatar bluenviron commented on May 22, 2024
Logging?

from mediamtx.

Comments (5)

benbullnz avatar benbullnz commented on May 22, 2024

Hey, I made this work by piping the console output to a log file. I know there is higher level logging available, someone else can talk to that.

In the meantime, kill your server and then restart rtsp-simple-server by running the following command:
./rtsp-simple-server |& tee server.log

This will create a server.log file in the same directory as rtsp-simple-server.

You can view the log file by running:
cat server.log
or//
tail -f server.log (this will continually update)

PS, i'm no expert so there might be a better way - but this worked for me.

from mediamtx.

jmbell1989 avatar jmbell1989 commented on May 22, 2024

I am unfortunately on Windows.. should've mentioned that:/ Thanks for the suggestion though. That will most definitely work in Linux

from mediamtx.

aler9 avatar aler9 commented on May 22, 2024

Hello, regarding monitoring, i think that two separate new features could be implemented:

  • an option to log to file instead than logging to stdout, expecially for Windows users that do not want to use console features
  • a metrics exporter, compatible with Prometheus, that provides via HTTP the number of connected clients, publishers, readers

Regarding pprof, i added it to monitor RAM and CPU usage; for instance, after enabling the option, you can get CPU

docker run --rm -it --network=host golang:1.14-alpine3.12 go tool pprof -text http://localhost:9999/debug/pprof/profile?seconds=30

or RAM

docker run --rm -it --network=host golang:1.14-alpine3.12 go tool pprof -text http://localhost:9999/debug/pprof/heap

from mediamtx.

aler9 avatar aler9 commented on May 22, 2024

both features are available in v0.9.6.
Please look at the configuration file and the README for instructions on how to use both.

from mediamtx.

github-actions avatar github-actions commented on May 22, 2024

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

from mediamtx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.