这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@sipidronov
Copy link

@sipidronov sipidronov commented Jun 29, 2018

As a followup for #2251 here's an implementation of passing Expression-specific data (alert-name in this case) into graphite context so that the config like
[GraphiteConf]
Host = "localhost:80"
[GraphiteConf.Headers]
X-Meow = "Mix {alert-name}"

Results in the following request to Graphite for "alert os.super-duper-high.cpu":
GET /render/?format=json&from=1530262155&target=%2A.cpu.%2A.cpu.idle%29&until=1530262455 HTTP/1.1
Host: localhost:80
User-Agent: Bosun/0.7.0-dev
X-Bosun-Server: c02w708ghv2t
X-Meow: Mix os.super-duper-high.cpu
Accept-Encoding: gzip

If the machinery looks good I'd expect macros substitution to be extended and optimised.

@stepashka
Copy link

Hey Alexander @sipidronov!
This patch seems to have conflicts with upstream, could you review these changes by any chance?
Thanks,
Anna

sipidronov and others added 6 commits September 20, 2018 17:24
Adds new configuration options for Elasticsearch to allow
https, basic auth, custom names.
- conf/unknownNotify.go: added incident states to unknown context and a new func `IncidentUnknownLink` to build unknown incident link.
 - sched/notify.go: modified `sendUnknownNotifications` func to pass incident states.
 - docs/definitions.md: unknown template document update
@sipidronov
Copy link
Author

Will re-submit PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants