Skip to content

Per topic counter #16

Open
Open

Description

@berkovskyy

It would be great to have counter working on a per topic basis (similar to rbe node). Example use case would be counting number of failures from ping node.

Activity

  1. self-assigned this
    on Apr 23, 2020
  2. dkern commented on Apr 23, 2020

    @dkern
    Owner

    I'm not sure if this is worth implementing it and if this is a good idea. There could possible an endless amount of topics to store. If you want to count on a single topic, put a topic filtering node in front of it, so you only count the messages you want to. That is pretty easy and can be customize by everyone on it's own. I think that it the best approach.

  3. berkovskyy commented on Apr 23, 2020

    @berkovskyy
    Author

    Filtering approach won't work in many cases. In my particular one I am checking connectivity to 20+ hosts by triggering ping node with list of ip addresses which is formed dynamically. The ping node emits a message per host with the message containing result of ping and "topic" set to ip address. I am looking to count number of failed pings per host and trigger different actions accordingly.

  4. dkern commented on Apr 23, 2020

    @dkern
    Owner

    I understand what you want to do. Actually, i think the node one would be still the wrong node to use here imo. That would be a better job for a throttle node. But to be honest, it didn't support topics as well. ;) But i think i would rather implement a topic split in the throttle node, than in the counter node. I think it makes more sense ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions