Skip to content

Commit

Permalink
fix: debug comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nityanandagohain committed Oct 17, 2024
1 parent abd7646 commit 364aa1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions exporter/clickhouselogsexporter/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var (
)

func UsageExporter(metrics []*metricdata.Metric, id uuid.UUID) (map[string]usage.Usage, error) {
fmt.Println("exporting logs usage.......")
data := map[string]usage.Usage{}
for _, metric := range metrics {
if !strings.Contains(metric.Descriptor.Name, SigNozLogsCount) && !strings.Contains(metric.Descriptor.Name, SigNozLogsBytes) {
Expand Down
2 changes: 2 additions & 0 deletions usage/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ func (e *UsageCollector) Start() error {

func (c *UsageCollector) Stop() error {
c.ir.Stop()
fmt.Println("sending export data")
c.reader.ReadAndExport(c)
return nil
}

func (e *UsageCollector) ExportMetrics(ctx context.Context, metrics []*metricdata.Metric) error {
fmt.Println("exporting nowwww............")
usages, err := e.usageParser(metrics, e.exporterID)
if err != nil {
return err
Expand Down

0 comments on commit 364aa1d

Please sign in to comment.