Skip to content

Prometheus rebuild - #694

Open
RobHooper wants to merge 13 commits into
mainfrom
prometheus-rebuild
Open

RobHooper wants to merge 13 commits into
mainfrom
prometheus-rebuild

Conversation

@RobHooper

Copy link
Copy Markdown
Contributor

Planned server rebuild, see #602

@RobHooper
RobHooper requested a review from jpmckinney November 23, 2026 15:29
@RobHooper RobHooper self-assigned this Nov 23, 2026
@RobHooper

Copy link
Copy Markdown
Contributor Author

Migration plan:

  1. Stop prometheus on both servers
systemctl stop prometheus-server
  1. Data migration (ran on ocp30)
rm -rf /home/prometheus-server/data/*
rsync -avz ocp20.open-contracting.org:/home/prometheus-server/data/ /home/prometheus-server/data/
systemctl start prometheus-server
  1. Deploy all servers
  2. Update DNS

@jpmckinney jpmckinney left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the dashboards are all unmodified "Export as code" from Grafana? I'm not sure I've seen the single_server_alternative?

Otherwise small nits. Looks good!

Comment thread salt-config/roster Resolved
Comment thread salt/apache/files/sites/_common.conf Resolved
Comment thread salt/grafana/files/dashboards.yaml Resolved
Comment thread salt/grafana/init.sls Resolved
Comment thread salt/grafana/init.sls Resolved
@jpmckinney

Copy link
Copy Markdown
Member

I approve the migration plan : )

@RobHooper

Copy link
Copy Markdown
Contributor Author

I assume the dashboards are all unmodified "Export as code" from Grafana?

Only one manual change to the single_server.json, I removed the default / selected variables since they pointed to the old server and are not needed.
Commit: e7e9040

I'm not sure I've seen the single_server_alternative?

single_server_alternative is called "Prometheus System" in Grafana, I thought the old name was quite generic and wanted to indicate the function (Seeing details for a single server) but obviously this can be confusing too.
It is still titled "Prometheus System" in Grafana so I could rename it to that, or something else if you have any suggestions

@jpmckinney

Copy link
Copy Markdown
Member

Oh I never used Prometheus System because it didn’t sound relevant 😅 Maybe single_server_default and matching display name?

@jpmckinney

Copy link
Copy Markdown
Member

For the renames, I might have confused myself. Is "Prometheus System" a Grafana or community default? If so my suggestion was to rename single_server_alternative -> single_server_default (or maybe single_server_community or something). And we would keep the other one as still the plain single_server (not single_server_default).

@jpmckinney

Copy link
Copy Markdown
Member

As for - name, we mostly follow the rule I had described, so I added that to the style guide and fixed the few exceptions in the repo on main (and added the one change here).

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

Successfully merging this pull request may close these issues.

2 participants