Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add metrics in the '/metrics' url #10

Open
deadjoker opened this issue Oct 22, 2019 · 2 comments
Open

How to add metrics in the '/metrics' url #10

deadjoker opened this issue Oct 22, 2019 · 2 comments

Comments

@deadjoker
Copy link

I follow the steps and start the exporter with './opentsdb_exporter'. But only go metrics list in the '/metrics' url
How can I add opentsdb metrics in the '/metrics' url?

@ZLhhs
Copy link

ZLhhs commented Jul 29, 2020

The same with me, Only Go metrics in list
Anyone know how can I get the TSDB metrics?

@ZLhhs
Copy link

ZLhhs commented Jul 29, 2020

The same with me, Only Go metrics in list
Anyone know how can I get the TSDB metrics?

I know how to get metrics for TSDB by TSDB-exporter now:
The URL must be : TSDB_Exporter_IP:9250/opentsdb?target=http://TSDB_IP:4242

the Config is :
##############################

  • job_name : 'TSDB_Test'
    static_configs:
    -targets : ['TSDB_Exporter_IP:9250', 'TSDB_Exporter_IP:9250']
    metrics_path : /opentsdb
    params:
    target : ['http://localhost:4242'] # my TSDB and TSDB_Exporter at a same instance
    ##############################

Prometheus will pull metrics with http://TSDB_Exporter_IP:9250/opentsdb?target=http://TSDB_IP:4242 for every TSDB instance.

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

No branches or pull requests

2 participants