Tomás Arribas
06/02/2025, 4:24 PMbody.service
field that I would like to use for this, but it doesn't seem to be possible (I tried with pipelines but it seems that's not what they are for)Gil
06/04/2025, 8:05 AMTomás Arribas
06/04/2025, 9:21 AMbody.service
, or if not at least on the k8s.job.name
. Is that possible at all?
I have a single centralised collector where all data is sent to, not a collector per deployment.Gil
06/04/2025, 12:59 PMtransform/http_code:
metric_statements:
- context: datapoint
statements:
- set(attributes["health_score"], 3) where attributes["http.status_code"] == 200
- set(attributes["health_score"], 2) where attributes["http.status_code"] >= 300 and attributes["http.status_code"] < 500
- set(attributes["health_score"], 1) where attributes["http.status_code"] >= 500
maybe you can set depending of the value of body.service.Tomás Arribas
06/04/2025, 2:07 PMset(resource["service.name"], attributes["body.service"])
?
As in the signoz docs it says that for that area of the left pane:
> Maps to resource[service.name]
opentelemetry resource attribute.
https://signoz.io/docs/logs-management/features/logs-quick-filters/#service-nameTomás Arribas
06/04/2025, 2:07 PMGil
06/04/2025, 2:20 PM