Uninett / Argus

Argus is an alert aggregator for monitoring systems
GNU General Public License v3.0
18 stars 12 forks source link

Tags concept should be reworked to metadata #817

Open lunkwill42 opened 1 month ago

lunkwill42 commented 1 month ago

Argus' tag concept is simple enough for most cases where arbitrary metadata needs to be attached to an incident: A flat list of key/values, where values are always strings.

However, there are many use-cases where metadata needs to be slightly more complex, especially if we want to introduce more advanced filtering functionality. Some examples:

Ultimately, #790 introduced a new metadata attribute to the incident model. This attribute is a JSON document, which would allow for nearly arbitrarily complex metadata (within reason). It was added as an alternative to tags, but Argus has (not yet, anyway) no filtering capabilities for this field.

I would suggest that the current tag model be entirely scrapped and replaced by the new metadata attribute.

As discussed in https://github.com/Uninett/Argus/issues/790#issuecomment-2084505676 and IRL several times.