Page MenuHomePhabricator

Provide a json output of confctl
Closed, ResolvedPublic

Description

Currently if you want to see what is pooled and what is not (and what are the percentages), you'd have to know the service's name and then go to somewhere like https://config-master.wikimedia.org/pybal/eqiad/appservers-https to see how many are pooled/depooled. Providing a json output for all services of a datacenter makes it easier to build a simple GUI app which could be quite beneficial during outages (like https://wikitech.wikimedia.org/wiki/Incidents/2023-02-22_wiki_outage)

Related Objects

Event Timeline

I wonder if it's possible to do the same for dbctl too while it's not in config-master (or I couldn't find it)

This would also be useful if we were looking to create automation to depool / pool certain racks or rows for maintenance, an idea that's been discussed in T327300.

Joe subscribed.

@Ladsgroup what do you need besides

$ confctl select 'dc=codfw' get 

which you can then pipe to jq to get whatever you want?

Declining for now, feel free to add more specific requests if you have any.

That is great and sorta exactly what I need but I need it publicly or half-publicly accessible in https://config-master.wikimedia.org. Something like https://config-master.wikimedia.org/pybal/codfw.json. Then I can build a gui in toolforge to show you all services with their health status as an overview, so you'd quickly be able to spot a service is mistakenly fully depooled or if depooling of all services in a rack/row has led to a service being dangerously low capacity.

After talking to Joe, we decided to reopen it. We need something in web to build data visualizations.

Change 921692 had a related patch set uploaded (by Giuseppe Lavagetto; author: Giuseppe Lavagetto):

[operations/puppet@production] profile::configmaster: dump a json data structure of the pools

https://gerrit.wikimedia.org/r/921692

Change 921692 merged by Giuseppe Lavagetto:

[operations/puppet@production] profile::configmaster: dump a json data structure of the pools

https://gerrit.wikimedia.org/r/921692

I didn't do it. I did annoy Joe to do it though.