Vector Telemetry Export
How Skitflow collects logs and metrics from every kind of service with Vector and ships them to Loki, Prometheus-compatible receivers and Elasticsearch/OpenSearch - sources, deployment modes, labels and isolation.
Skitflow uses Vector to collect logs and metrics from the servers it manages and ship them to systems you run. One agent per host (or one service per Swarm cluster) reads Docker containers, the host itself, Traefik and, optionally, your databases, then forwards everything to the destinations you configure. Nothing goes anywhere else.
This page describes what is collected, how the agent is deployed and what the data looks like on arrival. For adding destinations, the connection test, routing and permissions, see Logs & Metrics Export in Observability.
Logs & Metrics Export requires the Expert or Enterprise plan on Skitflow
Cloud, or an active license with the observability feature (or a trial) on
self-hosted. It does not depend on the ClickHouse store: you can use either
or both.
What it collects
Open Observability → Storage & export → Logs & Metrics Export. In Deployment target, every server shows a source map: one row per source with its state (Collecting, Off, Unavailable), the reason, and a switch where the source can be turned off or on.
| Source | Signal | Default | What it reads |
|---|---|---|---|
| Skitflow container logs | Logs | On while a logs destination is routed | Containers that Skitflow created for your organization (applications, Compose services, databases). |
| Unmanaged container logs | Logs | Off (opt-in) | Containers on the host that Skitflow did not create. Skitflow's own infrastructure containers are always excluded. |
| Traefik access and error logs | Logs | On | Traefik's access log file and the output of the skitflow-traefik container. |
| Host metrics | Metrics | On while a metrics destination is routed | CPU, memory, disk, file system, network, load and host metrics of the server, every 30 seconds. |
| Per-container metrics (cAdvisor) | Metrics | On | CPU, memory, network and disk I/O per container, from a cAdvisor sidecar. |
| Traefik metrics | Metrics | Off (opt-in) | Traefik's own metrics endpoint. |
| Database engine metrics | Metrics | Off (opt-in) | PostgreSQL, MongoDB, MySQL, MariaDB, Redis and ClickHouse metrics. Swarm targets only. |
As a general rule, a source only collects when a destination that can receive its signal is enabled and routed to that server. Some sources need more: Traefik logs need accessLog in traefik.yml, Traefik metrics need metrics enabled on Traefik itself (see Traefik), and Database engine metrics need a Swarm target (see Database engine metrics). When a source is not routed, the row reads Off with the reason No enabled logs destination is routed to this server (or metrics). Source switches are saved settings: after changing them, click Redeploy on the Vector agent panel to apply them.
Container logs
Skitflow container logs are read through the Docker socket. The agent reads only containers that carry your Skitflow organization label (skitflow.organization.id), so a container from another organization, or one with no Skitflow label, is never read.
Running containers without that label are listed on the agent panel as Logs are not exported from these running containers. A Skitflow workload deployed before the label existed gets it on its next deploy.
Unmanaged container logs is for containers Skitflow does not manage - a database you started by hand, a sidecar, another stack. Turn it on to include them. Their lines are stamped with your organization and the server name. Containers whose name starts with skitflow- are never included.
Traefik
Traefik access and error logs need accessLog to be configured in the server's traefik.yml; without it the row is Unavailable and only Traefik's own container output is collected. The agent starts at the end of the access log, so the first deploy does not ship old history.
Traefik metrics are scraped from Traefik's loopback metrics endpoint (127.0.0.1:8082), so they have to be enabled on the server first. If they are not, the switch is disabled and the row offers Enable Traefik metrics (owners and admins). Traefik telemetry is not available on Skitflow platform hosts.
Per-container metrics
Vector has no Docker metrics source, so Skitflow starts a cAdvisor sidecar named skitflow-cadvisor beside the agent. It listens on 127.0.0.1:8089 only, keeps just CPU, memory, network and disk I/O, and is scraped by Vector every 30 seconds. Series from containers that do not belong to your organization, from Skitflow infrastructure and from the host's root cgroup are dropped.
Database engine metrics
Metrics of the databases Skitflow manages are collected by a separate Vector scraper inside the Swarm, so they need three things: a Swarm target (on a standalone host the switch is disabled with Database metrics require a Swarm target), the Database engine metrics switch, and at least one enabled metrics destination routed to the server. Without a routed metrics destination nothing is discovered or deployed.
Which databases. Skitflow takes them from its own records, not from container labels: PostgreSQL, MongoDB, MySQL, MariaDB, Redis and ClickHouse databases created in Skitflow, in projects of your organization, running on this server (or on the local server for databases that have no remote server). Databases on other servers, in other organizations or on Kubernetes clusters are never included, and neither are databases you started by hand.
What is deployed. Turning the switch on and clicking Redeploy creates:
| Database | How it is read |
|---|---|
| PostgreSQL | Vector's postgresql_metrics source, connecting to the database over the cluster network |
| MongoDB | Vector's mongodb_metrics source, connecting to the database over the cluster network |
| MySQL, MariaDB | A skitflow-db-<type>-<id> service running prom/mysqld-exporter; the scraper reads it with basic authentication |
| Redis | A skitflow-db-redis-<id> service running oliver006/redis_exporter; the scraper reads it with basic authentication |
| ClickHouse | ClickHouse's built-in Prometheus endpoint (port 9363); no exporter is deployed |
The scraper itself is a skitflow-vector-scraper service with one replica, pinned to one node, attached to skitflow-network and to the overlay networks of your databases. Its configuration is a Docker secret, and it buffers on the skitflow-vector-scraper-data volume. If Traefik runs as a Swarm service and Traefik metrics are on, the same scraper reads Traefik over the overlay network.
ClickHouse metrics need the database to be redeployed, so that its built-in Prometheus endpoint is enabled. The switch does not restart databases.
Credentials. Skitflow uses the database credentials it already stores. They reach the scraper and exporters through Docker secrets, not through service specs, container labels or metric tags, and they are masked in Preview config. Connections to PostgreSQL and MongoDB use the cluster's overlay network without TLS. Each exporter has its own generated credential, which changes when the database credentials change.
Labels. Every series carries skitflow_database_id, skitflow_database_type (postgres, mongo, mysql, mariadb, redis or clickhouse), skitflow_project, skitflow_project_id, skitflow_environment and skitflow_environment_id, plus skitflow_organization and skitflow_server. Tags that could expose connection details (user, password, URL, endpoint, address and similar) are removed before the series leaves the host.
Staying up to date. When a database is deployed or deleted, or its networks change, Skitflow re-applies the configuration of the server it runs on, as long as the switch is on and the agent is already installed. It never creates an agent by itself. Exporters and secrets of a deleted database are removed. If that re-apply fails, the database operation still succeeds and the failure is recorded in the audit log as telemetryExport.config.apply with a masked reason (timed out, network, or generic); click Redeploy to retry. Plan and license rules are the same as for the rest of the export.
Deployment modes
Skitflow reads docker info on the target and picks the mode automatically. The detected mode is shown on the agent panel.
| Standalone | Swarm | |
|---|---|---|
| Detected as | A host that is not in a Swarm | A Swarm manager |
| Agent | A skitflow-vector container (--restart always, host network) | A global skitflow-vector service: one task on every node, including workers and nodes that join later |
| Image | timberio/vector:0.58.0-alpine | same |
| Configuration | /etc/skitflow/vector/vector.yaml on the host, mounted read-only | An immutable Docker config named skitflow-vector-<hash>, mounted into every task |
| Config change | The container is reloaded with SIGHUP, so it keeps running | A service update with stop-first ordering; if the rollout does not converge, the previous spec is restored |
| Per-container metrics | skitflow-cadvisor container | skitflow-cadvisor global service |
| Database metrics | Not available | Available through skitflow-vector-scraper |
In Swarm mode each event also carries a node field with the id of the node it came from, and the agent panel shows node coverage (3 of 3 running). A Swarm worker is covered by the manager's service; its panel shows Covered by the owning target.
On both modes the agent runs with the host network and reads the Docker socket and the host file systems read-only. Before anything is installed, the generated configuration is validated by Vector on the host (vector validate); an invalid configuration never replaces a working one.
Use Preview config to see the exact vector.yaml that would be applied, with every credential replaced by [redacted]. It requires telemetry_export.manage.
What arrives at the destination
Every log line and metric series is tagged so you can attribute it at the receiver:
| Field | Meaning |
|---|---|
skitflow_organization | Your Skitflow organization id |
skitflow_project, skitflow_project_id | Project name and id |
skitflow_environment, skitflow_environment_id | Environment name and id |
skitflow_application, skitflow_application_id | Application name and id |
skitflow_service | Service name |
skitflow_server | The server's name in Skitflow |
node | Swarm node id (Swarm targets only) |
skitflow_source | traefik on Traefik log lines |
Host and Traefik data carry skitflow_organization and skitflow_server (plus node on Swarm); container logs and per-container metrics carry the full set.
Loki labels. To keep the Loki index small, only skitflow_organization and
skitflow_server become stream labels. Project, environment, application,
service and ids stay in the JSON body, where you can reach them with
| json.
Server names. skitflow_server is the server name you typed in Skitflow. The characters ", \, { and } are replaced with _ so receivers such as Loki do not reject the push. A name that is empty after that is refused.
Isolation and safety
- Per-organization scope. Container logs are filtered by your organization label at the Docker socket, and again by a scope filter before the sinks. Per-container metrics are dropped unless the container belongs to your organization.
- Platform hosts are never exported. A Skitflow Cloud platform host never produces an export. Only your own servers (and the local host of a self-hosted installation) can run the agent.
- Credentials. The endpoint, API key and password are stored encrypted and are never returned by the API. A value containing Vector's
SECRET[...]syntax is refused, because Vector would expand it at startup and stop the agent. - Buffering. Every sink has a 256 MiB disk buffer on the host (
/etc/skitflow/vector/data, or a Docker volume in Swarm). If a receiver is down, the agent applies back-pressure instead of dropping events and resumes when it recovers. A receiver that stays down long enough to fill its buffer slows delivery to the other destinations on the same host too. - Audit. Every change is written to the audit log under
telemetryExport.*:provider.create,provider.update,provider.delete,provider.enable,provider.disable,routing.update,sources.update,agent.deploy,agent.redeploy,agent.removeandconfig.apply. A failed deploy or removal is recorded with a masked error, which is what the agent panel shows as Last failure on this host.
Destinations
| Type | Signals | Typical receivers |
|---|---|---|
| Grafana Loki | Logs | Grafana Loki, Grafana Cloud Logs |
| Prometheus remote write | Metrics | Prometheus, VictoriaMetrics, Grafana Mimir, Thanos, Grafana Cloud |
| Elasticsearch / OpenSearch / VictoriaLogs | Logs and metrics | Elasticsearch, OpenSearch (provisioned Amazon OpenSearch Service), VictoriaLogs |
Fields, authentication rules and the connection-test API are in Logs & Metrics Export. To route logs to Loki and metrics to Prometheus at the same time, add one destination of each type and tick both on the server.
Troubleshooting
| Symptom | Cause |
|---|---|
| Saved, but not deployed to this target | Routing or sources changed and the agent has not been redeployed yet. Click Redeploy. |
| This host is running an older configuration | The host's configuration differs from the saved one. Redeploy. |
| Nothing is routed to this target any more, but the agent is still running | Click Remove agent, or route a destination to the server. |
| Source row reads Unavailable | The reason is shown under the row: no accessLog in traefik.yml, Traefik metrics disabled, a platform host, or a standalone target for database metrics. |
| Source row shows no state | The state depends on host facts that could not be read: reading Traefik needs telemetry_export.manage, and the agent must have applied the current configuration. |
| The saved destinations cannot generate a valid configuration | A destination has settings its type cannot render (for example a password without a username on Elasticsearch). Fix them before redeploying; the current agent can still be removed. |
| Logs from a container are missing | The container has no Skitflow organization label. Redeploy the workload, or turn on Unmanaged container logs. |
Related
- Observability - ClickHouse-backed logs, traces and route metrics
- Monitoring - server and container resource metrics and alert thresholds
- Swarm Monitoring - cluster topology and per-container metrics
- Custom Roles - the
telemetry_exportpermissions