Skip to content

Commit

Permalink
Remove data_id from listener metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorjerse committed Aug 28, 2024
1 parent bf494db commit 7fd8e20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Changed
-------
- Move metrics endpoint configuration to Django settings and read it from
``RESOLWE_METRICS_ENDPOINT`` environmental variable
``RESOLWE_LISTENER_METRICS_ENDPOINT`` environmental variable
- Remove attribute ``data_id`` from listener metrics


===================
Expand Down
3 changes: 0 additions & 3 deletions resolwe/flow/managers/listener/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import logging
import socket
from contextlib import suppress
from time import time
from typing import Any

Expand Down Expand Up @@ -136,8 +135,6 @@ def event(

attributes = self._attributes_from_message(message)
attributes["pod"] = self._hostname
with suppress(Exception):
attributes["data_id"] = abs(int(peer_identity))

match event_type:
case MessageProcessingEventType.MESSAGE_RECEIVED:
Expand Down

0 comments on commit 7fd8e20

Please sign in to comment.