Łukasz Mierzwa and Łukasz Mierzwa
0b68886c43
fix(backend): run make format
2026-05-12 16:18:48 +01:00
Lukasz Mierzwa and Łukasz Mierzwa
0710751f56
fix(backend): remove zerolog
2026-03-13 17:18:40 +00:00
Lukasz Mierzwa and Łukasz Mierzwa
ca4364cf9d
fix(docs): fix typos
2026-03-11 13:10:15 +00:00
Lukasz Mierzwa and Łukasz Mierzwa
f207da0f79
fix(backend): use less memory
2026-03-11 13:10:15 +00:00
Lukasz Mierzwa and Łukasz Mierzwa
3ab3417931
fix(backend): fix some go issues
2026-03-09 19:44:23 +00:00
Łukasz Mierzwa and Łukasz Mierzwa
ad02283ca2
chore(project): bump linter tools
2026-02-07 20:13:03 +00:00
Lukasz Mierzwa and Łukasz Mierzwa
e0478ec685
fix(backend): replace intern package with unique
2025-10-30 12:59:44 +00:00
Lukasz Mierzwa and Łukasz Mierzwa
ccd14cbc7f
fix(backend): reduce allocations
2025-09-04 14:43:18 +01:00
Lukasz Mierzwa and Łukasz Mierzwa
492c564e74
chore(project): update deps, fix linter errors
2025-09-04 13:59:00 +01:00
Lukasz Mierzwa and Łukasz Mierzwa
47a046959f
fix(backend): reduce allocations in transform package
2025-09-03 16:10:56 +01:00
Łukasz Mierzwa and Łukasz Mierzwa
e6a886ed36
chore(backend): update all deps
2025-03-19 10:57:49 +00:00
Łukasz Mierzwa and Łukasz Mierzwa
df64dbc33d
fix(tests): fix TestStripReceivers
2025-03-17 22:18:01 +00:00
Erica Mays and Łukasz Mierzwa
d8d97b8914
feat: support regular expressions in receiver configs
...
This allows using the `keep_re` and `strip_re` keys to specify which
receivers should be shown in the dashboard. This makes it easy to select
groups of receivers based on naming conventions.
2025-03-17 22:18:01 +00:00
Łukasz Mierzwa and Łukasz Mierzwa
689866a64c
fix(backend): enable more Go linters
2022-07-15 18:32:07 +01:00
Łukasz Mierzwa and Łukasz Mierzwa
c90a5063ef
fix(api): move static & valueOnly label information to a map
2021-11-01 00:18:05 +00:00
Łukasz Mierzwa and Łukasz Mierzwa
8f7cca40cc
fix(api): use slices for labels instead of maps
2021-10-29 17:18:15 +01:00
Alex Kampmeier and Łukasz Mierzwa
7018eb1c8b
feat(config): add config parameters labels.keep_re and labels.strip_re
2021-10-28 10:44:38 +01:00
Łukasz Mierzwa and Łukasz Mierzwa
50cd656cf3
fix(backend): use randomcolor fork
...
Forked code doesn't require any locks
2021-07-05 22:20:33 +01:00
Łukasz Mierzwa and Łukasz Mierzwa
640c701295
chore(backend): migrate from gin-gonic/gin to go-chi/chi
...
Gin comes with a lot of dependencies and doesn't use Go standard http handler.
Chi is smaller and allows to use standard middleware.
2020-10-18 11:57:43 +01:00
Łukasz Mierzwa and Łukasz Mierzwa
170dba8a37
chore(backend): use zerolog instead of logrus
2020-10-15 10:10:00 +01:00
Łukasz Mierzwa and Łukasz Mierzwa
5dc839696b
fix(backend): avoid race conditions when generating label colors
2020-07-08 11:21:56 +01:00
Łukasz Mierzwa and Łukasz Mierzwa
fcb207f397
fix(api): return label color data as rgba strings
2020-06-25 18:28:49 +01:00
Łukasz Mierzwa and Łukasz Mierzwa
0c65bc7821
feat(tests): add looppointer linter
2020-06-24 22:35:22 +01:00
Łukasz Mierzwa
0015d3fa4e
feat(ui): replace jira link detection with a generic link finder
...
Fixes #1140
2019-11-11 23:24:06 +00:00
Łukasz Mierzwa
939970fd5f
fix(backend): reformat backend code
2019-08-17 14:52:35 +01:00
Łukasz Mierzwa
aa070a769c
fix(config): change config schema to allow regex based matches
...
BREAKING CHANGE: this changes configuration schema for custom label values, it provides more flexibility when setting custom labels and also prevents '*' special wildcard value from conflicting with labels, since '*' is a valid label value.
Fixes #537
2019-03-21 11:17:18 +00:00
Łukasz Mierzwa
4ef9052a98
feat(api): allow using wildcards with custom colors
...
Fixes #537
2019-03-20 21:15:04 +00:00
Łukasz Mierzwa
9e4abbd42b
feat(backend): allow setting custom colors for labels
...
This allows to have a user defined color (rgb or hex) for label values configured in the config file
2019-02-04 13:18:47 +00:00
Łukasz Mierzwa
e1f9686e3f
feat(backend): allow stripping annotations
...
This allows same filtering we already have with labels. Fixes #312
2019-01-15 22:12:23 +00:00
Łukasz Mierzwa
ade996a6ec
refactor(api): move autocomplete code to filters
2018-10-08 23:15:28 +01:00
Łukasz Mierzwa
090d73350c
refactor(colors): move font color selection to the fronted
...
Right now backend sends both background and font color information, refactor to send background color and background brightness level (needed to pick font color) and let UI apply font color. Needed to implement #18
2018-09-30 13:50:21 +01:00
Łukasz Mierzwa
9c16ffa447
chore(project): rename from unsee to karma
...
Fixes prymitive/unsee#23
2018-09-09 14:12:26 +01:00
Łukasz Mierzwa
cd0ef2421c
feat(tests): more backend tests
2018-09-07 22:03:33 +01:00
Łukasz Mierzwa
def3236645
fix(style): check of WriteString error return
2018-08-11 22:54:45 +01:00
Łukasz Mierzwa
7a6538e8ff
fix(style): should omit comparison to bool constant
2018-08-11 08:25:57 +01:00
Łukasz Mierzwa
0310d9d4bc
fix(style): should merge variable declaration with assignment
2018-08-11 08:24:58 +01:00
Łukasz Mierzwa
b71883f1ef
Migrate to new repo
...
Forked unsee from cloudflare, so import paths needs to be updated
2018-06-07 15:30:57 +02:00
Łukasz Mierzwa
65a27b39df
Move label coloring config options from 'color' to 'labels' section
2017-12-03 10:09:17 -08:00
Łukasz Mierzwa
860375650e
Add --receivers.keep for consistency with other options
...
there's --labels.keep so same should apply to receivers, add new option, tests and fixes as it wasn't working properly
2017-12-02 21:51:31 -08:00
Łukasz Mierzwa
6273a5a585
Rewrite flag & env handling to use viper
...
This adds support for reading configuration from file, env support is still there and legacy env variables will still work, but flags are now following config schema, so they don't match old flags.
Having a config file allows to express more complex configuration options, which is needed for some feature requests.
2017-11-27 20:34:36 -08:00
Luke Overend
f8c327c2d7
Add REMOVE_RECEIVERS option
...
This option allows for all alerts for a specified receiver, or list of
receivers, to be removed from unsee.
My use case for this is using a receiver for auto-remediation which will
contain information that the user will never need to see in the UI.
2017-11-24 07:51:07 +00:00
Łukasz Mierzwa
54b1455276
Use dedicated struct for storing alert annotations
...
Annotations are just string maps, but to render those we need a bit more information (is it a link, should it be visible by default). Store them as more complex structs internally, this also allows us to drop alert.Links since we now have enough information to tell if annotation is a link
2017-09-07 12:15:32 -07:00
Łukasz Mierzwa
549ff9eefd
Add KEEP_LABELS option for whitelisting labels
...
This allows to provide a list of labels that are the only labels allowed in the UI, reversing the logic of STRIP_LABELS.
Fixes #170
2017-08-11 12:28:02 -07:00
Łukasz Mierzwa
5d4ae47888
Convert all packages to be internal
...
Internal packages are supported by Go 1.5+, any package in /internal/ dir is only importable from the same repo. This will cleanup main dir a bit and provide better namespace for unsee subpackages
2017-08-04 16:21:27 -07:00