Skip to content

Commit

Permalink
chore: change org path (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoparente authored Jan 27, 2025
1 parent ab923e4 commit 12775ca
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 25 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@leoparente @ltucker @mfiedorowicz
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ jobs:
- name: Push opentelemetry-infinity container
run: |
docker push -a ghcr.io/leoparente/opentelemetry-infinity
docker push -a netboxlabs/opentelemetry-infinity
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: |
OTEL_LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/open-telemetry/opentelemetry-collector-releases/releases/latest)
OTEL_LATEST_VERSION=$(echo $OTEL_LATEST_RELEASE | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/')
INF_LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/leoparente/opentelemetry-infinity/releases/latest)
INF_LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/netboxlabs/opentelemetry-infinity/releases/latest)
INF_LATEST_VERSION=$(echo $INF_LATEST_RELEASE | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/')
release=''
if [[ $OTEL_LATEST_VERSION != $INF_LATEST_VERSION ]]; then
Expand Down Expand Up @@ -93,4 +93,4 @@ jobs:

- name: Push opentelemetry-infinity container
run: |
docker push -a ghcr.io/leoparente/opentelemetry-infinity
docker push -a netboxlabs/opentelemetry-infinity
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ VERSION ?= $(shell runner/otelcol-contrib -v | cut -d ' ' -f 3)
BUILD_DIR = build
CGO_ENABLED ?= 0
GOARCH ?= $(shell go env GOARCH)
DOCKERHUB_REPO = ghcr.io/leoparente
DOCKERHUB_REPO = netboxlabs
COMMIT_HASH = $(shell git rev-parse --short HEAD)
INF_LATEST_RELEASE := $(shell curl -L -s -H 'Accept: application/json' https://github.com/leoparente/opentelemetry-infinity/releases/latest)
INF_LATEST_RELEASE := $(shell curl -L -s -H 'Accept: application/json' https://github.com/netboxlabs/opentelemetry-infinity/releases/latest)
INF_LATEST_VERSION := $(shell echo $(INF_LATEST_RELEASE) | sed -e 's/.*tag_name:\([^,]*\).*/\1/')

getotelcol:
wget -O /tmp/otelcol-contrib-$(GOARCH)$(GOARM).zip https://github.com/leoparente/opentelemetry-infinity/releases/download/$(INF_LATEST_VERSION)/otelcol-contrib-$(GOARCH)$(GOARM).zip
wget -O /tmp/otelcol-contrib-$(GOARCH)$(GOARM).zip https://github.com/netboxlabs/opentelemetry-infinity/releases/download/$(INF_LATEST_VERSION)/otelcol-contrib-$(GOARCH)$(GOARM).zip
unzip /tmp/otelcol-contrib-$(GOARCH)$(GOARM).zip -d /tmp/
mv /tmp/otelcol-contrib runner/otelcol-contrib
rm -rf /tmp/otelcol-contrib*
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

<br clear="left"/>

[![Build status](https://github.com/leoparente/opentelemetry-infinity/workflows/otel-main/badge.svg)](https://github.com/leoparente/opentelemetry-infinity/actions)
[![CodeQL](https://github.com/leoparente/opentelemetry-infinity/workflows/CodeQL/badge.svg)](https://github.com/leoparente/opentelemetry-infinity/security/code-scanning)
[![Build status](https://github.com/netboxlabs/opentelemetry-infinity/workflows/otel-main/badge.svg)](https://github.com/netboxlabs/opentelemetry-infinity/actions)
[![CodeQL](https://github.com/netboxlabs/opentelemetry-infinity/workflows/CodeQL/badge.svg)](https://github.com/netboxlabs/opentelemetry-infinity/security/code-scanning)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=leoparente_opentelemetry-infinity&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=leoparente_opentelemetry-infinity)
[![CodeCov](https://codecov.io/gh/leoparente/opentelemetry-infinity/branch/main/graph/badge.svg)](https://app.codecov.io/gh/leoparente/opentelemetry-infinity/tree/main)
[![Go Report Card](https://goreportcard.com/badge/github.com/leoparente/opentelemetry-infinity)](https://goreportcard.com/report/github.com/leoparente/opentelemetry-infinity)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/leoparente/opentelemetry-infinity)
[![CodeCov](https://codecov.io/gh/netboxlabs/opentelemetry-infinity/branch/main/graph/badge.svg)](https://app.codecov.io/gh/netboxlabs/opentelemetry-infinity/tree/main)
[![Go Report Card](https://goreportcard.com/badge/github.com/netboxlabs/opentelemetry-infinity)](https://goreportcard.com/report/github.com/netboxlabs/opentelemetry-infinity)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/netboxlabs/opentelemetry-infinity)

<p align="left">
<strong>
Expand Down Expand Up @@ -38,12 +38,12 @@ Opentelemetry Infinity provide [otel-collector-contrib](https://github.com/open-
## Docker Image
You can download and run using docker image:
```
docker run --net=host ghcr.io/leoparente/opentelemetry-infinity run
docker run --net=host netboxlabs/opentelemetry-infinity run
```
## Command Line Interface (CLI)
Opentelemetry Infinity allows some start up configuration that is listed below. It disables `opentelemetry-collector` self telemetry by default to avoid port conflict. If you want to enable it back, be aware to handle it properly when starting more that one `otelcol-contrib`, i.e., applying more than one policy.
```sh
docker run --net=host ghcr.io/leoparente/opentelemetry-infinity run --help
docker run --net=host netboxlabs/opentelemetry-infinity run --help

Run opentelemetry-infinity

Expand All @@ -62,7 +62,7 @@ Flags:
## REST API
The default `otlpinf` address is `localhost:10222`. to change that you can specify host and port when starting `otlpinf`:
```sh
docker run --net=host ghcr.io/leoparente/opentelemetry-infinity run -a {host} -p {port}
docker run --net=host netboxlabs/opentelemetry-infinity run -a {host} -p {port}
```

### Routes (v1)
Expand Down
5 changes: 5 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Security Policy

## Reporting a Vulnerability

Please send any suspected vulnerability report to [email protected]
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"syscall"

"github.com/leoparente/opentelemetry-infinity/config"
"github.com/leoparente/opentelemetry-infinity/otlpinf"
"github.com/netboxlabs/opentelemetry-infinity/config"
"github.com/netboxlabs/opentelemetry-infinity/otlpinf"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM golang:1.23-alpine AS builder
ARG GOARCH
ARG GOARM

WORKDIR /go/src/github.com/leoparente/opentelemetry-infinity
WORKDIR /go/src/github.com/netboxlabs/opentelemetry-infinity
COPY . .
RUN apk update && apk add build-base curl dpkg-dev make
RUN if [ ! -f "runner/otelcol-contrib" ] ; then make getotelcol ; fi
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/leoparente/opentelemetry-infinity
module github.com/netboxlabs/opentelemetry-infinity

go 1.20

Expand Down
4 changes: 2 additions & 2 deletions otlpinf/otlpinf.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"time"

"github.com/gin-gonic/gin"
"github.com/leoparente/opentelemetry-infinity/config"
"github.com/leoparente/opentelemetry-infinity/runner"
"github.com/netboxlabs/opentelemetry-infinity/config"
"github.com/netboxlabs/opentelemetry-infinity/runner"
"go.uber.org/zap"
"gopkg.in/yaml.v3"
)
Expand Down
2 changes: 1 addition & 1 deletion otlpinf/otlpinf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
"time"

"github.com/leoparente/opentelemetry-infinity/config"
"github.com/netboxlabs/opentelemetry-infinity/config"
"go.uber.org/zap/zaptest"
"gopkg.in/yaml.v2"
)
Expand Down
4 changes: 2 additions & 2 deletions otlpinf/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
yson "github.com/ghodss/yaml"
ginzap "github.com/gin-contrib/zap"
"github.com/gin-gonic/gin"
"github.com/leoparente/opentelemetry-infinity/config"
"github.com/leoparente/opentelemetry-infinity/runner"
"github.com/netboxlabs/opentelemetry-infinity/config"
"github.com/netboxlabs/opentelemetry-infinity/runner"
"go.uber.org/zap"
"gopkg.in/yaml.v3"
)
Expand Down
2 changes: 1 addition & 1 deletion runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"time"

"github.com/amenzhinsky/go-memexec"
"github.com/leoparente/opentelemetry-infinity/config"
"github.com/netboxlabs/opentelemetry-infinity/config"
"go.uber.org/zap"
"gopkg.in/yaml.v3"
)
Expand Down
2 changes: 1 addition & 1 deletion runner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

"github.com/leoparente/opentelemetry-infinity/config"
"github.com/netboxlabs/opentelemetry-infinity/config"
"go.uber.org/zap/zaptest"
"gopkg.in/yaml.v2"
)
Expand Down

0 comments on commit 12775ca

Please sign in to comment.