metrics.prometheus
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 |
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.job | metrics.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 |
---|---|---|---|---|---|
eventdate | date(2021-04-07 15:51:00.305) | timestamp | |||
hostname |
| str | hostchain | ✓ | |
tag | metrics.prometheus | str | ✓ | ||
instanceUrl | demo.robustperception.io:9100 | str | instance | ||
job | node | str | = vjob | ||
name | node_timex_frequency_adjustment_ratio | str | |||
label | [{"a": "b"}] | str | |||
value | 1.0000054137420655 | float | ifthenelse(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 | ✓ | ||
metricTime | 1602600368 | timestamp | 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 | ✓ |