> For the complete documentation index, see [llms.txt](https://metalbear.com/mirrord/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://metalbear.com/mirrord/docs/managing-mirrord/admin-dashboard/license-server.md). Agents can also search and read this documentation through its [MCP server](https://metalbear.com/mirrord/docs/~gitbook/mcp). # License Server Setup How to set up the mirrord Dashboard on your own self-hosted license server. {% hint style="info" %} This page covers setup for the dashboard served by a self-hosted license server. See [Dashboard](https://metalbear.com/mirrord/docs/managing-mirrord/admin-dashboard.md) for what the interface looks like once it's running, or [Cloud Setup](https://metalbear.com/mirrord/docs/managing-mirrord/admin-dashboard/cloud.md) if your operator authenticates with a cloud API key instead. {% endhint %} This is the dashboard for self-hosted installs, nothing leaves your cluster. It reads from your license server's existing session database, so historical usage data appears immediately once enabled. ## Quick Start 1. Add `dashboard.enabled: true` to your license server Helm values: ```yaml # values.yaml dashboard: enabled: true ``` 2. Upgrade the license server: ```bash helm repo update metalbear helm upgrade mirrord-operator-license-server metalbear/mirrord-license-server -f ./values.yaml --wait ``` 3. Via `kubectl port-forward`: Forward the dashboard port to your local machine: ```bash kubectl port-forward -n mirrord svc/mirrord-operator-license-server 8050:8050 ``` 4. Open in your browser. Target workload breakdowns (namespace, deployment name) are available for sessions recorded after the upgrade. {% hint style="info" %} The dashboard does not require authentication beyond network access to the license server. Access control is handled by your cluster networking configuration. {% endhint %} ## Helm Configuration | Setting | Default | Description | | ------------------- | ------- | ------------------------------- | | `dashboard.enabled` | `false` | Enable the dashboard | | `dashboard.port` | `8050` | Port the dashboard is served on | The chart automatically configures the container port, service port, and required environment variables when `dashboard.enabled` is set to `true`. ## API Endpoints The dashboard consumes two API endpoints from the license server. These are also available for programmatic access: * `GET /api/v1/reports/usage?format=json` returns the full usage report (users, targets, sessions, CI metrics, machines). * `GET /api/v1/reports/usage/trends?days=30` returns time-series data (daily sessions, active users, CI sessions, user adoption). Both endpoints require the `x-license-key` header. This is the license key configured in the license server's Helm values (`license.key`). When the dashboard is served by the license server, this header is injected automatically. For direct API access (e.g., via `curl`), pass it manually: ```bash curl -H "x-license-key: " \ http://localhost:8050/api/v1/reports/usage?format=json ``` For spreadsheet reports (Excel format), see Getting a Utilisation Report (../license-server.md#getting-a-utilisation-report-from-the-license-server) For an OpenAPI description of the license server API, see [Getting an OpenAPI Description of the License Server API](https://metalbear.com/mirrord/docs/managing-mirrord/license-server.md#getting-an-openapi-description-of-the-license-server-api). --- # Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation by asking a question. Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters: ``` GET https://metalbear.com/mirrord/docs/managing-mirrord/admin-dashboard/license-server.md?ask=&goal= ``` `ask` is the immediate question: it should be specific, self-contained, and written in natural language. `goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.