<p>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.</p>
<p>But is it possible? If so, is it a good way? And how to do this? I also 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?</p>

<p>Can't comment about Loki, but Prometheus is definitely doable.
Prometheus supports a number of service discovery mechanisms, k8s being just on of them. If you look at the <a href="https://prometheus.io/docs/prometheus/latest/configuration/configuration/" rel="nofollow noreferrer">list of options</a> (the ones ending with _sd_config) you can see if your provider is there.
If it is not then a generic service discovery can be used. Maybe <a href="https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dns_sd_config" rel="nofollow noreferrer">DNS-based</a> discovery will work with your custom system? If not then with some glue code a <a href="https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config" rel="nofollow noreferrer">file based service discovery</a> will almost certainly work.</p>
