[Proposal] Integrate Prometheus with an open source OPC UA client

1,035 views
Skip to first unread message

Maximiliano Lopez

unread,
Dec 23, 2017, 9:15:56 AM12/23/17
to Prometheus Developers
Can you consider integrating Prometheus with an open source OPC UA client to read and control an OPC UA server that exposes PLC I/O through "tags"?
The Alertmanager could be used to control PLC outputs when a condition is met alongside sending notifications.
Thanks a lot!

Julius Volz

unread,
Dec 24, 2017, 5:20:07 AM12/24/17
to Maximiliano Lopez, Prometheus Developers
Hey,

I had to Google what OPC UA is (https://en.wikipedia.org/wiki/OPC_Unified_Architecture) ;) It seems that comes more from the industrial world, which few of us will have experience with.

What kind of integration would you like to see that Prometheus does not offer yet? Prometheus already has a lot of open integration points:

- the format to expose metrics can be implemented in any language / by anyone (https://prometheus.io/docs/instrumenting/exposition_formats/)

- the protocol between Prometheus and Alertmanager is open and documented and stable (https://prometheus.io/docs/alerting/clients/)

- the Alertmanager can deliver notifications to webhooks, for which anyone can build a receiver to trigger arbitrary control actions (https://prometheus.io/docs/alerting/configuration/#<webhook_config>)

- remote storage integrations allow you to write scraped sample data into whatever system you want (or read it out) (https://prometheus.io/docs/prometheus/latest/storage/#remote-storage-integrations)

So as far as I understand what you are going after, it should already be possible to integrate with Prometheus in that way?

Cheers,
Julius

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/06616c85-cc87-458a-a004-62c4380bccab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Maximiliano Lopez

unread,
Jan 6, 2018, 12:07:35 AM1/6/18
to Prometheus Developers
Hi there. I don't know how to reply to your post.
Something like this https://github.com/coussej/node-opcua-logger is the integration I was trying to describe. It would be great if Prometheus could be used for the alerting part, as InfluxDB is the best database for time-series data.
I have a lot to learn about Prometheus.
Thank you for your help.

Matthias Rampke

unread,
Jan 8, 2018, 9:15:25 AM1/8/18
to Maximiliano Lopez, Prometheus Developers
Keep in mind that (different from InfluxDB) Prometheus is not a good fit for event-like data. You can count events by category/tag, but you can't generically "log all events".

As far as I understand, what you are asking for would take the form of an exporter – a separate process that collects metrics somehow and exposes them for Prometheus to scrape. Anyone can write exporters as needed. It seems to me like OPC UA is a generic communications protocol, so a generic exporter that works for every use case might be difficult because the configuration would need to be very complex. You can however also write exporters[0] for very specific use cases, where you can just code in all the business logic that you need to transform from messages into metrics.

Hope this helps!
MR

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/f27f615d-7a7f-4ff9-a4f9-0d6db528866c%40googlegroups.com.

Jean Baptiste Guerraz

unread,
Nov 8, 2020, 11:03:58 PM11/8/20
to Prometheus Developers
FTR we've produced an OPCUA exporter for Prometheus: https://github.com/skilld-labs/telemetry-opcua-exporter
Hope it could helps!
Reply all
Reply to author
Forward
0 new messages