hi ! What would be the endpoint in case I want to...
# support
j
hi ! What would be the endpoint in case I want to scrape metrics from a Prometheus receiver from a separate Collector such in https://signoz.io/docs/tutorial/kubernetes-infra-metrics/ ? I was able to follow through that one for k8s metrics but now I would like to scrape Prometheus metrics. Thank you,
p
j
@Pranay yes but I would need to enable a Prometheus receiver from the Otel Collector that I have setup outside Signoz. In the same way as I did with the infra metrics, but for Prometheus receiver. I thought do I need to use your custom image version to target
clickhousemetricswrite
exporter to achieve this ? I appreciate your help,
Hi is it possible to do it that way ? The idea would be to do it in a way that we only export metrics to Signoz endpoint as a backend. If not possible we may need to opt for a different tool. Thank you,
p
@Prashant Shahi @Ankit Nayan Do you have insights on this?
p
@Jonathan Berrios you can decide on either of the following ways to send your prometheus metrics to SigNoz. • include your prometheus metrics's endpoint in prometheus receiver of SigNoz Otel Collector Metrics configuration • set up SigNoz OtelCollector with prometheus receiver configuration and send it to SigNoz clickhouse directly using
clickhousemetricswrite
exporter • set up another collector (SigNoz OtelCollector or OpenTelemetry Collector of v0.43.0) and configure prometheus receiver configuration and relay it to SigNoz OTLP receiver
a
@Jonathan Berrios I don't think I got your question correctly. Let me try to explain a few points and you can ask more specific things.
clickhousemetricswrite
exporter and hence signoz's version of otel-collector will be needed when writing to clickhouse.
prometheusreveiver
can be used in both signoz's otel-collector or the upstream. You can set prometheus scrape config at 2 places: 1. At
otel-collector-metrics
running as part of signoz which can then write the scraped data to clickhouse using
clickhousemetricswrite
2. At
otel-collector
which is not part of signoz. It can run in every node or as deployment just like prometheus in any cluster/region. You need to specify scrape configs at
prometheusreceiver
there and use
otlpexporter
to send metrics to signoz's
otel-collector
which can then write to clickhouse using
clickhousemetricswrite
exporter which is available in signoz's distribution of otel-collector
🙌 1
j
@Ankit Nayan @Prashant Shahi @Pranay Thank you, the option 2 is what we aim for. When setting 2 jobs/targets for my
prometheus
receiver it cannot connect because it only listens to port
8888
and not
8080
, which I need, I believe this is more Otel side but could you recommend a way so I listen to both ports ? Very appreciated,