> For the complete documentation index, see [llms.txt](https://docs.mluvii.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mluvii.com/pro-it-specialisty/realtime-statistiky/pripojeni-do-influx-databaze.md).

# Připojení do influx databáze

## Získání přístupových údajů

V mluvii public api jsou obsaženy dva endpointy k získání přístupových údajů do influx databáze.

1. **`/api/v1/Companies/metricSettings`** slouží pro získání přístupu do všech společností ke kterým mám oprávnění v mluvii
2. **`/api/v1/Companies/{companyId}/metricSettings`** slouží pro získání přístupu ke konkrétní společnosti za předpokladu, že na to mám v mluvii oprávnění

{% hint style="info" %}
*Tyto endpointy vrátí url a token, který použijeme pro připojení do influx databáze.*
{% endhint %}

{% hint style="warning" %}
*Nutné oprávnění ve společnosti v mluvii je Správce společnosti.*
{% endhint %}

## Kam dál?

* [Ukázkové kódy](/pro-it-specialisty/realtime-statistiky/ukazkove-kody.md)
* [Existující metriky](/pro-it-specialisty/realtime-statistiky/existujici-metriky.md)
* [Zobrazení dat v Grafaně](/pro-it-specialisty/realtime-statistiky/grafana.md)


---

# 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 dynamically by asking a question.

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

```
GET https://docs.mluvii.com/pro-it-specialisty/realtime-statistiky/pripojeni-do-influx-databaze.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.
