# Prometheus operator

Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fintegrations%2Fprometheus%2Fprometheus-operator.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fintegrations%2Fprometheus%2Fprometheus-operator.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

Prometheus Operator provides easy way to operate end-to-end Kubernetes cluster monitoring with Prometheus and exporters. Use it to collect, process, and aggregate metrics from applications in your Kubernetes cluster and send them to Coralogix.<br /><!-- -->This guide shows you how to run Prometheus Operator in Kubernetes to export your data to Coralogix.

Our Helm chart is open source and you are welcome to review and make suggestions for improvements in our [Integrations repository](https://github.com/coralogix/telemetry-shippers/blob/master/metrics/prometheus/operator/README.md).

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

* `Kubernetes` 1.20+ with Beta APIs enabled.

* `Helm` 2.9+ Package Manager installed (For installation instructions please visit [Get Helm!](https://helm.sh/)).

## Setup[​](#setup "Direct link to Setup")

### Create a Namespace (in our example, we will use: **monitoring**):[​](#create-a-namespace-in-our-example-we-will-usemonitoring "Direct link to create-a-namespace-in-our-example-we-will-usemonitoring")

```
kubectl create namespace monitoring
```

### Create Secret[​](#create-secret "Direct link to Create Secret")

Your [Send-Your-Data API key](https://docs-docusaurus.kinsta.page/user-guides/account-management/api-keys/send-your-data-api-key/.md) can be found in the Coralogix UI in the top of the screen under *Data Flow* –> *API Keys* –> *Send Your Data*

```
kubectl create secret generic coralogix-keys \

        -n monitoring \

        --from-literal=PRIVATE_KEY=<send-your-data-API-key>
```

The created secret will look as such:

```
apiVersion: v1

data:

  PRIVATE_KEY: <encrypted-private-key>

kind: Secret

metadata:

  name: coralogix-keys

  namespace: monitoring

type: Opaque 
```

### Add the Helm Chart Repo[​](#add-the-helm-chart-repo "Direct link to Add the Helm Chart Repo")

```
helm repo add coralogix-charts-virtual https://cgx.jfrog.io/artifactory/coralogix-charts-virtual &&

helm repo update
```

### Create An override.yml File[​](#create-an-overrideyml-file "Direct link to Create An override.yml File")

Choose the correct Coralogix Domain according to your account, the domain table can be found [here](https://docs-docusaurus.kinsta.page/user-guides/account-management/account-settings/coralogix-domain/.md).

```
#override.yaml:

---

global:

  endpoint: "https://ingress.eu2.coralogix.com/prometheus/v1"
```

### Deploy the Chart[​](#deploy-the-chart "Direct link to Deploy the Chart")

```
helm upgrade --install prometheus-coralogix coralogix-charts-virtual/prometheus-operator-coralogix \

  --namespace=monitoring \

  -f override.yaml
```

### Delete the deployment[​](#delete-the-deployment "Direct link to Delete the deployment")

```
helm uninstall prometheus-coralogix \

--namespace=monitoring
```

## Additional resources[​](#additional-resources "Direct link to Additional resources")

|                     |                                                                                                 |
| ------------------- | ----------------------------------------------------------------------------------------------- |
| Coralogix Endpoints | [Coralogix Endpoints](https://docs-docusaurus.kinsta.page/integrations/coralogix-endpoints/.md) |
