Hi We have setup centralised signoz for different ...
# support
s
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
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
@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
Yes, assuming you have otlp exporter in the final values
s
@Srikanth Chekuri otlp is from default values.xml https://github.com/SigNoz/charts/blob/main/charts/k8s-infra/values.yaml
s
I am talking about the otlp exporter
And in the context of metrics.