Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ We use the following categories for changes:
### Added
- Add support to instrument Promscale's Otel GRPC server with Prometheus metrics [#1061]

### Fixed
- Fix broken `promscale_packager` telemetry field for docker envs [#1077]

## [0.8.0] - 2022-01-18

### Added
Expand Down
1 change: 1 addition & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN GIT_COMMIT=$(git rev-list -1 HEAD) \

# Final image
FROM busybox
ENV PROMSCALE_PKG=docker
LABEL maintainer="Timescale https://www.timescale.com"
COPY --from=builder /bin/promscale /
ENTRYPOINT ["/promscale"]
8 changes: 3 additions & 5 deletions pkg/telemetry/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,10 @@ func turnOffPackageLogging() {

func getPkgEnv() string {
pkg := os.Getenv("PROMSCALE_PKG")
switch pkg {
case "deb", "rpm", "apk":
return pkg
default:
return "unknown"
if pkg == "" {
pkg = "unknown"
}
return pkg
}

func toString(prop []byte) string {
Expand Down