I recently started using Signoz, with the idea of ...
# support
t
I recently started using Signoz, with the idea of ​​having the entire observability stack for my services, from servers on the internet, to Kubernetes clusters, etc. My scenario. I have Signoz on a machine on the internet, where I have the Nginx proxy manager, putting https + Let's encrypt in front of this guy. I took the opportunity and created two domains for ports 4317 and 4318. EX: https://collector.teste.com.br > 4317 and https://collectorhttp.teste.com.br > 4318. I made a template to monitor servers on the internet in the hostmetrics section. Example:
Copy code
receivers:
  docker_stats:
    endpoint: unix:///var/run/docker.sock
    collection_interval: 10s
    metrics:
      container.cpu.utilization:
        enabled: true
      container.memory.percent:
        enabled: true
      container.network.io.usage.rx_bytes:
        enabled: true
      container.network.io.usage.tx_bytes:
        enabled: true
      container.memory.usage.limit:
        enabled: true
      container.memory.usage.total:
        enabled: true

  hostmetrics:
    collection_interval: 60s
    scrapers:
      cpu: {}
      memory: {}
      disk: {}
      filesystem: {}
      load: {}
      network: {}

processors:
  resource:
    attributes:
      - key: host.name
        value: ${env:HOST_NAME}
        action: upsert
  resourcedetection:
    detectors: [env, system, docker]
    system:
      hostname_sources: [os]
    timeout: 2s
    override: false
  batch:
    timeout: 10s
    send_batch_size: 100

exporters:
  otlphttp:
    endpoint: "<https://collectorhttp.teste.com.br:443>"
    tls:
      insecure: false

service:
  pipelines:
    metrics:
      receivers: [docker_stats, hostmetrics]
      processors: [resource, resourcedetection, batch]
      exporters: [otlphttp]
It works perfectly, but I'm getting blocked on the same endpoint when I try to put it in a kubernetes cluster, currently using local with the same kind.
Copy code
global:
  cloud: others
  clusterName: <CLUSTER_NAME>
  deploymentEnvironment: <DEPLOYMENT_ENVIRONMENT>
otelCollectorEndpoint: <IP-or-Endpoint-of-SigNoz-OtelCollector>:4317
otelInsecure: true
presets:
  otlpExporter:
    enabled: true
  loggingExporter:
    enabled: false