mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
Merge pull request #107469 from Ma27/bump-prometheus
prometheus: 2.22.2 -> 2.23.0
This commit is contained in:
commit
f1584ed282
@ -36,6 +36,7 @@ in import ./make-test-python.nix {
|
|||||||
nodes = {
|
nodes = {
|
||||||
prometheus = { pkgs, ... }: {
|
prometheus = { pkgs, ... }: {
|
||||||
virtualisation.diskSize = 2 * 1024;
|
virtualisation.diskSize = 2 * 1024;
|
||||||
|
virtualisation.memorySize = 2048;
|
||||||
environment.systemPackages = [ pkgs.jq ];
|
environment.systemPackages = [ pkgs.jq ];
|
||||||
networking.firewall.allowedTCPPorts = [ grpcPort ];
|
networking.firewall.allowedTCPPorts = [ grpcPort ];
|
||||||
services.prometheus = {
|
services.prometheus = {
|
||||||
@ -132,6 +133,7 @@ in import ./make-test-python.nix {
|
|||||||
|
|
||||||
store = { pkgs, ... }: {
|
store = { pkgs, ... }: {
|
||||||
virtualisation.diskSize = 2 * 1024;
|
virtualisation.diskSize = 2 * 1024;
|
||||||
|
virtualisation.memorySize = 2048;
|
||||||
environment.systemPackages = with pkgs; [ jq thanos ];
|
environment.systemPackages = with pkgs; [ jq thanos ];
|
||||||
services.thanos.store = {
|
services.thanos.store = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
{ stdenv, lib, go, buildGoPackage, fetchFromGitHub, mkYarnPackage, nixosTests }:
|
{ stdenv, lib, go, buildGoPackage, fetchFromGitHub, mkYarnPackage, nixosTests
|
||||||
|
, fetchpatch
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.22.2";
|
version = "2.23.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
owner = "prometheus";
|
owner = "prometheus";
|
||||||
repo = "prometheus";
|
repo = "prometheus";
|
||||||
sha256 = "04pf3shdfd25wf8snkan5hzv1gjzazjw06i11xaamnc8gfahnzdv";
|
sha256 = "sha256-UQ1r8271EiZDU/h2zta6toMRfk2GjXol8GexYL9n+BE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
webui = mkYarnPackage {
|
webui = mkYarnPackage {
|
||||||
@ -29,15 +31,23 @@ in buildGoPackage rec {
|
|||||||
|
|
||||||
goPackagePath = "github.com/prometheus/prometheus";
|
goPackagePath = "github.com/prometheus/prometheus";
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix https://github.com/prometheus/prometheus/issues/8144
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/prometheus/prometheus/commit/8b64b70fe4a5aa2877c95aa12c6798b12d3ff7ec.patch";
|
||||||
|
sha256 = "sha256-RuXT5pBXv8z6WoE59KNGh+OXr1KGLGWs/n0Hjf4BuH8=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
ln -s ${webui.node_modules} web/ui/react-app/node_modules
|
ln -s ${webui.node_modules} web/ui/react-app/node_modules
|
||||||
ln -s ${webui} web/ui/static/react
|
ln -s ${webui} web/ui/static/react
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
buildFlags = "-tags=builtinassets";
|
||||||
buildFlagsArray = let
|
buildFlagsArray = let
|
||||||
t = "${goPackagePath}/vendor/github.com/prometheus/common/version";
|
t = "${goPackagePath}/vendor/github.com/prometheus/common/version";
|
||||||
in [
|
in [
|
||||||
"-tags=builtinassets"
|
|
||||||
''
|
''
|
||||||
-ldflags=
|
-ldflags=
|
||||||
-X ${t}.Version=${version}
|
-X ${t}.Version=${version}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user