Skip to content

Commit

Permalink
Merge branch 'main' of github.com:SumoLogic-Labs/slogen
Browse files Browse the repository at this point in the history
  • Loading branch information
agaurav committed Jan 21, 2022
2 parents d84e607 + 2d0898e commit eb8f47b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ export PATH=`go env GOPATH`/bin:$PATH
###### For Linux

``` shell
wget -O - https://github.com/SumoLogic-Labs/slogen/releases/download/v0.7.7/slogen_0.7.7_Linux_x86_64.tar.gz | tar xvz -C /path/to/bin
wget -O - https://github.com/SumoLogic-Labs/slogen/releases/download/v0.7.8/slogen_0.7.8_Linux_x86_64.tar.gz | tar xvz -C /path/to/bin
```

###### For Mac

``` shell
wget -O - https://github.com/SumoLogic-Labs/slogen/releases/download/v0.7.7/slogen_0.7.7_Darwin_x86_64.tar.gz | tar xvz -C /path/to/bin
wget -O - https://github.com/SumoLogic-Labs/slogen/releases/download/v0.7.8/slogen_0.7.8_Darwin_x86_64.tar.gz | tar xvz -C /path/to/bin
```

### Using the tool
Expand Down
3 changes: 2 additions & 1 deletion libs/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ const breakDownPanelQueryTimeslices = `
| BudgetRemaining*100 as %"Budget Remaining (%)"
| order by BudgetRemaining asc
| Availability_Percentage as %"Availability (%)"
| fields customer_id, %"Availability (%)", %"Budget Remaining (%)", %"Budget Remaining (Time)"
| fields {{if ne .GroupByStr ""}} {{.GroupByStr}}, {{end}} %"Availability (%)", %"Budget Remaining (%)", %"Budget Remaining (Time)"
`

const pd = `
_view=slogen_tf_cloudcollector_cc_ingest_lag_v2
| timeslice 1m
Expand Down
2 changes: 1 addition & 1 deletion samples/openslo/ingest-lag-timeslice-budgeting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
incremental: true
createView: true
fields:
customer_id: "customer_id"
customerID: "customer_id"
deployment: 'if(isNull(deployment),"dev",deployment)' # using an expression
cluster: 'if(isNull(cluster),"-",cluster)'
labels:
Expand Down

0 comments on commit eb8f47b

Please sign in to comment.