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

reporting to time series db like eg influx / prometheus #103

Open
f1-outsourcing opened this issue Sep 12, 2021 · 2 comments
Open

reporting to time series db like eg influx / prometheus #103

f1-outsourcing opened this issue Sep 12, 2021 · 2 comments

Comments

@f1-outsourcing
Copy link

I am new to gstreamer, and came across your video about profiling[1] because I was looking for some stats reporting on pipelines. So maybe my question is not applicable. But did you ever think about using time series databases and dashboards in eg grafana?

[1]
https://www.youtube.com/watch?v=6HGDkMuqRvs

@michaelgruner
Copy link
Collaborator

Oh I would love a smarter data visualization dashboard. I wasn't familiar with Grafana and indeed looks looks very interesting. It certainly applies, may I interest you in starting this effort? :)

@RidgeRun RidgeRun deleted a comment from fischer Sep 24, 2021
@f1-outsourcing
Copy link
Author

f1-outsourcing commented Oct 1, 2021

Hmm, I am not really sure if my help would be sufficient since I am not really familiar with gst-shark, I did not even run stats yet.
Grafana draws graphs from data stored in supported backends like prometheus, influx but also things like mysql.
Since you are having time series data, it is probably interesting to choose a storage backend like influx or prometheus.

Prometheus is in it's default setup is scrapping data. Which means prometheus would connect to gst-shark and retrieves the data.
I do not think you would want to start with this.

The default of influx is that it is receiving data from the clients and stores it. I think this is the easiest way to start. I have some shell script that stores data in influx with this

curl -i -XPOST "http://$SERVER:$PORT/write?db=$DATABASE" --data-binary ''"$MEASUREMENT"',host='"$LOGHOSTNAME"' value="'"$LOGMESSAGE"'" '"$DATEEPO"''

As I do not know what gst-shark is outputting and how much, one can think of buffering some data and send it as one request, because 'real time' graphs are not really interesting (I assume, grafana has a min. refresh rate of 5s).

If you want to experiment with an influx and grafana environment and do not want to setup a development environment, I can open some firewall ports of our environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants