Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

How to use external Prometheus as a provider? #382

Open
DomineCore opened this issue Nov 22, 2022 · 2 comments
Open

How to use external Prometheus as a provider? #382

DomineCore opened this issue Nov 22, 2022 · 2 comments

Comments

@DomineCore
Copy link

My Prometheus monitoring service is located in a cluster external saas services, I want to use it as the provider of sli, what should I do?

@agardnerIT
Copy link

@JJena
Copy link

JJena commented Mar 16, 2023

For external prometheus, the instructions say to start with creating a secret for the external promethus. Do we still need prometheus-service in such case? I assume Yes.

I did both steps but still getting error Unable to detect prometheus.

sudo keptn create secret prometheus-credentials-keptn-evaluation --scope="keptn-prometheus-service" --from-literal="PROMETHEUS_USER=" --from-literal="PROMETHEUS_PASSWORD=" --from-literal="PROMETHEUS_URL=http://10.7.12.37:9090"
Secret prometheus-credentials-keptn-evaluation created successfully
[jjena@lt-injector-4 ~]$ sudo helm upgrade --install -n keptn prometheus-service https://github.com/keptn-contrib/prometheus-service/releases/download/0.9.1/prometheus-service-0.9.1.tgz --reuse-values
Release "prometheus-service" does not exist. Installing it now.
Error: execution error at (prometheus-service/templates/serviceaccount.yaml:41:30): Unable to detect Prometheus in the kubernetes cluster!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants