All technological notes.
Opentelemetry(OTel)
dev:
devops:
Microservices (app code + OTel SDK) –> OTel Exporter(i.e., Prometheus Exporter) –> OTel Collectors(Optional) –> Backend (prometheus)
Prometheus Remote Write
Exporter –pull–> Prometheus server –> Another Prometheus Server (http://prom_server:9090/api/v1/write)
Grafana Alloy
OpenTelemetry Collector.OpenTelemetry Collector components and Prometheus exporters.
# Import the GPG key:
sudo mkdir -p /etc/apt/keyrings/
wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null
# To add a repository for stable releases, run the following command:
echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
sudo apt update
sudo apt install alloy