sipcapture / HEPop

Multi-Protocol HEP Server & RTC Collector in NodeJS :balloon:
http://sipcapture.io
GNU Affero General Public License v3.0
22 stars 11 forks source link

Streaming Janus events to Loki #41

Closed geo-matheou closed 2 years ago

geo-matheou commented 2 years ago

Hello,

I am using the following configuration to stream janus events to loki: { "id" : "HEPOP_ID", "socket": "http", "port": 8090, "address": "0.0.0.0", "queue": { "timeout": 2000, "maxSize": 1000, "useInterval": true }, "db": { "loki" : { "url": "http://xxx:3100/api/prom/push" } }, "debug": true }

The labels that are created for loki are the following: "labels":"{type=\"json\", id=\"undefined\"}" How can I set a proper value for id? Also, how can I extend the labels array with more fields?

Thank you in advance, George

lmangani commented 2 years ago

Hello @geo-matheou you don't really need HEPop for this - and sadly HEPop is no longer actively maintained.

But no problem! Check out this paStash recipe for Janus which should be more flexible for your use-case allowing your to fine-tune the events and tags more granularly.

The above is designed for our project cLoki which implements a full LogQL API over clickhouse, but should work just as good with Grafana Loki. Feel free to give it a try if you'd like to access your events in multiple ways past the LogQL API through ClickHouse.

geo-matheou commented 2 years ago

Thank you very much @lmangani. I will try it and post any feedback if necessary.