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

kubeletstats: failed to verify certificate: x509 error #1513

Open
vipinvkmenon opened this issue Feb 3, 2025 · 0 comments
Open

kubeletstats: failed to verify certificate: x509 error #1513

vipinvkmenon opened this issue Feb 3, 2025 · 0 comments

Comments

@vipinvkmenon
Copy link

Helm Chart Version: 0.111.2

Helm Configuration:

mode: daemonset
#nameOverride: otel-collector-ds
image:
  repository: "otel/opentelemetry-collector-k8s"

command:
  name: "otelcol-k8s"

replicaCount: 1

presets:
  kubeletMetrics:
    enabled: true
  hostMetrics:
    enabled: true
config:
  # deltatocumulative processor is needed to convert metrics with delta temporality to cumulative temporality.
  # VictoriaMetrics doesn't support delta temporality. Skip this processor if you don't use delta temporality.
  processors:
    deltatocumulative:
      max_stale: 5m
  receivers:
    otlp:
      protocols:
        grpc:
          endpoint: 0.0.0.0:4317
        http:
          endpoint: 0.0.0.0:4318
  exporters:
    otlphttp/victoriametrics:
      compression: gzip
      encoding: proto
      metrics_endpoint: http://victoria-metrics-single-server:8428/opentelemetry/v1/metrics
      tls:
        insecure: true
  service:
    pipelines:
      metrics:
        receivers: [otlp]
        processors: [deltatocumulative]
        exporters: [otlphttp/victoriametrics]

However, the kubletstats receiver does not work. It throws the error:

2025-02-03T14:57:04.706Z        error   [email protected]/scraper.go:103    call to /stats/summary endpoint failed  {"kind": "receiver", "name": "kubeletstats", "data_type": "metrics", "error": "Get \"https://10.180.13.7:10250/stats/summary\": tls: failed to verify certificate: x509: certificate signed by unknown authority"}
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver.(*kubletScraper).scrape
        github.com/open-telemetry/opentelemetry-collector-contrib/receiver/[email protected]/scraper.go:103
go.opentelemetry.io/collector/scraper.ScrapeMetricsFunc.ScrapeMetrics
        go.opentelemetry.io/collector/[email protected]/metrics.go:24
go.opentelemetry.io/collector/receiver/scraperhelper.newObsMetrics.func1
        go.opentelemetry.io/collector/[email protected]/scraperhelper/obs_metrics.go:52
go.opentelemetry.io/collector/scraper.ScrapeMetricsFunc.ScrapeMetrics
        go.opentelemetry.io/collector/[email protected]/metrics.go:24
go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).scrapeMetricsAndReport
        go.opentelemetry.io/collector/[email protected]/scraperhelper/scrapercontroller.go:202
go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).startScraping.func1
        go.opentelemetry.io/collector/[email protected]/scraperhelper/scrapercontroller.go:185

Any guidance on how this could be resolved is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant