I'm currently focused on optimizing Prometheus for higher performance by reducing cardinality in our setup. I'm seeking assistance in understanding how Prometheus aggregates metrics after a label is dropped. I couldn't find any documentation on this.
For example, consider the following metric: response_bucket{le="0.1", status="200", path="/api/users"} = 10 response_bucket{le="0.1", status="500", path="/api/users"} = 5 response_bucket{le="0.1", status="200", path="/api/products"} = 8 response_bucket{le="0.1", status="500", path="/api/products"} = 8 Since we're not using the 'status' label in our dashboard queries, I want to drop the 'status' label. How would Prometheus create the final series values? I'm using following config to drop label from specific metric - source_labels: [__name__, status] regex: (response_bucket.*) replacement: "" target_label: status -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/dfe9757c-d157-4206-8287-f0d0c66e3f73n%40googlegroups.com.