Is it possible/fine to run Prometheus, Loki, Grafana outside of Kubernetes? In some project there are scaling and orchestration implemented using technologies of a local cloud provider, with no Docker &amp; Kubernetes. But the project has poor logging and monitoring, I'd like to instal Prometheus, Loki, and Grafana for metrics, logs, and visualisation respectively. Unfortunately, I've found no articles with instructions about using Prometheus without K8s.
But is it possible? If so, is it a good was? I know that Prometheus &amp; Loki can automatically detect services in the K8s to extract metrics and logs, but will the same work for a custom orchestration system?
Yes--absolutely you can skip Kubernetes. Suggest that you still use Docker, but you could even just install the components separately.
I think it's easiest using Docker Compose (need to have package docker-compose installed on your host) to manage the containers.
Here is a docker-compose.yml that might be helpful:
version: '3'

services:
    prometheus:
        image: prom/prometheus:latest
        restart: unless-stopped
        ports:
            - &quot;9090:9090&quot;
        volumes:
            - /home/${USER}/opt/prometheus/data:/opt/prometheus/data:rw
            - /home/${USER}/opt/prometheus/config:/opt/prometheus/config:rw
        environment:
            SERVER_KEY: ${SERVER_KEY}
            SERVER_CERT: ${SERVER_CERT}

    grafana:
        image: grafana/grafana:latest
        restart: unless-stopped
        ports:
            - &quot;3000:3000&quot;
        volumes:
            - /home/${USER}/var/lib/grafana:/var/lib/grafana:rw
            - /home/${USER}/var/log/grafana:/var/log/grafana:rw
            - /home/${USER}/etc/grafana/grafana.ini:/etc/grafana/grafana.ini:rw
            - /home/${USER}/etc/grafana/ldap.toml:/etc/grafana/ldap.toml:rw
        environment:
            SERVER_KEY: ${SERVER_KEY}
            SERVER_CERT: ${SERVER_CERT}
            GF_SECURITY_ADMIN_USER: ${GF_SECURITY_ADMIN_USER}
            GF_SECURITY_ADMIN_PASSWORD: ${GF_SECURITY_ADMIN_PASSWORD}
        depends_on:
            - &quot;prometheus&quot;

Can also use Docker Compose for Loki and Promtail.
Docker Compose reference: https://docs.docker.com/compose/compose-file