Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #102 from streamdal/blinktag/fix_uptime_telemetry
Browse files Browse the repository at this point in the history
Fix uptime tags
  • Loading branch information
blinktag authored Dec 12, 2023
2 parents 4a78620 + 9ea91c8 commit 067fbac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ The server component in the Streamdal ecosystem.

The server exposes 3 APIs:

1. gRPC API on port `9090`
1. gRPC API on port `8082`
1. Used by SDKs
2. gRPC-Web API on port `9091`
2. gRPC-Web API on port `8083`
1. Used by the UI component
3. REST API on port `8080`
3. REST API on port `8081`
1. Exposes metrics, prometheus and health-check endpoints

## Development
Expand Down
15 changes: 5 additions & 10 deletions deps/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@ import (
"strings"
"time"

"github.com/sirupsen/logrus"

"github.com/streamdal/server/util"

"github.com/InVisionApp/go-health/v2"
gllogrus "github.com/InVisionApp/go-logger/shims/logrus"
"github.com/cactus/go-statsd-client/v5/statsd"
"github.com/pkg/errors"
"github.com/redis/go-redis/v9"

"github.com/streamdal/server/types"
"github.com/sirupsen/logrus"

"github.com/streamdal/server/backends/cache"
"github.com/streamdal/server/config"
Expand All @@ -30,6 +25,8 @@ import (
"github.com/streamdal/server/services/pubsub"
"github.com/streamdal/server/services/store"
"github.com/streamdal/server/services/telemetry"
"github.com/streamdal/server/types"
"github.com/streamdal/server/util"
"github.com/streamdal/server/wasm"
)

Expand Down Expand Up @@ -199,7 +196,6 @@ func (d *Dependencies) setupServices(cfg *config.Config) error {
return errors.Wrap(err, "unable to create new statsd client")
}
d.Telemetry = t
fmt.Printf("\n\nConnected to telemetry: %s\n\n", cfg.TelemetryAddress)
} else {
d.Telemetry = &telemetry.DummyTelemetry{}
}
Expand Down Expand Up @@ -329,9 +325,8 @@ func (d *Dependencies) RunUptimeTelemetry() {
defer ticker.Stop()

tags := []statsd.Tag{
//{"install_id", d.Config.InstallID},
//{"node_id", d.Config.NodeID},
{"sample_tag", "mark"},
{"install_id", d.Config.InstallID},
{"node_id", d.Config.NodeID},
}

// Send started telemetry
Expand Down

0 comments on commit 067fbac

Please sign in to comment.