Getting application metrics to prometheus #1893
Unanswered
ratnadeepb
asked this question in
Q&A
Replies: 1 comment
-
I managed to get my application's metrics showing by adding the scraping job config as Additional Scrape Configuration. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Java application (Kafka consumer) running in the default namespace of Kubernetes. It exposes a prometheus gauge metric which is exposed through HTTP.
I have tried adding all namespaces and to follow along the example app to get it going. But to no avail so far.
Generally the process looks like this so far:
My service yaml looks like this:
And the service monitor looks like this:
The setup is on a Linux server with no GUI. So I am accessing the Prometheus dashboard from my laptop using port-forwarding:
What am I missing? Any help is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions