Commit Graph
34 Commits
Author SHA1 Message Date
Łukasz Mierzwa 2ab6892c85 feat(backend): use username from credentials for silences
When authentication is enabled and proxy mode is on then ensure all silences are created with the username from credentials, rather than what the user sends.
2020-02-26 11:26:19 +00:00
Łukasz Mierzwa 908c2b96d5 fix(project): drop support for Alertmanager v1 API 2020-02-12 16:09:55 +00:00
Łukasz Mierzwa 95f197bd34 fix(tests): more test coverage 2020-02-11 15:32:41 +00:00
Łukasz Mierzwa 62b7d85f70 fix(tests): remove v0.61 mapper
That version had problems, remove it
2020-02-06 15:08:17 +00:00
Łukasz Mierzwa 43bd35a94f fix(backend): update api v2 client code 2020-02-02 10:38:14 +00:00
Renovate BotandŁukasz Mierzwa 5a07013f13 chore(deps): update quay.io/goswagger/swagger docker tag to v0.22.0 2020-02-02 10:38:14 +00:00
Łukasz Mierzwa ae7b097630 fix(backend): correct pre-release version parsing for alertmanager upstreams
Fixes #1229
2019-12-05 19:10:56 +00:00
Łukasz Mierzwa ac6f8c0093 fix(build): don't upgrade packages during docker builds 2019-12-02 14:15:42 +00:00
Renovate Bot e4ec6aa7c1 chore(deps): update quay.io/goswagger/swagger docker tag to v0.21.0 2019-10-19 08:56:36 +00:00
Łukasz Mierzwa 755e950e35 fix(docker): run apk update && apk upgrade when installing packages 2019-10-18 16:01:25 +01:00
Łukasz Mierzwa c7593b0028 fix(backend): migrate to Masterminds/semver v3 2019-09-14 12:34:52 +01:00
Łukasz Mierzwa d57ac12fd4 chore(backend): use Masterminds/semver instead of blang/semver 2019-09-10 15:36:30 +01:00
Renovate Bot 96ada9e09a chore(deps): update quay.io/goswagger/swagger docker tag to v0.20.1 2019-08-20 08:54:10 +00:00
Łukasz Mierzwa f2d04f662a chore(backend): regenerate am >=0.17 client code using swagger 0.20.0 2019-08-19 11:04:39 +01:00
Renovate BotandŁukasz Mierzwa 771bcda27a chore(deps): update quay.io/goswagger/swagger docker tag to v0.20.0 2019-08-19 11:04:39 +01:00
Łukasz Mierzwa 6b497217d9 fix(backend): remove endsAt from alerts
This is unused but keeps changing
2019-08-08 15:45:00 +01:00
Łukasz Mierzwa 50cdc617e7 fix(backend): don't hardcode success reponse string
Linter doesn't like repeated strings, neither should I
2019-06-22 17:48:33 +01:00
Łukasz Mierzwa 4bd9f447e2 feat(backend): query cluster status via v2 Alertmanager API
This change switches to v2 API when querying for cluster status on Alertmanager 0.17.0+.
v1 will soon be removed so this is needed to support future Alertmanager releases
2019-06-22 17:48:33 +01:00
Łukasz Mierzwa abaf9f1d47 fix(backend): pass basic auth to the v2 API mapper 2019-05-09 19:17:42 +01:00
Łukasz Mierzwa 94ddb04b93 chore(backend): rename mapper to match alertmanager version 2019-05-03 20:01:43 +01:00
Łukasz Mierzwa dfea73923c refactor(backend): add support for OpenAPI based client for alertmanager 2019-04-24 20:56:58 +01:00
Łukasz Mierzwa 536d9cbba3 feat(backend): add mapper support for alertmanager v0.16+ 2019-04-24 20:56:00 +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 c6dc362186 fix(style): error strings should not be capitalized or end with punctuation or a newline 2018-08-11 23:03:02 +01:00
Łukasz Mierzwa fb17ed7e31 fix(style): simplify group appends 2018-08-11 08:29:03 +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 ded69c11ff Drop the path from v0.4 query args
This results in requests to 'GET http://localhost:9093/api/v1/silences?api/v1/silences?limit=2147483647' instead of 'GET http://localhost:9093/api/v1/silences?limit=2147483647'. Too much copy&paste.
2018-01-25 19:34:35 -08:00
Łukasz Mierzwa 0f73b20bc6 Allow passing query args to HTTP requests send to the Alertmanager API
Alertmanager 0.4.x silences endpoint uses pagination, code for this was incorrectly dropped in #216, re-add it. Requires a way for mapper packages to signal the need for passing query args to HTTP requests
2018-01-24 19:09:02 -08:00
Łukasz Mierzwa 6f89a77f8d Rename 'transport' package to 'uri'
This package adds handlers for different URI schemes, name clashes with http.Transport which is now passed around. Rename it to make it more obvious what it does
2018-01-23 19:32:39 -08:00
Łukasz Mierzwa c7fb8db98d Drop Release() from SilenceMapper
Not used
2018-01-22 11:26:36 -08:00
Łukasz Mierzwa 6124196b0f Finish refactoring mapper package
Fix bugs, add docstrings and let each mapper give us full url since it doesn't handle any http requests now (it just maps text to objects now)
2018-01-22 11:26:36 -08:00
Łukasz Mierzwa 0b30a23c2a Refactor mapper package responsibilities
Mapper should only take input, decode it and map onto internal model instances
2018-01-22 11:26:35 -08: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 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