Skip to content

Commit

Permalink
refactor: rename to raystack
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisuhag committed Jun 30, 2023
1 parent 3c073a6 commit 392a98f
Show file tree
Hide file tree
Showing 247 changed files with 2,164 additions and 2,136 deletions.
12 changes: 6 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ builds:
flags:
- -a
ldflags:
- -s -w -X github.com/odpf/siren/config.Version={{.Tag}} -X github.com/odpf/siren/config.BuildCommit={{.FullCommit}} -X github.com/odpf/siren/config.BuildDate={{.Date}}
- -s -w -X github.com/raystack/siren/config.Version={{.Tag}} -X github.com/raystack/siren/config.BuildCommit={{.FullCommit}} -X github.com/raystack/siren/config.BuildDate={{.Date}}
env:
- CGO_ENABLED=0
goos: [darwin, linux, windows]
Expand Down Expand Up @@ -56,16 +56,16 @@ dockers:
- siren
dockerfile: Dockerfile
image_templates:
- "docker.io/odpf/{{.ProjectName}}:latest"
- "docker.io/odpf/{{.ProjectName}}:{{ .Version }}"
- "docker.io/odpf/{{.ProjectName}}:{{ .Tag }}-amd64"
- "docker.io/raystack/{{.ProjectName}}:latest"
- "docker.io/raystack/{{.ProjectName}}:{{ .Version }}"
- "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-amd64"

brews:
- name: siren
homepage: "https://github.com/odpf/siren"
homepage: "https://github.com/raystack/siren"
description: "Universal data observability tool."
tap:
owner: odpf
owner: raystack
name: homebrew-taps
license: "Apache 2.0"
folder: Formula
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NAME="github.com/odpf/siren"
NAME="github.com/raystack/siren"
LAST_COMMIT := $(shell git rev-parse --short HEAD)
LAST_TAG := "$(shell git rev-list --tags --max-count=1)"
APP_VERSION := "$(shell git describe --tags ${LAST_TAG})-next"
Expand Down Expand Up @@ -30,9 +30,9 @@ lint: ## lint checker
golangci-lint run

proto: ## Generate the protobuf files
@echo " > generating protobuf from odpf/proton"
@echo " > generating protobuf from raystack/proton"
@echo " > [info] make sure correct version of dependencies are installed using 'make install'"
@buf generate https://github.com/odpf/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path odpf/siren
@buf generate https://github.com/raystack/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path raystack/siren
@echo " > protobuf compilation finished"

clean: ## Clean the build artifacts
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Siren

![test workflow](https://github.com/odpf/siren/actions/workflows/test.yaml/badge.svg)
![test workflow](https://github.com/raystack/siren/actions/workflows/test.yaml/badge.svg)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?logo=apache)](LICENSE)
[![Version](https://img.shields.io/github/v/release/odpf/siren?logo=semantic-release)](Version)
[![Coverage Status](https://coveralls.io/repos/github/odpf/siren/badge.svg?branch=main)](https://coveralls.io/github/odpf/siren?branch=main)
[![Version](https://img.shields.io/github/v/release/raystack/siren?logo=semantic-release)](Version)
[![Coverage Status](https://coveralls.io/repos/github/raystack/siren/badge.svg?branch=main)](https://coveralls.io/github/raystack/siren?branch=main)

Siren provides alerting on metrics of your applications using [Cortex metrics](https://cortexmetrics.io/) in a simple
DIY configuration. With Siren, you can define templates(using go templates standard), and create/edit/enable/disable
Expand All @@ -21,7 +21,7 @@ with any client such as CI/CD pipelines, Self-Serve UI, microservices etc.
- **Managing bulk rules:** Siren enables users to manage bulk alerting rules using YAML files in specified format with simple CLI.
- **Receivers:** Siren can be used to send out notifications to several channels (slack, pagerduty, email etc).
- **Alert History:** Siren can store alerts triggered by monitoring & alerting provider e.g. Cortex Alertmanager, which can be used for audit purposes.
To know more, follow the detailed [documentation](docs)
To know more, follow the detailed [documentation](docs)

## Usage

Expand All @@ -34,7 +34,7 @@ Explore the following resources to get started with Siren:

## Run with Kubernetes

- Create a siren deployment using the helm chart available [here](https://github.com/odpf/charts/tree/main/stable/siren)
- Create a siren deployment using the helm chart available [here](https://github.com/raystack/charts/tree/main/stable/siren)

## Running locally

Expand All @@ -55,7 +55,7 @@ Update the configs(db credentials etc.) as per your dev machine and docker confi
Run the following commands to compile from source

```sh
$ git clone git@github.com:odpf/siren.git
$ git clone git@github.com:raystack/siren.git
$ cd siren
$ go build main.go
```
Expand All @@ -69,6 +69,7 @@ $ make test
# To run tests locally with coverage
$ make test-coverage
```

## Generate Server Configuration

```sh
Expand Down Expand Up @@ -97,10 +98,10 @@ Read our [contributing guide](docs/contribute/contribution.md) to learn about ou
bugfixes and improvements, and how to build and test your changes to Siren.

To help you get your feet wet and get you familiar with our contribution process, we have a list of
[good first issues](https://github.com/odpf/siren/labels/good%20first%20issue) that contain bugs which have a relatively
[good first issues](https://github.com/raystack/siren/labels/good%20first%20issue) that contain bugs which have a relatively
limited scope. This is a great place to get started.

This project exists thanks to all the [contributors](https://github.com/odpf/siren/graphs/contributors).
This project exists thanks to all the [contributors](https://github.com/raystack/siren/graphs/contributors).

## License

Expand Down
2 changes: 1 addition & 1 deletion buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins:
- remote: "buf.build/library/plugins/go-grpc:v1.1.0-2"
out: proto
opt: paths=source_relative,require_unimplemented_servers=true
- remote: buf.build/odpf/plugins/validate
- remote: buf.build/raystack/plugins/validate
out: "proto"
opt: "paths=source_relative,lang=go"
- remote: "buf.build/grpc-ecosystem/plugins/grpc-gateway:v2.11.3-1"
Expand Down
8 changes: 4 additions & 4 deletions cli/alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"strconv"

"github.com/MakeNowJust/heredoc"
"github.com/odpf/salt/cmdx"
"github.com/odpf/salt/printer"
"github.com/odpf/siren/pkg/errors"
sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1"
"github.com/raystack/salt/cmdx"
"github.com/raystack/salt/printer"
"github.com/raystack/siren/pkg/errors"
sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1"
"github.com/spf13/cobra"
)

Expand Down
8 changes: 4 additions & 4 deletions cli/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"time"

"github.com/odpf/salt/cmdx"
"github.com/odpf/salt/config"
"github.com/odpf/siren/pkg/errors"
sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1"
"github.com/raystack/salt/cmdx"
"github.com/raystack/salt/config"
"github.com/raystack/siren/pkg/errors"
sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1"
"github.com/spf13/cobra"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
Expand Down
4 changes: 2 additions & 2 deletions cli/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/MakeNowJust/heredoc"
"github.com/odpf/salt/cmdx"
"github.com/odpf/salt/printer"
"github.com/raystack/salt/cmdx"
"github.com/raystack/salt/printer"
"github.com/spf13/cobra"
)

Expand Down
46 changes: 23 additions & 23 deletions cli/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@ import (
"fmt"

"github.com/newrelic/go-agent/v3/newrelic"
"github.com/odpf/salt/db"
saltlog "github.com/odpf/salt/log"
"github.com/odpf/siren/config"
"github.com/odpf/siren/core/alert"
"github.com/odpf/siren/core/log"
"github.com/odpf/siren/core/namespace"
"github.com/odpf/siren/core/notification"
"github.com/odpf/siren/core/provider"
"github.com/odpf/siren/core/receiver"
"github.com/odpf/siren/core/rule"
"github.com/odpf/siren/core/silence"
"github.com/odpf/siren/core/subscription"
"github.com/odpf/siren/core/template"
"github.com/odpf/siren/internal/api"
"github.com/odpf/siren/internal/store/postgres"
"github.com/odpf/siren/pkg/pgc"
"github.com/odpf/siren/pkg/secret"
"github.com/odpf/siren/pkg/telemetry"
"github.com/odpf/siren/plugins/providers/cortex"
"github.com/odpf/siren/plugins/receivers/file"
"github.com/odpf/siren/plugins/receivers/httpreceiver"
"github.com/odpf/siren/plugins/receivers/pagerduty"
"github.com/odpf/siren/plugins/receivers/slack"
"github.com/raystack/salt/db"
saltlog "github.com/raystack/salt/log"
"github.com/raystack/siren/config"
"github.com/raystack/siren/core/alert"
"github.com/raystack/siren/core/log"
"github.com/raystack/siren/core/namespace"
"github.com/raystack/siren/core/notification"
"github.com/raystack/siren/core/provider"
"github.com/raystack/siren/core/receiver"
"github.com/raystack/siren/core/rule"
"github.com/raystack/siren/core/silence"
"github.com/raystack/siren/core/subscription"
"github.com/raystack/siren/core/template"
"github.com/raystack/siren/internal/api"
"github.com/raystack/siren/internal/store/postgres"
"github.com/raystack/siren/pkg/pgc"
"github.com/raystack/siren/pkg/secret"
"github.com/raystack/siren/pkg/telemetry"
"github.com/raystack/siren/plugins/providers/cortex"
"github.com/raystack/siren/plugins/receivers/file"
"github.com/raystack/siren/plugins/receivers/httpreceiver"
"github.com/raystack/siren/plugins/receivers/pagerduty"
"github.com/raystack/siren/plugins/receivers/slack"
)

func InitDeps(
Expand Down
2 changes: 1 addition & 1 deletion cli/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cli

import (
"github.com/MakeNowJust/heredoc"
"github.com/odpf/siren/pkg/errors"
"github.com/raystack/siren/pkg/errors"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cli/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ var envHelp = map[string]string{
"short": "List of supported environment variables",
"long": heredoc.Doc(`
` + "```" + `
ODPF_CONFIG_DIR: the directory where siren will store configuration files. Default:
"$XDG_CONFIG_HOME/odpf" or "$HOME/.config/odpf".
RAYSTACK_CONFIG_DIR: the directory where siren will store configuration files. Default:
"$XDG_CONFIG_HOME/raystack" or "$HOME/.config/raystack".
NO_COLOR: set to any value to avoid printing ANSI escape sequences for color output.
CLICOLOR: set to "0" to disable printing ANSI colors in output.
` + "```" + `
Expand Down
18 changes: 9 additions & 9 deletions cli/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import (
"time"

"github.com/MakeNowJust/heredoc"
"github.com/odpf/salt/cmdx"
"github.com/odpf/salt/log"
"github.com/odpf/salt/printer"
"github.com/odpf/siren/config"
"github.com/odpf/siren/core/notification"
"github.com/odpf/siren/internal/jobs"
"github.com/odpf/siren/pkg/errors"
"github.com/odpf/siren/plugins/queues"
"github.com/odpf/siren/plugins/queues/postgresq"
"github.com/raystack/salt/cmdx"
"github.com/raystack/salt/log"
"github.com/raystack/salt/printer"
"github.com/raystack/siren/config"
"github.com/raystack/siren/core/notification"
"github.com/raystack/siren/internal/jobs"
"github.com/raystack/siren/pkg/errors"
"github.com/raystack/siren/plugins/queues"
"github.com/raystack/siren/plugins/queues/postgresq"
"github.com/spf13/cobra"
)

Expand Down
10 changes: 5 additions & 5 deletions cli/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"strconv"

"github.com/MakeNowJust/heredoc"
"github.com/odpf/salt/cmdx"
"github.com/odpf/salt/printer"
"github.com/odpf/siren/core/namespace"
"github.com/odpf/siren/pkg/errors"
sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1"
"github.com/raystack/salt/cmdx"
"github.com/raystack/salt/printer"
"github.com/raystack/siren/core/namespace"
"github.com/raystack/siren/pkg/errors"
sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1"
"github.com/spf13/cobra"
"google.golang.org/protobuf/types/known/structpb"
)
Expand Down
10 changes: 5 additions & 5 deletions cli/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"strconv"

"github.com/MakeNowJust/heredoc"
"github.com/odpf/salt/cmdx"
"github.com/odpf/salt/printer"
"github.com/odpf/siren/core/provider"
"github.com/odpf/siren/pkg/errors"
sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1"
"github.com/raystack/salt/cmdx"
"github.com/raystack/salt/printer"
"github.com/raystack/siren/core/provider"
"github.com/raystack/siren/pkg/errors"
sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1"
"github.com/spf13/cobra"
"google.golang.org/protobuf/types/known/structpb"
)
Expand Down
10 changes: 5 additions & 5 deletions cli/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"strconv"

"github.com/MakeNowJust/heredoc"
"github.com/odpf/salt/cmdx"
"github.com/odpf/salt/printer"
"github.com/odpf/siren/core/receiver"
"github.com/odpf/siren/pkg/errors"
sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1"
"github.com/raystack/salt/cmdx"
"github.com/raystack/salt/printer"
"github.com/raystack/siren/core/receiver"
"github.com/raystack/siren/pkg/errors"
sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1"
"github.com/spf13/cobra"
"google.golang.org/protobuf/types/known/structpb"
)
Expand Down
6 changes: 3 additions & 3 deletions cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cli

import (
"github.com/MakeNowJust/heredoc"
"github.com/odpf/salt/cmdx"
"github.com/raystack/salt/cmdx"

"github.com/spf13/cobra"
)
Expand All @@ -21,10 +21,10 @@ func New() *cobra.Command {
"group": "core",
"help:learn": heredoc.Doc(`
Use 'siren <command> <subcommand> --help' for more information about a command.
Read the manual at https://odpf.github.io/siren/
Read the manual at https://raystack.github.io/siren/
`),
"help:feedback": heredoc.Doc(`
Open an issue here https://github.com/odpf/siren/issues
Open an issue here https://github.com/raystack/siren/issues
`),
"help:environment": heredoc.Doc(`
See 'siren help environment' for the list of supported environment variables.
Expand Down
10 changes: 5 additions & 5 deletions cli/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import (
"strconv"
"strings"

"github.com/odpf/siren/pkg/errors"
"github.com/raystack/siren/pkg/errors"
"gopkg.in/yaml.v3"

"github.com/MakeNowJust/heredoc"
"github.com/odpf/salt/cmdx"
"github.com/odpf/salt/printer"
"github.com/odpf/siren/core/rule"
sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1"
"github.com/raystack/salt/cmdx"
"github.com/raystack/salt/printer"
"github.com/raystack/siren/core/rule"
sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1"
"github.com/spf13/cobra"
)

Expand Down
22 changes: 11 additions & 11 deletions cli/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ import (
"time"

"github.com/MakeNowJust/heredoc"
"github.com/odpf/salt/log"
"github.com/odpf/salt/printer"
"github.com/odpf/siren/config"
"github.com/odpf/siren/core/notification"
"github.com/odpf/siren/internal/server"
"github.com/odpf/siren/internal/store/postgres"
"github.com/odpf/siren/pkg/worker"
"github.com/odpf/siren/pkg/zaputil"
"github.com/odpf/siren/plugins/queues"
"github.com/odpf/siren/plugins/queues/inmemory"
"github.com/odpf/siren/plugins/queues/postgresq"
"github.com/raystack/salt/log"
"github.com/raystack/salt/printer"
"github.com/raystack/siren/config"
"github.com/raystack/siren/core/notification"
"github.com/raystack/siren/internal/server"
"github.com/raystack/siren/internal/store/postgres"
"github.com/raystack/siren/pkg/worker"
"github.com/raystack/siren/pkg/zaputil"
"github.com/raystack/siren/plugins/queues"
"github.com/raystack/siren/plugins/queues/inmemory"
"github.com/raystack/siren/plugins/queues/postgresq"
"github.com/spf13/cobra"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
Expand Down
10 changes: 5 additions & 5 deletions cli/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"strconv"

"github.com/MakeNowJust/heredoc"
"github.com/odpf/salt/cmdx"
"github.com/odpf/salt/printer"
"github.com/odpf/siren/core/subscription"
"github.com/odpf/siren/pkg/errors"
sirenv1beta1 "github.com/odpf/siren/proto/odpf/siren/v1beta1"
"github.com/raystack/salt/cmdx"
"github.com/raystack/salt/printer"
"github.com/raystack/siren/core/subscription"
"github.com/raystack/siren/pkg/errors"
sirenv1beta1 "github.com/raystack/siren/proto/raystack/siren/v1beta1"
"github.com/spf13/cobra"
"google.golang.org/protobuf/types/known/structpb"
)
Expand Down

0 comments on commit 392a98f

Please sign in to comment.