Skip to content

Commit 247a5b9

Browse files
authored
Merge pull request #58 from OpenSLO/sumo-agaurav
Update readme and changelog for v1.0.0 release
2 parents 8187fa4 + ca4dcce commit 247a5b9

16 files changed

Lines changed: 314 additions & 74 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
### [v1.0](https://github.com/OpenSLO/slogen/releases/tag/v1.0.0)
2+
3+
- **Feature** : Support for OpenSLO v1 spec for `SLO`, `AlertPolicy` and `AlertNotificationTarget`
4+
- **Feature** : Support for sumologic native SLO & SLO based monitors.
5+
- **Feature** : Generates flow graph of which `SLO` are using which `AlertPolicy` and `AlertNotificationTarget`
6+
7+
![dep-graph](misc/samples-flowchart.png)
8+
9+
sample configs to try out the above features are available [here](samples/sumologic/v1)
10+
11+
12+
113
### [v0.7](https://github.com/OpenSLO/slogen/milestone/2?closed=1)
214

315
- **Feature** : Timeslice based budgeting (availability calculated w.r.t. good time windows)

README.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
CLI tool to generate SLO dashboards, monitors & SLI data
44
from [OpenSLO](https://github.com/OpenSLO/OpenSLO#specification) configs.
5+
The resources are generated via terraform which can be consumed on its as as well.
6+
57

68
Currently supported vendors/data sources.
79

@@ -10,10 +12,15 @@ Currently supported vendors/data sources.
1012
![list](misc/sumo-sli-list.gif)
1113
![panels](misc/sumo-slo-dashboard.png)
1214

15+
A flow graph of `SLO` to `AlertPolicy` to `AlertNotificationTarget` is also generated in the output dir as `slo-dep-graph.png`.
16+
Flow graphs for sample configs [here](samples/sumologic/v1) (only supported for v1 onward specs).
17+
18+
![dep-graph](misc/samples-flowchart.png)
19+
1320

1421
#### Getting the tool
1522

16-
##### install with go1.17 as `go install github.com/OpenSLO/slogen@latest`
23+
##### install with go1.17 or above as `go install github.com/OpenSLO/slogen@v1.0.0`
1724

1825
latest golang release can be installed by using the directions here : https://github.com/udhos/update-golang#usage.
1926
Add `$GOPATH/bin` to your `$PATH`.
@@ -24,20 +31,6 @@ It can be done with
2431
export PATH=`go env GOPATH`/bin:$PATH
2532
```
2633

27-
##### Get the latest binary from [release page](https://github.com/OpenSLO/slogen/releases) and put it in a directory in your `$PATH` (e.g. `$HOME/.local/bin` )
28-
29-
###### For Linux
30-
31-
``` shell
32-
wget -O - https://github.com/OpenSLO/slogen/releases/download/v0.7.11/slogen_0.7.11_Linux_x86_64.tar.gz | tar xvz -C /path/to/bin
33-
```
34-
35-
###### For Mac
36-
37-
``` shell
38-
wget -O - https://github.com/OpenSLO/slogen/releases/download/v0.7.11/slogen_0.7.11_Darwin_x86_64.tar.gz | tar xvz -C /path/to/bin
39-
```
40-
4134
### Using the tool
4235

4336
##### Set the sumologic auth as `ENV` variables as required by the [terraform provider](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs#environment-variables):
@@ -139,5 +132,5 @@ slogen list -c
139132
```
140133

141134
### Change Log
142-
- [New feature and fixes in v0.7](CHANGELOG.md)
135+
- [New feature and fixes in v1.0](CHANGELOG.md)
143136

go.mod

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ module github.com/OpenSLO/slogen
33
go 1.18
44

55
require (
6-
github.com/OpenSLO/oslo v0.5.1
6+
//github.com/OpenSLO/oslo v0.5.1
77
github.com/fatih/color v1.13.0
88
github.com/go-resty/resty/v2 v2.7.0
9+
github.com/goccy/go-graphviz v0.0.9
910
github.com/hashicorp/go-version v1.6.0
1011
github.com/hashicorp/hc-install v0.4.0
1112
github.com/hashicorp/terraform-exec v0.17.2
12-
github.com/kr/pretty v0.3.0
1313
github.com/manifoldco/promptui v0.9.0
1414
github.com/mattn/go-colorable v0.1.12
1515
github.com/mitchellh/hashstructure/v2 v2.0.2
@@ -19,20 +19,24 @@ require (
1919
gopkg.in/yaml.v3 v3.0.1
2020
)
2121

22+
require github.com/OpenSLO/oslo v0.0.0-00010101000000-000000000000
23+
2224
require (
2325
github.com/chzyer/readline v1.5.1 // indirect
2426
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
27+
github.com/fogleman/gg v1.3.0 // indirect
2528
github.com/fsnotify/fsnotify v1.5.4 // indirect
29+
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
2630
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
2731
github.com/hashicorp/hcl v1.0.0 // indirect
2832
github.com/hashicorp/terraform-json v0.14.0 // indirect
2933
github.com/inconshreveable/mousetrap v1.0.0 // indirect
30-
github.com/kr/text v0.2.0 // indirect
3134
github.com/magiconair/properties v1.8.6 // indirect
3235
github.com/mattn/go-isatty v0.0.14 // indirect
3336
github.com/mitchellh/mapstructure v1.5.0 // indirect
3437
github.com/pelletier/go-toml v1.9.5 // indirect
3538
github.com/pelletier/go-toml/v2 v2.0.2 // indirect
39+
github.com/pkg/errors v0.9.1 // indirect
3640
github.com/rogpeppe/go-internal v1.8.1 // indirect
3741
github.com/russross/blackfriday/v2 v2.1.0 // indirect
3842
github.com/spf13/afero v1.9.2 // indirect
@@ -44,11 +48,12 @@ require (
4448
go.uber.org/atomic v1.9.0 // indirect
4549
go.uber.org/multierr v1.8.0 // indirect
4650
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa // indirect
51+
golang.org/x/image v0.0.0-20200119044424-58c23975cae1 // indirect
4752
golang.org/x/net v0.0.0-20220728211354-c7608f3a8462 // indirect
4853
golang.org/x/sys v0.0.0-20220731174439-a90be440212d // indirect
4954
golang.org/x/text v0.3.7 // indirect
5055
gopkg.in/ini.v1 v1.66.6 // indirect
5156
gopkg.in/yaml.v2 v2.4.0 // indirect
5257
)
5358

54-
//replace github.com/OpenSLO/oslo => github.com/agaurav/oslo v0.3.3-0.20220712184915-bc307d389cf4
59+
replace github.com/OpenSLO/oslo => github.com/agaurav/oslo v0.5.13

0 commit comments

Comments
 (0)