Skip to main content

Setting up the metric feature using Prometheus for the OPC-UA extractor

  • October 13, 2023
  • 1 reply
  • 72 views

Andre Alves
MVP
Forum|alt.badge.img+14

Is there an example available for setting up the metric feature using Prometheus for the OPC-UA extractor, similar to what is shown for the PI extractor in the Cognite Academy? 

1 reply

Andre Alves
MVP
Forum|alt.badge.img+14
  • Author
  • MVP
  • October 13, 2023

I found it on Cognite Extractor OPC-UA GitHub. I'll give it a try.

metrics:
# Start a metrics server in the extractor for Prometheus scrape
server:
host:
port: 0
# Multiple Prometheus PushGateway destinations:
push-gateways:
- host:
job:
username:
password:
# Configuration to treat OPC-UA nodes as metrics.
# Values will be mapped to opcua_nodes_NODE-DISPLAY-NAME in prometheus.