Skip to content
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

統計ウェブフックと ClickHouse に対応する #115

Merged
merged 23 commits into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ jobs:
- run: go version
- run: go fmt .

- uses: dominikh/[email protected]
with:
version: "2023.1.6"
install-go: false
# - uses: dominikh/staticcheck-action@v1
# with:
# version: "2023.1.7"
# install-go: false

# - name: Test
# run: make test

- name: Test
run: make test
# - name: Test
# run: go test -run TestDummy

- name: Build
run: make
18 changes: 17 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@
- FIX
- バグ修正

## feature/clickhouse

- [CHANGE] go.mod で go 1.22.4 を要求するようにする
- @voluntas
- [CHANGE] 統計エクスポーターから統計ウェブフックへ変更する
- HTTP/2 対応を削除
- 設定ファイルに stats_webhook_path を追加
- @voluntas
- [CHANGE] TimescaleDB から ClickHouse へ変更する
- 設定ファイルに clickhouse_addr を追加
- 設定ファイルに clickhouse_port を追加
- 設定ファイルに clickhouse_database を追加
- 設定ファイルに clickhouse_username を追加
- 設定ファイルに clickhouse_password を追加
- @voluntas

## develop

- [UPDATE] sqlc 1.24.0 にする
Expand All @@ -27,7 +43,7 @@
## 2023.1.1

- [FIX] HTTP/2 Rapid Reset 対策として Go 1.21.3 以上でリリースバイナリを作成するよう修正する
- https://groups.google.com/g/golang-announce/c/iNNxDTCjZvo
- <https://groups.google.com/g/golang-announce/c/iNNxDTCjZvo>
- @voluntas

## 2023.1.0
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023.1.1
2024.1.0
6 changes: 3 additions & 3 deletions cmd/kohaku/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ func main() {

kohaku.ShowConfig(config)

pool, err := kohaku.NewPool(config.PostgresURI)
conn, err := kohaku.NewConnect(config)
if err != nil {
// TODO: エラーメッセージを修正する
fmt.Fprintf(os.Stderr, "Unable to connect to database: %v\n", err)
os.Exit(1)
}
defer pool.Close()
defer conn.Close()

server, err := kohaku.NewServer(config, pool)
server, err := kohaku.NewServer(config, conn)
if err != nil {
log.Fatal(err)
}
Expand Down
Loading