# Prometheus Integration

## Prometheus Configuration Process.

#### Welcome to Pier Cloud!&#xD;

This document aims to be a guide so that you can prepare the environment to connect the Pier Cloud platform with Prometheus using an Endpoint connection.

### On the Pier Cloud Platform

Configure the Pier Cloud Platform to receive data from the Prometheus integration

To configure the platform, follow the detailed steps below:

1. On the Pier Cloud platform, click on your user icon, then **settings**.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FCHGnCUyHOqrLdvbEFWZr%2Fimage.png?alt=media&#x26;token=7da4de41-e9f5-4322-842b-1e68047488bf" alt=""><figcaption></figcaption></figure>

2. Here click on **secrets**, as shown in the image below:

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FBYwWzF7WFvOWguuF0At8%2Fimage.png?alt=media&#x26;token=a8ab78f9-536d-4905-bb95-d616f02120da" alt=""><figcaption></figcaption></figure>

3. In this step click on **+ Add**.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FB5EqNbO4LiN4YMAX4K36%2Fimage.png?alt=media&#x26;token=19540e9d-0a7e-4038-beea-a317c7494dd2" alt=""><figcaption></figcaption></figure>

4. In this step we will create the Token, in the **Name** field enter the token identification name, in the **Type** field enter the Bearer token and in the **bearer Token** field enter the token, then click save to create the token, as shown in the image below:

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUdFIjFKJ-uawLGVh_E3Vn_jlorAOa1zeOU_6bKudcHmlrsnQ_y8uiHtu4-JjYiD9Y5cV5R9Tb46ppkMufvPu9QXXQs6fivFkKJgksCvsFx-wT95NTWjYgG22bQqi-kx90CK4sgN1sl3XQBKRL0JQNCbbG5bUfmn=s2048?key=YLaGGMKoyHYhc8PsCZr7Gg" alt=""><figcaption></figcaption></figure>

5. After creating the token, click on **Data Connector**, and then click on **+ Add**, in the upper right corner, to create the data connector, as shown in the image below:

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FRBvGOfSxAtpt3bXj4NXg%2Fimage.png?alt=media&#x26;token=aecda8e0-2a37-424a-b150-613eb7ad8f58" alt=""><figcaption></figcaption></figure>

7. In this step, we will add the information for our data connector.
   1. In the **Data Connector** field, we will select a Data connector (in this case we will select the Prometheus data connector).
   2. In the **Data Connector identifier Name** field, enter the identification name of the Data Connector.
   3. In the **Select the Secret for this data connector** field, select Token created in step 4.
   4. In the **Endpoint** field, enter the prometheus URL, then click **ADD**, as shown in the image below:

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUctA8-QWTFO3DMBPrVcyBTpg9zHYIL4e4lsIEM79smMtoi67Lg5b_ryrPZr44gtfu71JSrp9ddrfFxfvArpv1AbDsQkCx4_7GRWCfOQV9SvFSJ3Ng08p3aMTOGXxWiGWI29LpYbBsWXHGdIqTE-iDhy6J9_YDc=s2048?key=YLaGGMKoyHYhc8PsCZr7Gg" alt=""><figcaption></figcaption></figure>

8. In this step we will finalize the Data Connector configuration.
   * Note that after clicking Add in the **Endpoint** field, the URL is saved, as shown in the blue outline in the image below\..
   * In the **Metric Name** field, enter the name of the metric for identification.
   * In the **Metric value** field, enter the desired metric, click **Add**, to add the desired metric.
   * Click **Save** to save the settings and create the Data Connector.
   * **Note**: The metric inserted as an example was a Kubernetes metric, but other metrics can be inserted.

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUfZuv-Ej0spY1jQeQNhVBGHDwgY04otNpA45Rp2Y9s5KGg3-dB3vCMBQL9QcH2HM5dJ77mL67A4e_QNsEiu2fxM5o8vTQi9bLItXi3FTxeWeDf1UNgcCD3XPzPA1pL-fj8-PMiuU4dp6Zj-7V0flniKeSWGQgyq=s2048?key=YLaGGMKoyHYhc8PsCZr7Gg" alt=""><figcaption></figcaption></figure>

**Setup complete!**

* For the integration to work, the Prometheus Endpoint must be available on the internet.
