@@ -19,6 +19,7 @@ import (
19
19
semconv "go.opentelemetry.io/collector/semconv/v1.5.0"
20
20
"go.opentelemetry.io/otel/attribute"
21
21
metricapi "go.opentelemetry.io/otel/metric"
22
+ "go.opentelemetry.io/otel/metric/noop"
22
23
"go.uber.org/zap"
23
24
)
24
25
36
37
timeSeriesSQLTmpl = "INSERT INTO %s.%s (env, temporality, metric_name, description, unit, type, is_monotonic, fingerprint, unix_milli, labels, attrs, scope_attrs, resource_attrs) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
37
38
expHistSQLTmpl = "INSERT INTO %s.%s (env, temporality, metric_name, fingerprint, unix_milli, count, sum, min, max, sketch) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
38
39
metadataSQLTmpl = "INSERT INTO %s.%s (temporality, metric_name, description, unit, type, is_monotonic, attr_name, attr_type, attr_datatype, attr_string_value, first_reported_unix_milli, last_reported_unix_milli) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
40
+ meterScope = "github.com/SigNoz/signoz-otel-collector/exporter/clickhousemetricsexporterv2"
39
41
)
40
42
41
43
type clickhouseMetricsExporter struct {
@@ -181,6 +183,7 @@ func defaultOptions() []ExporterOption {
181
183
WithCache (cache ),
182
184
WithLogger (zap .NewNop ()),
183
185
WithEnableExpHist (false ),
186
+ WithMeter (noop .NewMeterProvider ().Meter (meterScope )),
184
187
}
185
188
}
186
189
0 commit comments