Skip to content

Commit

Permalink
feat: create OTel collector config from template (#698)
Browse files Browse the repository at this point in the history
* Metrics section is now the Collector section in nginx-agent.conf
  • Loading branch information
olli-holmala authored Jun 12, 2024
1 parent b69acce commit c11ef21
Show file tree
Hide file tree
Showing 41 changed files with 1,342 additions and 709 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ __debug_bin

vendor/
go.work
go.work.sum
go.work.sum

# Apple's random filesystem file.
.DS_Store
147 changes: 74 additions & 73 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/connector/routingconnector v0.100.0
github.com/open-telemetry/opentelemetry-collector-contrib/connector/servicegraphconnector v0.100.0
github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.100.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter v0.102.0
github.com/open-telemetry/opentelemetry-collector-contrib/extension/ackextension v0.100.0
github.com/open-telemetry/opentelemetry-collector-contrib/extension/asapauthextension v0.100.0
github.com/open-telemetry/opentelemetry-collector-contrib/extension/awsproxy v0.100.0
Expand Down Expand Up @@ -67,41 +68,41 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver v0.100.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/nginxreceiver v0.100.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/podmanreceiver v0.100.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver v0.100.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver v0.102.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/simpleprometheusreceiver v0.100.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/syslogreceiver v0.100.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/tcplogreceiver v0.100.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/udplogreceiver v0.100.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.9.0
github.com/testcontainers/testcontainers-go v0.30.0
github.com/testcontainers/testcontainers-go v0.31.0
github.com/trivago/grok v1.0.0
go.opentelemetry.io/collector/component v0.100.0
go.opentelemetry.io/collector/confmap v0.100.0
go.opentelemetry.io/collector/confmap/converter/expandconverter v0.100.0
go.opentelemetry.io/collector/confmap/provider/envprovider v0.100.0
go.opentelemetry.io/collector/confmap/provider/fileprovider v0.100.0
go.opentelemetry.io/collector/confmap/provider/httpprovider v0.100.0
go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.100.0
go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.100.0
go.opentelemetry.io/collector/connector v0.100.0
go.opentelemetry.io/collector/component v0.102.0
go.opentelemetry.io/collector/confmap v0.102.0
go.opentelemetry.io/collector/confmap/converter/expandconverter v0.102.0
go.opentelemetry.io/collector/confmap/provider/envprovider v0.102.0
go.opentelemetry.io/collector/confmap/provider/fileprovider v0.102.0
go.opentelemetry.io/collector/confmap/provider/httpprovider v0.102.0
go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.102.0
go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.102.0
go.opentelemetry.io/collector/connector v0.102.0
go.opentelemetry.io/collector/connector/forwardconnector v0.100.0
go.opentelemetry.io/collector/exporter v0.100.0
go.opentelemetry.io/collector/exporter v0.102.0
go.opentelemetry.io/collector/exporter/debugexporter v0.100.0
go.opentelemetry.io/collector/exporter/otlpexporter v0.100.0
go.opentelemetry.io/collector/exporter/otlphttpexporter v0.100.0
go.opentelemetry.io/collector/extension v0.100.0
go.opentelemetry.io/collector/otelcol v0.100.0
go.opentelemetry.io/collector/processor v0.100.0
go.opentelemetry.io/collector/processor/batchprocessor v0.100.0
go.opentelemetry.io/collector/extension v0.102.0
go.opentelemetry.io/collector/otelcol v0.102.0
go.opentelemetry.io/collector/processor v0.102.0
go.opentelemetry.io/collector/processor/batchprocessor v0.102.0
go.opentelemetry.io/collector/processor/memorylimiterprocessor v0.100.0
go.opentelemetry.io/collector/receiver v0.100.0
go.opentelemetry.io/collector/receiver v0.102.0
go.opentelemetry.io/collector/receiver/nopreceiver v0.100.0
go.opentelemetry.io/collector/receiver/otlpreceiver v0.100.0
go.uber.org/goleak v1.3.0
golang.org/x/mod v0.17.0
golang.org/x/sync v0.7.0
google.golang.org/protobuf v1.34.0
google.golang.org/protobuf v1.34.1
)

require (
Expand Down Expand Up @@ -149,7 +150,7 @@ require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/chenzhuoyu/iasm v0.9.1 // indirect
github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa // indirect
github.com/cncf/xds/go v0.0.0-20240318125728-8a4994d93e50 // indirect
github.com/containerd/containerd v1.7.15 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/coreos/go-oidc/v3 v3.10.0 // indirect
Expand Down Expand Up @@ -200,7 +201,7 @@ require (
github.com/gophercloud/gophercloud v1.8.0 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/grafana/regexp v0.0.0-20221122212121-6b5c0a4cb7fd // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect
github.com/hashicorp/consul/api v1.28.2 // indirect
github.com/hashicorp/cronexpr v1.1.2 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
Expand All @@ -210,7 +211,7 @@ require (
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/hashicorp/golang-lru v1.0.2 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
Expand Down Expand Up @@ -264,8 +265,8 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/ecsutil v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/proxy v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.102.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.102.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/docker v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/filter v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig v0.100.0 // indirect
Expand All @@ -275,9 +276,10 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/batchpersignal v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/experimentalmetricmetadata v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.102.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry v0.102.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheus v0.100.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheus v0.102.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/openshift/api v3.9.0+incompatible // indirect
Expand All @@ -292,9 +294,8 @@ require (
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.53.0 // indirect
github.com/prometheus/common/sigv4 v0.1.0 // indirect
github.com/prometheus/procfs v0.14.0 // indirect
github.com/prometheus/procfs v0.15.0 // indirect
github.com/prometheus/prometheus v0.51.2-0.20240405174432-b4a973753c6e // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
github.com/rs/cors v1.11.0 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
Expand All @@ -320,54 +321,54 @@ require (
github.com/vultr/govultr/v2 v2.17.2 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/collector v0.100.0 // indirect
go.opentelemetry.io/collector/config/configauth v0.100.0 // indirect
go.opentelemetry.io/collector/config/configcompression v1.7.0 // indirect
go.opentelemetry.io/collector v0.102.0 // indirect
go.opentelemetry.io/collector/config/configauth v0.102.0 // indirect
go.opentelemetry.io/collector/config/configcompression v1.9.0 // indirect
go.opentelemetry.io/collector/config/configgrpc v0.100.0 // indirect
go.opentelemetry.io/collector/config/confighttp v0.100.0 // indirect
go.opentelemetry.io/collector/config/confignet v0.100.0 // indirect
go.opentelemetry.io/collector/config/configopaque v1.7.0 // indirect
go.opentelemetry.io/collector/config/configretry v0.100.0 // indirect
go.opentelemetry.io/collector/config/configtelemetry v0.100.0 // indirect
go.opentelemetry.io/collector/config/configtls v0.100.0 // indirect
go.opentelemetry.io/collector/config/internal v0.100.0 // indirect
go.opentelemetry.io/collector/consumer v0.100.0 // indirect
go.opentelemetry.io/collector/extension/auth v0.100.0 // indirect
go.opentelemetry.io/collector/featuregate v1.7.0 // indirect
go.opentelemetry.io/collector/config/confighttp v0.102.0 // indirect
go.opentelemetry.io/collector/config/confignet v0.102.0 // indirect
go.opentelemetry.io/collector/config/configopaque v1.9.0 // indirect
go.opentelemetry.io/collector/config/configretry v0.102.0 // indirect
go.opentelemetry.io/collector/config/configtelemetry v0.102.0 // indirect
go.opentelemetry.io/collector/config/configtls v0.102.0 // indirect
go.opentelemetry.io/collector/config/internal v0.102.0 // indirect
go.opentelemetry.io/collector/consumer v0.102.0 // indirect
go.opentelemetry.io/collector/extension/auth v0.102.0 // indirect
go.opentelemetry.io/collector/featuregate v1.9.0 // indirect
go.opentelemetry.io/collector/filter v0.100.0 // indirect
go.opentelemetry.io/collector/pdata v1.7.0 // indirect
go.opentelemetry.io/collector/semconv v0.100.0 // indirect
go.opentelemetry.io/collector/service v0.100.0 // indirect
go.opentelemetry.io/contrib/config v0.6.0 // indirect
go.opentelemetry.io/collector/pdata v1.9.0 // indirect
go.opentelemetry.io/collector/semconv v0.102.0 // indirect
go.opentelemetry.io/collector/service v0.102.0 // indirect
go.opentelemetry.io/contrib/config v0.7.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.51.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0 // indirect
go.opentelemetry.io/contrib/propagators/b3 v1.26.0 // indirect
go.opentelemetry.io/otel v1.26.0 // indirect
go.opentelemetry.io/otel/bridge/opencensus v1.26.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.26.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.26.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.26.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.26.0 // indirect
go.opentelemetry.io/otel/exporters/prometheus v0.48.0 // indirect
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.26.0 // indirect
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.26.0 // indirect
go.opentelemetry.io/otel/metric v1.26.0 // indirect
go.opentelemetry.io/otel/sdk v1.26.0 // indirect
go.opentelemetry.io/otel/trace v1.26.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 // indirect
go.opentelemetry.io/contrib/propagators/b3 v1.27.0 // indirect
go.opentelemetry.io/otel v1.27.0 // indirect
go.opentelemetry.io/otel/bridge/opencensus v1.27.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.27.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.27.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.27.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0 // indirect
go.opentelemetry.io/otel/exporters/prometheus v0.49.0 // indirect
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.27.0 // indirect
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.27.0 // indirect
go.opentelemetry.io/otel/metric v1.27.0 // indirect
go.opentelemetry.io/otel/sdk v1.27.0 // indirect
go.opentelemetry.io/otel/trace v1.27.0 // indirect
go.opentelemetry.io/proto/otlp v1.2.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/arch v0.7.0 // indirect
golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 // indirect
golang.org/x/oauth2 v0.19.0 // indirect
golang.org/x/term v0.19.0 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/oauth2 v0.20.0 // indirect
golang.org/x/term v0.20.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.20.0 // indirect
golang.org/x/tools v0.21.0 // indirect
gonum.org/v1/gonum v0.15.0 // indirect
google.golang.org/api v0.177.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240415180920-8c6c420018be // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240429193739-8cf5692501f6 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240520151616-dc85e6b867a5 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
Expand All @@ -390,17 +391,17 @@ require (
github.com/gin-gonic/gin v1.9.1
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/nginxinc/nginx-go-crossplane v0.4.36
github.com/prometheus/client_golang v1.19.0 // indirect
github.com/prometheus/client_golang v1.19.1 // indirect
github.com/samber/slog-gin v1.11.0
github.com/shirou/gopsutil/v3 v3.24.3
github.com/shirou/gopsutil/v3 v3.24.4
github.com/spf13/cobra v1.8.0
github.com/spf13/viper v1.18.2
github.com/vardius/message-bus v1.1.5
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.26.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.26.0 // indirect
golang.org/x/crypto v0.22.0 // indirect
golang.org/x/net v0.24.0 // indirect
golang.org/x/sys v0.19.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/grpc v1.63.2
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.27.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.27.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
google.golang.org/grpc v1.64.0
)
Loading

0 comments on commit c11ef21

Please sign in to comment.