-
According to the documentation of the postgresql receiver the database and table name attributes are no longer available as metric attributes, instead they are now part of the resource attributes. However, for using these metrics through Prometheus, I need access to these attributes and as far as I can see resource attributes are not accessible through Prometheus. In essence: how would I use metrics data from this receiver in Prometheus (when I want to filter for particular tables etc.)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Resource attributes are usually part of the export. They are just the same across all the data points, so we bundle metrics by resource. When exporting to Prometheus, those attributes should be inlined in the export. However, it looks like they're not exported by default. See the flag |
Beta Was this translation helpful? Give feedback.
Resource attributes are usually part of the export. They are just the same across all the data points, so we bundle metrics by resource. When exporting to Prometheus, those attributes should be inlined in the export. However, it looks like they're not exported by default. See the flag
resource_to_telemetry_conversion
to turn that on.