Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClickHouse - StartTime is not inserted for Gauge and Counter #18220

Closed
StarpTech opened this issue Feb 1, 2023 · 1 comment · Fixed by #18288
Closed

ClickHouse - StartTime is not inserted for Gauge and Counter #18220

StarpTech opened this issue Feb 1, 2023 · 1 comment · Fixed by #18288
Labels
bug Something isn't working exporter/clickhouse needs triage New item requiring triage

Comments

@StarpTech
Copy link
Contributor

Component(s)

exporter/clickhouse

What happened?

Description

Hi, I tried metrics with the clickhouse collector. I saw that the column StartTimeUnix displayed the UNIX start date 1970. After digging into the source, I found out that the start time is not inserted.

Collector version

0.70.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

extensions:
receivers:
  otlp:
    protocols:
      grpc:
      http:

processors:
  batch:
  memory_limiter:
    # 75% of maximum memory up to 4G
    limit_mib: 1536
    # 25% of limit up to 2G
    spike_limit_mib: 512
    check_interval: 5s

exporters:
  clickhouse:
    endpoint: "url"
    timeout: 10s
    database: otel
    traces_table_name: otel_traces
    logs_table_name: otel_logs
    metrics_table_name: otel_metrics
    ttl_days: 7
    sending_queue:
      queue_size: 5000
    retry_on_failure:
      enabled: true
      initial_interval: 10s
      max_interval: 30s
      max_elapsed_time: 300s
#  logging:
#    loglevel: debug

service:
  pipelines:
    metrics:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [clickhouse]

Log output

No response

Additional context

No response

@StarpTech StarpTech added bug Something isn't working needs triage New item requiring triage labels Feb 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2023

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exporter/clickhouse needs triage New item requiring triage
Projects
None yet
1 participant