Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign updigitalocean service discovery #4166
Comments
This comment has been minimized.
This comment has been minimized.
|
Per https://github.com/prometheus/prometheus/tree/master/discovery#service-discovery we are not currently accepting new SD mechanisms, so would recommend that you use file_sd. |
This comment has been minimized.
This comment has been minimized.
|
maybe we should update this to say
|
This comment has been minimized.
This comment has been minimized.
|
oh, ok, got it. If I compromise to maintain it, still not a thing you want to do? about file_sd, the right way to inform the labels for each target is something like: [
{
"targets": [ "1.2.3.4"],
"labels": {
"name": "foo"
}
},
{
"targets": [ "1.2.3.5"],
"labels": {
"name": "bar"
}
}
]or is there a better way? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
btw a while ago I started a discussion about |
This comment has been minimized.
This comment has been minimized.
Part of the reason the moratorium is all the previous sd creators who said the same thing, and did not follow through. |
This comment has been minimized.
This comment has been minimized.
hm, OK, I can understand that. As much as I want to say I'll not be one of those, you have no reason to believe me, so it doesn't matter heh Anyway, thanks for the replies, will try to make an external thing that generates the file in the right format, so other people may still use it anyway :) Oh, and thanks for this great tool! Prometheus is awesome! Cheers! |
caarlos0
closed this
May 16, 2018
This comment has been minimized.
This comment has been minimized.
|
In case anyone else needs this -> https://github.com/TOTVS/prometheus-digitalocean-sd |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
caarlos0 commentedMay 16, 2018
Proposal
Use case. Why is this important?
I want to use prometheus on DigitalOcean. My previous experience was on aws, using ec2_sd and all that.
I noticed, though, that there isn't a digitalocean_sd or something like that for digitalocean.
I could in theory use SD from files, etcd or whatever... but I think it would be useful for more people.
Is that from the interest of you guys? If it is, I can work on a PR.
Thanks!