Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

Prometheus - Opentelemetry & Alloy

Back


Opentelemetry


Dev view vs DevOps view


Architecture

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

pic


with loki


Install - Ubuntu

# 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