Prometheus Agent Remote Write Config :: Kloudfuse Docs
Prometheus Agent Remote Write Config
Using an Existing Prometheus Server
Determine the ingress IP for the Kloudfuse stack.
kubectl get svc | grep kfuse-ingress-nginx-controllerYou can use either the EXTERNAL-IP address, or DNS name.
DNS name does not work if the Kloudfuse stack is on a different VPC or cluster than the target cluster.
You can use the IP address in all circumstances.Add a
remote_writeendpoint to use the Prometheus server. Choose the correct option, depending on your network protocol (httporhttps):http://<REPLACE KFUSE ADDRESS>/write as the remote_write
https://
| | |
| --- | --- |
| | Starting with Kloudfuse 3.4.3 and Prometheus 2.40+, native histograms are supported. To enable sending native histograms, add `send_native_histograms: true` to your remote write configuration. See [Native and Exponential Histograms](https://docs.kloudfuse.com/platform/3.5.0/histogram-native-exponential/) for more details. |
If the Prometheus server is installed using the standalone Prometheus helm chart, add the following
helmvalues and runhelm upgrade:server: # For Prometheus 2.40+ and Kloudfuse 3.4.3+, enable native histograms feature: extraArgs: enable-feature: native-histograms
serverFiles:
prometheus.yml:
remote_write:
- url: http://
Prometheus Operator
Helm Chart Values
Use these steps if the Prometheus server is installed using Prometheus Operator or kube-prometheus-stack helm chart:
Add the following helm values:
prometheus: prometheusSpec: # For Prometheus 2.40+ and Kloudfuse 3.4.3+, enable native histograms feature: enableFeatures: - native-histograms remoteWrite: - queueConfig: maxSamplesPerSend: 4000 url: http://<REPLACE KFUSE ADDRESS>/write # For Prometheus 2.40+ and Kloudfuse 3.4.3+, enable native histograms: sendNativeHistograms: trueRun
helm upgrade.
Prometheus CRD
Alternatively, configure the remote write through Prometheus CRD. Update the Prometheus CRD (kind: Prometheus) using the following configuration:
# For Prometheus 2.40+ and Kloudfuse 3.4.3+, enable native histograms feature:
enableFeatures:
- native-histograms
remoteWrite:
- queueConfig:
maxSamplesPerSend: 4000
url: http://<REPLACE KFUSE ADDRESS>/write
# For Prometheus 2.40+ and Kloudfuse 3.4.3+, enable native histograms:
sendNativeHistograms: true
Replacing the Prometheus Server
You can also replace the Prometheus server with Grafana Agent, which is lighter-weight and can be configured to scrape and emit write metrics.
Use the following helm chart to install the agent. Use the following helm values:
config:
prometheus:
remoteWrite:
url: http://<REPLACE KfUSE ADDRESS>/write
configs:
<copy existing scrape configs here>