API Json output

Hi Everyone,
I’m a noob at this so this may be a stupid question, but I’m trying to get libre to forward some data to my Elasticsearch, I know there’s a transport, but that doesn’t seem to be very configurable. The transport seems to not support https which I think is required for my open distro Elasticsearch.
I’m also unsure if I can configure the transport to output metric data which is what I’m looking for.
I’d like something like cpu, mem, etc.

I don’t really care how I get them out of libre, I’ve tried some other transports, it seems like API doesn’t let me get anything not included in this list, also is it really rate limited or something? it seems really slow.

Lastly, I’ve tried to use the Libre API itself, that doesn’t seem to have a metric path either, please correct me if I’m wrong though. I was able to find a few paths but they seem to all be graphs.

TLDR; how do I get metrics out of libre in a readable text format (not graphs).

Thank you for any help.

Transports are for Alerts, not for exporting data.

You may want to check https://docs.librenms.org/API/ but you have to script to retrieve data from API and insert into your Elastic.

Thank you @TheGreatDoc for the reply, I’m happy to use the API and a script to achieve this. I can’t seem to find the API path for metrics numbers (not graphs), can you please help with this.

Thank you so much :slight_smile:

Oooops. Looks like you cant get health/sensors values as you can with ports…

Thanks, @TheGreatDoc for the reply, do you know if there is any other way to extract health/sensor data from libranms?
I’m about to resort to scripting a user signing in and then scraping the HTML, which I’m not proud of doing haha.

Thank you :slight_smile:

I’ve seen on other posts, people are doing some direct DB access, I have no idea of where to start with that, if you believe that can solve my issue, could you please point me in the right direction to get started with that.

Thank you so much