Hostineu logo
Back to Full Observability Stack

Setup guide

Full Observability Stack — Setup guide

Step-by-step setup for this service. Use the contents list to jump to a section.

This Hostineu appliance runs Grafana, Grafana Alloy, VictoriaMetrics, and Loki on one managed server. Grafana is where you explore dashboards; Alloy on this box receives data you send (and can scrape targets you list).

You can send telemetry in two independent ways. Use whichever fits your apps — or use both at the same time.

Choose how you send data

Push — what it offers

Your applications send data over HTTPS to this server’s /otlp endpoint. You can do that with OpenTelemetry SDKs in the app, or by running Grafana Alloy (or another OTLP agent) next to your stack to collect local logs/metrics and forward them here.

  • Carries: metrics and logs (traces are not stored in this release)
  • Best when: you use OpenTelemetry SDKs, need logs, or prefer an agent on the app host
  • Network: your apps or agent reach this instance on the public hostname (Bearer token required)
  • On your app VMs: optional Grafana Alloy (recommended for logs and multi-process hosts); SDKs alone are enough for a single instrumented service

Pull — what it offers

This observability server scrapes Prometheus-style /metrics endpoints that it can reach. You do not need Alloy on the app host for this path if those endpoints are already exposed.

  • Carries: metrics only (not logs)
  • Best when: you already expose node_exporter, JVM, or other Prometheus endpoints
  • Network: this guest must reach host:port (private IP / Netbird — not “from your laptop”)
  • On your app VMs: no Alloy required for metrics if /metrics is already exposed and reachable

In short: push = metrics + logs via OTLP (SDK and/or Alloy on your side). Pull = metrics only via scrape from this server. Logs always need push.

Credentials and Grafana

Do this once before configuring push or pull.

  1. Open the Grafana URL from your welcome email (or the instance Access tab in the Hostineu dashboard).
  2. Sign in with the emailed admin username and password.
  3. For push, keep the OTLP Bearer token from the same email. If an older email is missing it, use Rotate credentials on the instance.

VictoriaMetrics and Loki datasources are provisioned for you.

Push — metrics and logs (OTLP)

Follow this section if you want apps (or an agent) to send data to this stack.

Shared endpoint

  1. Use this ingest URL:

    https://<your-hostname>/otlp

  2. Send this header on every request:

    Authorization: Bearer <OTLP token from your email>

  3. In the Hostineu dashboard, open Service settings → Send data (OTLP push) and confirm Accept OTLP push is on.

Unauthenticated calls to /otlp are rejected. Metrics land in VictoriaMetrics; logs land in Loki.

Option A — OpenTelemetry SDK in your app

Typical environment variables:

OTEL_EXPORTER_OTLP_ENDPOINT=https://<your-hostname>/otlp
OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer%20<OTLP-token>

Use this when a single service already speaks OTLP.

Run Grafana Alloy on the same machine (or Compose/K8s namespace) as your applications. Alloy can:

  • Tail container or file logs
  • Scrape local Prometheus endpoints on localhost
  • Batch and forward everything to this Hostineu /otlp URL with the Bearer token

That is the usual pattern when you have several processes, Docker Compose services, or you want logs without instrumenting every app. Point Alloy’s OTLP HTTP exporter at https://<your-hostname>/otlp and set the Authorization: Bearer … header (same token as above). Keep secrets out of config committed to git (env vars or a secret store).

You do not need Alloy on the app host if you only use pull scrape from this observability server and you do not need logs.

Pull — metrics only (Prometheus scrape)

Follow this section if this server should collect metrics from your /metrics endpoints. Skip it if you only use push.

Steps

  1. Open Service settings → We scrape your metrics (pull).

  2. Choose scrape interval (15s or 30s).

  3. Keep Also watch this stack’s own health enabled (recommended).

  4. Add one scrape job per line:

    jobname|host:port,other:port

    Example: node|10.0.0.5:9100

    Use host:port only — no http://, path, or credentials.

  5. Save. Hostineu applies the config on the guest (same as other service settings).

Leave the list blank if you only use OTLP push. Pull does not collect application logs — use push (SDK or Alloy) for logs.

Using push and pull together

Both paths run concurrently. A common mix:

  • Logs (and app metrics) → push, often via Alloy on your app host or OTEL SDKs
  • Host / JVM exporters already on a private network → pull scrape targets on this server

Turning OTLP off does not remove scrape jobs. Clearing scrape targets does not disable OTLP.

Verify in Grafana

  1. Explore → metrics (VictoriaMetrics): look for your scrape job label and/or OTLP resource attributes.
  2. Explore → logs (Loki): confirm lines only after you have pushed via OTLP (SDK or your Alloy).
  3. With self-scrapes on, you should also see this stack’s own VictoriaMetrics / Loki health series.

Cardinality and retention

  • Prefer metric labels like service, operation, result, environment.
  • Do not put high-cardinality values (user_id, request_id, emails) on metric labels — put those in logs (push).
  • Retention (metrics and logs days) is under Service settings → How long to keep data.