-
Incident report
-
Resolution: Fixed
-
Trivial
-
None
-
4.2.6
-
None
Hello,
I'm trying to get data from an prometheus-exporter.
The data looks like:
- HELP nokia_state_port_3_1_c20_1_ethernet_statistics_ethernet_like_medium_collision_single Description not available
- TYPE nokia_state_port_3_1_c20_1_ethernet_statistics_ethernet_like_medium_collision_single gauge
nokia_state_port_3_1_c20_1_ethernet_statistics_ethernet_like_medium_collision_single 0.0 - HELP nokia_state_port_3_1_c20_1_ethernet_statistics_out_unicast_packets Description not available
- TYPE nokia_state_port_3_1_c20_1_ethernet_statistics_out_unicast_packets gauge
nokia_state_port_3_1_c20_1_ethernet_statistics_out_unicast_packets 0.0 - HELP nokia_state_port_3_1_c20_1_ethernet_statistics_packet_size_octets_1024_to_1518 Description not available
- TYPE nokia_state_port_3_1_c20_1_ethernet_statistics_packet_size_octets_1024_to_1518 gauge
nokia_state_port_3_1_c20_1_ethernet_statistics_packet_size_octets_1024_to_1518 0.0
The Port 3_1_c20_1 is retrieved within Discovery as {#PORTNAME}.
As you can see I would need to use Prometheus Pattern:
nokia_state_port_{#PORTNAME}_ethernet_statistics_out_unicast_packets
Unfortunately when using this I've got the error:
Incorrect value for field "params": invalid Prometheus pattern.
I can only use
{#PORTNAME}as Macro itself or just Text.
I think it should be possible to use LLD-Macros within Prometheus Pattern to retrieve different data.