Skip to content

Commit

Permalink
Enable logicmonitor exporter (#18301)
Browse files Browse the repository at this point in the history
* enable logicmonitor exporter

* Changing stability level to alpha

* fix failing checks: make genotelcontribcol

* reorder imports in go.mod

* reorder imports in go.mod
  • Loading branch information
khyatigandhi6 authored Feb 7, 2023
1 parent 6bf87ff commit b82e08e
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .chloggen/enable-logicmonitor-exporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: new_component

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: logicmonitorexporter

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Enable Logicmonitor Exporter

# One or more tracking issues related to the change
issues: [13727]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
4 changes: 4 additions & 0 deletions cmd/configschema/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ require (
github.com/lightstep/go-expohisto v1.0.0 // indirect
github.com/linkedin/goavro/v2 v2.9.8 // indirect
github.com/linode/linodego v1.9.3 // indirect
github.com/logicmonitor/lm-data-sdk-go v0.7.1 // indirect
github.com/lufia/plan9stats v0.0.0-20220517141722-cf486979b281 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand Down Expand Up @@ -364,6 +365,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerthrifthttpexporter v0.70.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter v0.70.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter v0.70.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logicmonitorexporter v0.70.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logzioexporter v0.70.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter v0.70.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/mezmoexporter v0.70.0 // indirect
Expand Down Expand Up @@ -779,6 +781,8 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafka

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter => ../../exporter/loadbalancingexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logicmonitorexporter => ../../exporter/logicmonitorexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logzioexporter => ../../exporter/logzioexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter => ../../exporter/lokiexporter
Expand Down
2 changes: 2 additions & 0 deletions cmd/configschema/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cmd/otelcontribcol/builder-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ exporters:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerthrifthttpexporter v0.70.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter v0.70.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter v0.70.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logicmonitorexporter v0.70.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logzioexporter v0.70.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter v0.70.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/mezmoexporter v0.70.0
Expand Down Expand Up @@ -241,6 +242,7 @@ replaces:
- github.com/open-telemetry/opentelemetry-collector-contrib/processor/groupbytraceprocessor => ../../processor/groupbytraceprocessor
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/tencentcloudlogserviceexporter => ../../exporter/tencentcloudlogserviceexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter => ../../exporter/loadbalancingexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logicmonitorexporter => ../../exporter/logicmonitorexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/azureeventhubreceiver => ../../receiver/azureeventhubreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/saphanareceiver => ../../receiver/saphanareceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/promtailreceiver => ../../receiver/promtailreceiver
Expand Down
2 changes: 2 additions & 0 deletions cmd/otelcontribcol/components.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions cmd/otelcontribcol/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerthrifthttpexporter v0.70.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter v0.70.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter v0.70.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logicmonitorexporter v0.70.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logzioexporter v0.70.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter v0.70.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/mezmoexporter v0.70.0
Expand Down Expand Up @@ -417,6 +418,7 @@ require (
github.com/lightstep/go-expohisto v1.0.0 // indirect
github.com/linkedin/goavro/v2 v2.9.8 // indirect
github.com/linode/linodego v1.9.3 // indirect
github.com/logicmonitor/lm-data-sdk-go v0.7.1 // indirect
github.com/lufia/plan9stats v0.0.0-20220517141722-cf486979b281 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
Expand Down Expand Up @@ -765,6 +767,8 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/tence

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter => ../../exporter/loadbalancingexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logicmonitorexporter => ../../exporter/logicmonitorexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/azureeventhubreceiver => ../../receiver/azureeventhubreceiver

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/saphanareceiver => ../../receiver/saphanareceiver
Expand Down
2 changes: 2 additions & 0 deletions cmd/otelcontribcol/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion exporter/logicmonitorexporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

| Status | |
| ------ | ------ |
| Stablilty | logs [development](https://github.com/open-telemetry/opentelemetry-collector#development) |
| Stablilty | logs [alpha](https://github.com/open-telemetry/opentelemetry-collector#alpha) |
| Supported pipeline types | logs |
| Distributions | [contrib](https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib) |

Expand Down
2 changes: 1 addition & 1 deletion exporter/logicmonitorexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const (
// The value of "type" key in configuration.
typeStr = "logicmonitor"
// The stability level of the exporter.
stability = component.StabilityLevelBeta
stability = component.StabilityLevelAlpha
)

// NewFactory creates a LogicMonitor exporter factory
Expand Down
4 changes: 4 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerthrifthttpexporter v0.70.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter v0.70.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter v0.70.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logicmonitorexporter v0.70.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logzioexporter v0.70.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter v0.70.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/mezmoexporter v0.70.0
Expand Down Expand Up @@ -476,6 +477,7 @@ require (
github.com/lightstep/go-expohisto v1.0.0 // indirect
github.com/linkedin/goavro/v2 v2.9.8 // indirect
github.com/linode/linodego v1.9.3 // indirect
github.com/logicmonitor/lm-data-sdk-go v0.7.1 // indirect
github.com/lufia/plan9stats v0.0.0-20220517141722-cf486979b281 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand Down Expand Up @@ -775,6 +777,8 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafka

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter => ./exporter/loadbalancingexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logicmonitorexporter => ./exporter/logicmonitorexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logzioexporter => ./exporter/logzioexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter => ./exporter/lokiexporter
Expand Down
2 changes: 2 additions & 0 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions internal/components/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import (
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerthrifthttpexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logicmonitorexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logzioexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/mezmoexporter"
Expand Down Expand Up @@ -335,6 +336,7 @@ func Components() (otelcol.Factories, error) {
kafkaexporter.NewFactory(),
loadbalancingexporter.NewFactory(),
loggingexporter.NewFactory(),
logicmonitorexporter.NewFactory(),
logzioexporter.NewFactory(),
lokiexporter.NewFactory(),
mezmoexporter.NewFactory(),
Expand Down
8 changes: 8 additions & 0 deletions internal/components/exporters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ import (
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerthrifthttpexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logicmonitorexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/logzioexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/mezmoexporter"
Expand Down Expand Up @@ -374,6 +375,13 @@ func TestDefaultExporters(t *testing.T) {
return cfg
},
},
{
exporter: "logicmonitor",
getConfigFn: func() component.Config {
cfg := expFactories["logicmonitor"].CreateDefaultConfig().(*logicmonitorexporter.Config)
return cfg
},
},
{
exporter: "logzio",
getConfigFn: func() component.Config {
Expand Down

0 comments on commit b82e08e

Please sign in to comment.