# HQ

To be able to view and drill into your Kafka environment, you need to connect the agent to HQ. You need to create an environment in HQ and copy the Agent Key into the **provisioning.yaml.**

{% hint style="success" %}
Only one HQ connection is allowed.

See [JSON schema](https://docs.lenses.io/latest/deployment/configuration/overview#json-schema-support) for support.

Environment variables are supported; escape the dollar sign

```yaml
sslKeystorePassword:
  value: "\${ENV_VAR_NAME}"
```

{% endhint %}

<pre class="language-yaml" data-title="provisioning.yaml"><code class="lang-yaml">lensesHq:
<strong>  - name: lenses-hq
</strong>    version: 1
    tags: ['hq']
    configuration:
      server:
        value: "\${LENSES_HQ_HOST}"
      port:
        value: 10000
      agentKey:
        value: "\${LENSES_HQ_AGENT_KEY}"
      sslEnabled:
        value: true
      sslTruststore:
        file: hq-truststore.jks
      sslTruststorePassword:
        value: "\${LENSES_HQ_AGENT_TRUSTSTORE_PWD}"
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lenses.io/latest/deployment/configuration/agent/automation/hq.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
