Document toolboxDocument toolbox

.metrics.prometheus vv7.9.0

Introduction

The tags beginning with metrics.prometheus identify events generated by Prometheus.

Valid tags and data tables

The full tag must have 3 levels. The first two are fixed as metrics.prometheus. The third level identifies the job of events sent.

Technology

Brand

Type

metrics

prometheus

  • prometheus
  • node
  • apiserver
  • alertmanager
  • pushgateway

These are just a few of the available options for this level. The collector will assign this level to the tag automatically depending on the event type.

These are the valid tags and corresponding data tables that will receive the parsers' data:

Tag

Data table

metrics.prometheus.jobmetrics.prometheus

How is the data sent to Devo?

Logs generated by Prometheus are forwarded to Devo using a dedicated collector. Contact us if you need to forward these events to your Devo domain so we can guide you through the process.

Learn more about how to send Prometheus logs and their structure here.

Log samples

The following are sample logs sent to each of the metrics.prometheus data tables. Also, find how the information will be parsed in your data table under each sample log.

Extra columns

Fields marked as Extra in the table below are not shown by default in data tables and need to be explicitly requested in the query. You can find them marked as Extra when you perform a query so they can be easily identified. Learn more about this in Selecting unrevealed columns.

metrics.prometheus

2021-04-07 15:51:00.305 localhost=127.0.0.1 metrics.prometheus.node: {"instance": "demo.robustperception.io:9100", "job": "node", "name": "node_timex_frequency_adjustment_ratio", "label": [{"a": "b"}], "value": "1.0000054137420655", "timestamp": 1602600368}\n
2021-04-07 15:51:00.305 localhost=127.0.0.1 metrics.prometheus.node: {"instance": "demo.robustperception.io:9100", "job": "node", "name": "node_timex_frequency_adjustment_ratio", "label": [{"a": "b"}], "value": "+Inf", "timestamp": 1602600368}\n'

And this is how the log would be parsed:

Field

Value

Type

Field transformation

Source field name

Extra fields 

eventdatedate(2021-04-07 15:51:00.305)timestamp


hostname

localhost

str
hostchain✓
tagmetrics.prometheusstr

✓
instanceUrldemo.robustperception.io:9100str
instance
jobnodestr= vjob

namenode_timex_frequency_adjustment_ratiostr


label[{"a": "b"}]str


value1.0000054137420655floatifthenelse(value_str = 'NaN', null(0.0), ifthenelse(value_str = '+Inf', null(0.0), ifthenelse(value_str = '-Inf', null(0.0), float8(value_str))))

value_str
str
value✓
metricTime1602600368timestamp
timestamp
client

=vclient
✓
rawMessage{"instance": "demo.robustperception.io:9100", "job": "node", "name": "node_timex_frequency_adjustment_ratio", "label": [{"a": "b"}], "value": "1.0000054137420655", "timestamp": 1602600368}str

✓