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 upRefactor the API to use go-kit #3416
Comments
brian-brazil
added
component/api
kind/cleanup
priority/Pmaybe
labels
Dec 8, 2017
This comment has been minimized.
This comment has been minimized.
|
@tomwilkie what do you have against go-kit? |
This comment has been minimized.
This comment has been minimized.
gauravsitlani
commented
Feb 26, 2018
|
@krasi-georgiev Can I take the initiative to help out . |
This comment has been minimized.
This comment has been minimized.
|
that would be great! I am leaning towards gokit + swagger spec generation via annotations. |
This comment has been minimized.
This comment has been minimized.
gauravsitlani
commented
Feb 26, 2018
|
@krasi-georgiev I'll go through the api code and check out go-kit + swagger and follow the thread. |
This comment has been minimized.
This comment has been minimized.
|
Thanks. |
This comment has been minimized.
This comment has been minimized.
Bo0km4n
commented
Mar 14, 2018
|
Hi I’m Katsuya, |
This comment has been minimized.
This comment has been minimized.
|
I did a quick research and started a dicsussion in the Prometheus mailing list. also started a doc to take some notes overall I am leaning towards go-kit with some code annotations to auto generate the code based on the code annotations/comments next to each endpoint. if you have an opinion can post it in the mailing list to get some more comment and can also ping me on irc #prometheus-dev if you have any questions. |
This comment has been minimized.
This comment has been minimized.
|
@Bo0km4n should hang around a bit longer in the IRC. Saw your question, but you were not in the irc anymore. if you put |
This comment has been minimized.
This comment has been minimized.
Bo0km4n
commented
Mar 14, 2018
|
Oh, I’m sorry,,, I’m the first time to use IRC.
Even if you skipped a private chat with the “/privmsg command”, I got an error.
If you do not bother you, I’d like to contact you by email or github issue.
… 2018/03/15 4:34、Krasi Georgiev ***@***.***>のメール:
@Bo0km4n <https://github.com/bo0km4n> should hang around a bit longer in the IRC. Saw your question, but you were not in the irc anymore. if you put @krasi <https://github.com/krasi> in front of the question I will get a notification and better chance to get a quick reply.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#3416 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AOYwmz5QdQz1cJHR1Il2S8T3jLebCezlks5teXCvgaJpZM4QTJWL>.
|
This comment has been minimized.
This comment has been minimized.
|
it might be a bit difficult of you have more than one question , but lets try , fire away. |
This comment has been minimized.
This comment has been minimized.
Bo0km4n
commented
Mar 14, 2018
|
Fmm... Ok, I think I will try a conversation on irc.
Could you tell me about private chat command?
I tried command “/privmsg krasi hello, nice to meet you”
But actually, I couldn’t send message to you.
What command when you send private message to other user?
Sorry to hear persistently.
|
This comment has been minimized.
This comment has been minimized.
|
send me a message in the main room |
This comment has been minimized.
This comment has been minimized.
Bo0km4n
commented
Mar 14, 2018
|
Sorry I don't know how to enter main room.
Do not you just enter the #prometheus-dev channel?
2018-03-15 5:02 GMT+09:00 Krasi Georgiev <notifications@github.com>:
… send me a message in the main room
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3416 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOYwm5kdrxq11lt-b396zDDijFLN_edgks5teXdDgaJpZM4QTJWL>
.
|
This comment has been minimized.
This comment has been minimized.
|
What's the actual problem we're trying to solve here? |
This comment has been minimized.
This comment has been minimized.
|
AFAIR the code is not well organised , v1,v2, admin are all separate and difficult to follow. |
This comment has been minimized.
This comment has been minimized.
|
I don't see how using a framework would resolve any of that, it'd just add an extra layer of abstraction and complicate the code. That versioning was never properly designed wouldn't be fixed either, and I personally think we should be considering deleting v2 rather than fixing it. |
This comment has been minimized.
This comment has been minimized.
|
can't be sure on a 100% , but I would like at least to try and refactor it. I am against using frameworks as well so will try to avoid it at all cost unless it brings some real time and maintaining savings. |
This comment has been minimized.
This comment has been minimized.
|
As is stands there's very little maintenance required on the APIs, and adding new endpoints isn't that hard. |
This comment has been minimized.
This comment has been minimized.
|
It was long ago so will check again and will close the proposal if that is the case. |
This comment has been minimized.
This comment has been minimized.
|
I had a look at the code again as part of troubleshooting a race condition and must say it is extremely unorganised , difficult to follow and difficult to troubleshoot. Now I am even more convinced than before that this can get a lot better. |
This comment has been minimized.
This comment has been minimized.
|
the last dev summit it was decided to try open api for the alertmanager and it all good will consider it for Prometheus as well. |
krasi-georgiev commentedNov 6, 2017
•
edited
Started looking at the api code and I think it can be improved by using the go-kit package.
https://github.com/go-kit/kit
https://youtu.be/JXEjAwNWays?t=1451
https://www.youtube.com/watch?v=NX0sHF8ZZgw