Skip to content

Commit

Permalink
goimports
Browse files Browse the repository at this point in the history
  • Loading branch information
thampiotr committed Jul 19, 2023
1 parent 555512e commit e5ccbfe
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package build

import (
"fmt"

"github.com/grafana/agent/converter/internal/common"
"github.com/grafana/agent/converter/internal/prometheusconvert"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package build

import (
"fmt"

"github.com/grafana/agent/converter/internal/common"
"github.com/grafana/agent/converter/internal/prometheusconvert"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package build

import (
"fmt"

"github.com/grafana/agent/converter/internal/common"
"github.com/grafana/agent/converter/internal/prometheusconvert"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package build

import (
"fmt"

"github.com/grafana/agent/converter/internal/common"
"github.com/grafana/agent/converter/internal/prometheusconvert"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package build

import (
"fmt"

"github.com/grafana/agent/converter/internal/common"
"github.com/grafana/agent/converter/internal/prometheusconvert"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package build

import (
"fmt"

"github.com/grafana/agent/converter/internal/common"
"github.com/grafana/agent/converter/internal/prometheusconvert"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package build

import (
"fmt"

"github.com/grafana/agent/converter/internal/common"
"github.com/grafana/agent/converter/internal/prometheusconvert"
)
Expand Down
3 changes: 0 additions & 3 deletions converter/internal/promtailconvert/promtailconvert.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,10 @@ func appendScrapeConfig(
gctx *build.GlobalContext,
) {
//TODO(thampiotr): need to support/warn about the following fields:
//JobName string `mapstructure:"job_name,omitempty" yaml:"job_name,omitempty"`
//Encoding string `mapstructure:"encoding,omitempty" yaml:"encoding,omitempty"`
//DecompressionCfg *DecompressionConfig `yaml:"decompression,omitempty"`

//TODO(thampiotr): support/warn about the following log producing promtail configs:
//PushConfig *PushTargetConfig `mapstructure:"loki_push_api,omitempty" yaml:"loki_push_api,omitempty"`
//SyslogConfig *SyslogTargetConfig `mapstructure:"syslog,omitempty" yaml:"syslog,omitempty"`
//GcplogConfig *GcplogTargetConfig `mapstructure:"gcplog,omitempty" yaml:"gcplog,omitempty"`
//WindowsConfig *WindowsEventsTargetConfig `mapstructure:"windows_events,omitempty" yaml:"windows_events,omitempty"`
Expand Down Expand Up @@ -170,7 +168,6 @@ func appendScrapeConfig(
// Append all the components that produce logs directly.
// If any relabelling is required, it will be done via a loki.relabel component.
// The logs are sent to loki.process if processing is needed, or directly to loki.write components.
//TODO(thampiotr): add support for other integrations
b.AppendCloudFlareConfig()
b.AppendJournalConfig()
b.AppendPushAPI()
Expand Down
7 changes: 4 additions & 3 deletions converter/internal/test_common/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ package test_common
import (
"bytes"
"fmt"
"github.com/grafana/agent/pkg/cluster"
"github.com/grafana/agent/pkg/flow"
"github.com/grafana/agent/pkg/flow/logging"
"io/fs"
"os"
"path/filepath"
"reflect"
"strings"
"testing"

"github.com/grafana/agent/pkg/cluster"
"github.com/grafana/agent/pkg/flow"
"github.com/grafana/agent/pkg/flow/logging"

"github.com/grafana/agent/converter/diag"
"github.com/stretchr/testify/require"
)
Expand Down

0 comments on commit e5ccbfe

Please sign in to comment.