Prometheus, play framework.

803 views
Skip to first unread message

alb...@ecsagency.com

unread,
Jun 8, 2015, 8:07:01 PM6/8/15
to prometheus...@googlegroups.com
Hello, I'm newer using Prometheus and I didn't found something that help me. I have an application in scala with play framework, but I can't use Prometheus for this application. Someone can help me. I used Intellij and build.sbt

Brian Brazil

unread,
Jun 9, 2015, 6:13:49 AM6/9/15
to alb...@ecsagency.com, prometheus-developers
On 9 June 2015 at 01:07, <alb...@ecsagency.com> wrote:
Hello,  I'm newer using Prometheus and I didn't found something that help me. I have an application in scala with play framework, but I can't use Prometheus for this application. Someone can help me. I used Intellij and build.sbt

Can you give us more detail on what's not working for you?

We use a custom hander with Play to expose the metrics, though you could also start up a separate Jetty http server.

Brian
 

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jose Alberto Lopez

unread,
Jun 9, 2015, 12:26:26 PM6/9/15
to prometheus...@googlegroups.com
I don't know where start

On Mon, Jun 8, 2015 at 7:07 PM, <alb...@ecsagency.com> wrote:
Hello,  I'm newer using Prometheus and I didn't found something that help me. I have an application in scala with play framework, but I can't use Prometheus for this application. Someone can help me. I used Intellij and build.sbt

--
You received this message because you are subscribed to a topic in the Google Groups "Prometheus Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/prometheus-developers/LygDD8PwwJM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to prometheus-devel...@googlegroups.com.

Brian Brazil

unread,
Jun 9, 2015, 12:30:42 PM6/9/15
to Jose Alberto Lopez, prometheus-developers
On 9 June 2015 at 17:26, Jose Alberto Lopez <alb...@ecsagency.com> wrote:
I don't know where start

I'd suggest starting with a basic Java tutorial with Maven, and working from there once you get a feel for things. See

Brian
 

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.

Brian Brazil

unread,
Jun 9, 2015, 5:28:34 PM6/9/15
to Jose Alberto Lopez, prometheus-developers
On 9 June 2015 at 19:05, Jose Alberto Lopez <alb...@ecsagency.com> wrote:
I must to use maven?

There's no requirement to use maven. Anything that can pull down the packages from the Central Repository and use them should work.

Brian
 

On Tue, Jun 9, 2015 at 11:33 AM, Jose Alberto Lopez <alb...@ecsagency.com> wrote:
ok, thank you. I will star with this 
B97.gif

Brian Brazil

unread,
Jun 10, 2015, 5:07:37 AM6/10/15
to Jose Alberto Lopez, prometheus-developers
The Central Repository is the standard place to put open-source JVM packages and source used by tools like Maven and SBT. See https://search.maven.org/#browse

Brian

On 9 June 2015 at 22:52, Jose Alberto Lopez <alb...@ecsagency.com> wrote:
where the Central Repository is? the repository on github??
B97.gif

Brian Brazil

unread,
Jun 12, 2015, 5:34:35 AM6/12/15
to Jose Alberto Lopez, prometheus-developers
On 12 June 2015 at 00:10, Jose Alberto Lopez <alb...@ecsagency.com> wrote:
hi.
I have new problem, I try to monitored my postgresql server but the prometheus said a error 
"Consul SD configuration requires at least one service name"

I have this in prometheus.yml
consult_sd_configs:
-server: 'localhost:5432'
-service:['postgres']
relabel_configs:
-source_labels:['__meta_consul_service']
regex: '(.*)'
target_label: 'job'
replacement: '$1'

can you help me please?

Someone on the list may be able to help you. 

Brian
 

On Wed, Jun 10, 2015 at 2:37 PM, Jose Alberto Lopez <alb...@ecsagency.com> wrote:
I almost get it,I configured the Prometheus server and it is listening my project in localhost:9000 that it's the play server. I understand that the prometheus needs a Json file to process the information. But what I need write in the Json, I wrote:
{"name":"request_latency_seconds","time":"5s"}
and prometheus said "unrecognized API version "
How can I solve this problem?

On Wed, Jun 10, 2015 at 9:24 AM, Jose Alberto Lopez <alb...@ecsagency.com> wrote:
thankyou very much, I need it because my application use SBT
B97.gif

Fabian Reinartz

unread,
Jun 12, 2015, 6:45:56 AM6/12/15
to prometheus...@googlegroups.com, alb...@ecsagency.com
Hi,

It's 'consul_sd_configs', not 'consult_sd_configs'.
It's 'services', not 'service'.

One list item in 'consul_sd_config' is one configuration for service discovery via Consul.
Don't prepend one dash to each item belonging to a single config.

Please check to the configuration documentation: http://prometheus.io/docs/operating/configuration
It also links to an example of a valid configuration.


Fabian
To unsubscribe from this group and all its topics, send an email to prometheus-developers+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages