8000 bump version by yaacov · Pull Request #137 · MohawkTSDB/mohawk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bump version #137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mohawk.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name: %{repo}
Version: 0.28.5
Version: 0.30.4
Release: 1%{?dist}
Summary: Time series metric data storage
License: Apache
Expand Down Expand Up @@ -47,7 +47,7 @@ install -p -m 0755 ./mohawk %{buildroot}%{_bindir}/mohawk
%{_bindir}/mohawk

%changelog
* Wed Dec 31 2017 Yaacov Zamir <kobi.zamir@gmail.com> 0.28.5-1
* Wed Dec 31 2017 Yaacov Zamir <kobi.zamir@gmail.com> 0.30.4-1
- Add options response
- Fix query by tags

Expand Down
4 changes: 2 additions & 2 deletions src/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ When installed, run using the command line ``mohawk``
```bash
mohawk --version

Mohawk version: 0.28.5
Mohawk version: 0.30.4
```

The `-h` flag will print out a help text, that list the command line arguments.
Expand All @@ -26,7 +26,7 @@ Mohawk is a metric data storage engine that uses a plugin architecture for data
storage and a simple REST API as the primary interface.

Version:
0.28.5
0.30.4

Author:
Yaacov Zamir <kobi.zamir@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion src/server/examples/push_metrics_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ while true; do
VAL=$(($RANDOM % 100))
curl http://${MOHAWK_URL}/hawkular/metrics/gauges/raw \
-H "Content-Type: application/json" \
-d "[{\"id\":\"free_memory\",\"data\":[{\"timestamp\":\"$(date +%s%N | cut -b1-13)\",\"value\":\"${VAL}\"}]}]"
-d "[{\"id\":\"free_memory\",\"data\":[{\"timestamp\":$(date +%s)000,\"value\":${VAL}}]}]"

# Wait 30 sec
sleep ${SLEEP}
Expand Down
4 changes: 2 additions & 2 deletions src/server/handlers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ import (
const defaultLimit = 2000

// const defaultOrder default REST API call query order
const defaultOrder = "DESC"
const defaultOrder = "ASC"

// const secondaryOrder secondary REST API call query order
const secondaryOrder = "ASC"
const secondaryOrder = "DESC"

// APIHhandler common variables to be used by all APIHhandler functions
// version the version of the Hawkular server we are mocking
Expand Down
2 changes: 1 addition & 1 deletion src/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
)

// VER the server version
const VER = "0.28.5"
const VER = "0.30.4"

// defaults
const defaultAPI = "0.21.0"
Expand Down
2 changes: 1 addition & 1 deletion src/storage/memory/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (r Storage) GetStatData(tenant string, id string, end int64, start int64, l

// fill data out array
count := int64(0)
for b := pEnd; count < limit && b > pStart && startTimestamp >= stepMillisec; b -= pStep {
for b := pEnd; count < limit && b >= pStart && startTimestamp >= stepMillisec; b -= pStep {
samples := int64(0)
sum := float64(0)
first := float64(0)
Expand Down
4 changes: 2 additions & 2 deletions test/mohawk.bats
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ wait_for_alert() {
[ "$status" -eq 0 ]
}

@test "Mohawk is installed in version 0.28.5" {
@test "Mohawk is installed in version 0.30.4" {
run mohawk --version

[[ "$output" =~ "0.28.5" ]]
[[ "$output" =~ "0.30.4" ]]
}

@test "Server should be available" {
Expand Down
0