https://signoz.io logo
#support
Title
# support
s

Shravan Kgl

07/30/2023, 12:44 PM
Hi We have setup centralised signoz for different clusters deployed over AWS, Azure and GCP k8s-infra is setup in each cluster and getting logs and k8s metrics Now we have enabled Prometheus in our applications on our clusters but we don't want to expose the metrics publicly for Central Signoz Otel collector How to setup signoz-otel collector in each cluster and forward the data to central Signoz Otel collector
s

Srikanth Chekuri

07/30/2023, 1:46 PM
Set up a pipeline that collects the metrics within your cluster and exports to SigNoz using OTLP exporter similar how you are doing with other logs and k8s metrics.
s

Shravan Kgl

07/30/2023, 2:07 PM
@Srikanth Chekuri can you share sample config for this
Is this correct k8s-infra-values-override.yaml
Copy code
global:
  clusterName: "stage"
  cloud: gcp
k8s-infra:
presets:
  logsCollection:
    enabled: true

otelAgent:
  receivers:
    prometheus:
      config:
      scrape_configs:
        - job_name: "my-app-metrics"
          scrape_interval: 30s
          static_configs:
            - targets: ["10.0.12.12:1234"]
  service:
    pipelines:
      metrics:
        receivers: [otlp,prometheus]
s

Srikanth Chekuri

07/30/2023, 3:56 PM
Yes, assuming you have otlp exporter in the final values
s

Shravan Kgl

07/31/2023, 2:10 PM
@Srikanth Chekuri otlp is from default values.xml https://github.com/SigNoz/charts/blob/main/charts/k8s-infra/values.yaml
s

Srikanth Chekuri

07/31/2023, 2:44 PM
I am talking about the otlp exporter
And in the context of metrics.
2 Views