#sre - November 2018

November 2018
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
What are you guys using with ECS and prometheus for SD?
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
We had our own SD in python, but im always afraid of hitting the api limits as we scale, as we did before
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
(we had a DNS SD based on lambda and ECS events)
joshmyers
joshmyersalmost 8 years ago(edited)
At previous client who were so big they ended up having to pay for AWS API requests a tool was written to do a single lookup a la ec2_sd, write it to a file and the file gets mounted inside k8s prom, where k8s prom was multi team and if each team did their own lookups, would bust the limit
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
Yeah, we did a tool for that in Lambda, tbh is not that complicated
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
but I was looking for a "simpler" solution
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
I have a similar situation for uploading new prometheus configs, without doing a docker deployment, since albeit incorrectly that was the "easy" start for us but it sort of sucks
mrwacky
mrwackyalmost 8 years ago
mrwacky
mrwackyalmost 8 years ago
@Gonzalo Peci ☝️
tamsky
tamskyalmost 8 years ago
what's wrong with Consul for SD ?
joshmyers
joshmyersalmost 8 years ago
You need consul? 🙂
joshmyers
joshmyersalmost 8 years ago
Maybe not what you want if that is all you are going to use Consul for
tamsky
tamskyalmost 8 years ago
@joshmyers so what are your reasons for not using Consul if used strictly for SD ?
mrwacky
mrwackyalmost 8 years ago
ease of use, setup, deficiencies in AWS SD options, yeah, Consul is great
joshmyers
joshmyersalmost 8 years ago
I don’t have any. I’m just saying folks may not want to run a 3 node etcd cluster when they have been using AWS API as cheap service discovery
mrwacky
mrwackyalmost 8 years ago(edited)
Good news, Consul is not etcd 😄 😄 😄
joshmyers
joshmyersalmost 8 years ago
hah, oops, same thing. It is a thing you need to manage?
tamsky
tamskyalmost 8 years ago
of all the services I've operated/managed since 2014, consul is the least needy service I've met
joshmyers
joshmyersalmost 8 years ago
Nice
tamsky
tamskyalmost 8 years ago
self-bootstrapping EC2 ASG cluster FTW
joshmyers
joshmyersalmost 8 years ago
Have used with Nomad before and not had any issues with it, but it isn’t a managed type service, was my only point 🙂
tamsky
tamskyalmost 8 years ago
managed type services are good for getting started -- one should have a plan for when your org's needs or skills outgrow a managed service offering from anyone
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
...such as multi-cloud
joshmyers
joshmyersalmost 8 years ago
Aye, multi cloud is hard though 😉
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
yea, the all elusive multi-cloud strategy
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
@mrwacky yeah we know about consul and registrator, but as explained by @joshmyers that is ofc the option if you have Consul, we dont
Gonzalo Peci
Gonzalo Pecialmost 8 years ago(edited)
and while it is a good easy discovery once you have that, the question would be you do if you dont hve consul
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
at the moment our services dont use mesh, as we dont need/want that yet
Gonzalo Peci
Gonzalo Pecialmost 8 years ago(edited)
so consul will be there ONLY to support prometheus discovery, and that seemed overkill to me, but maybe its the only option
mrwacky
mrwackyalmost 8 years ago
I'm sure there's other options..
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
Tamsky, I know the options, as I mentioned we are already using this, and we had our own lambda for SD
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
I was trying to ping/pong how others were doing it
tamsky
tamskyalmost 8 years ago

(we had a DNS SD based on lambda and ECS events)

but I was looking for a "simpler" solution


I guess I was trying to help out re: "simpler" solutions.
tamsky
tamskyalmost 8 years ago

I have a similar situation for uploading new prometheus configs, without doing a docker deployment, since albeit incorrectly that was the "easy" start for us but it sort of sucks


how do you handle persistent storage for prometheus in your docker setup -- that answer might guide us toward an easy process that can update your prometheus configs.