This project is mirrored from https://github.com/prometheus/prometheus.git. Updated .
  1. 15 Sep, 2020 1 commit
  2. 14 Sep, 2020 1 commit
  3. 31 Jul, 2020 1 commit
  4. 04 Jun, 2020 1 commit
  5. 25 Feb, 2020 1 commit
  6. 28 Jan, 2020 1 commit
    • Don't sort postings if we only have one block. · 38d32e06
      Sorting the heads postings can be quite slow.
      We only need sorted series when merging with another
      querier, so only sort then.
      This will make big queries that only touch the head faster,
      though queries that touch both the head and a block will still
      be the same speed. This probably won't help much with graphing
      unless the range is under an hour, however it should make most
      recording rules faster.
      
      Add gaurantee that remote read streaming produces sorted series.
      
      PromQL benchmarks for histograms show only 2-3% improvement, but
      they're only over 1k series.
      
      benchmark                                                old ns/op      new ns/op      delta
      BenchmarkQuerierSelect/Head/1of1000000-4                 1375486282     507657736      -63.09%
      BenchmarkQuerierSelect/Head/10of1000000-4                1387859004     507769850      -63.41%
      BenchmarkQuerierSelect/Head/100of1000000-4               1387087935     506029110      -63.52%
      BenchmarkQuerierSelect/Head/1000of1000000-4              1386869064     504521986      -63.62%
      BenchmarkQuerierSelect/Head/10000of1000000-4             1386213685     505210422      -63.55%
      BenchmarkQuerierSelect/Head/100000of1000000-4            1392754988     529842406      -61.96%
      BenchmarkQuerierSelect/Head/1000000of1000000-4           1569414722     725059506      -53.80%
      BenchmarkQuerierSelect/SortedHead/1of1000000-4           1381019902     1370495863     -0.76%
      BenchmarkQuerierSelect/SortedHead/10of1000000-4          1375696209     1366789468     -0.65%
      BenchmarkQuerierSelect/SortedHead/100of1000000-4         1386009422     1364519297     -1.55%
      BenchmarkQuerierSelect/SortedHead/1000of1000000-4        1377700532     1364486191     -0.96%
      BenchmarkQuerierSelect/SortedHead/10000of1000000-4       1383539536     1369545314     -1.01%
      BenchmarkQuerierSelect/SortedHead/100000of1000000-4      1410089163     1394731339     -1.09%
      BenchmarkQuerierSelect/SortedHead/1000000of1000000-4     1634744148     1581554956     -3.25%
      BenchmarkQuerierSelect/Block/1of1000000-4                881741242      879839470      -0.22%
      BenchmarkQuerierSelect/Block/10of1000000-4               880381562      882846038      +0.28%
      BenchmarkQuerierSelect/Block/100of1000000-4              887519357      881016916      -0.73%
      BenchmarkQuerierSelect/Block/1000of1000000-4             902194205      883433524      -2.08%
      BenchmarkQuerierSelect/Block/10000of1000000-4            892321964      885130170      -0.81%
      BenchmarkQuerierSelect/Block/100000of1000000-4           938604466      933527150      -0.54%
      BenchmarkQuerierSelect/Block/1000000of1000000-4          1313510845     1295881124     -1.34%
      
      benchmark                                                old allocs     new allocs     delta
      BenchmarkQuerierSelect/Head/1of1000000-4                 4000056        4000018        -0.00%
      BenchmarkQuerierSelect/Head/10of1000000-4                4000074        4000036        -0.00%
      BenchmarkQuerierSelect/Head/100of1000000-4               4000254        4000216        -0.00%
      BenchmarkQuerierSelect/Head/1000of1000000-4              4002054        4002016        -0.00%
      BenchmarkQuerierSelect/Head/10000of1000000-4             4020054        4020016        -0.00%
      BenchmarkQuerierSelect/Head/100000of1000000-4            4200054        4200016        -0.00%
      BenchmarkQuerierSelect/Head/1000000of1000000-4           6000054        6000016        -0.00%
      BenchmarkQuerierSelect/SortedHead/1of1000000-4           4000071        4000071        +0.00%
      BenchmarkQuerierSelect/SortedHead/10of1000000-4          4000089        4000089        +0.00%
      BenchmarkQuerierSelect/SortedHead/100of1000000-4         4000269        4000269        +0.00%
      BenchmarkQuerierSelect/SortedHead/1000of1000000-4        4002069        4002069        +0.00%
      BenchmarkQuerierSelect/SortedHead/10000of1000000-4       4020069        4020069        +0.00%
      BenchmarkQuerierSelect/SortedHead/100000of1000000-4      4200069        4200069        +0.00%
      BenchmarkQuerierSelect/SortedHead/1000000of1000000-4     6000069        6000069        +0.00%
      BenchmarkQuerierSelect/Block/1of1000000-4                6000023        6000022        -0.00%
      BenchmarkQuerierSelect/Block/10of1000000-4               6000059        6000058        -0.00%
      BenchmarkQuerierSelect/Block/100of1000000-4              6000419        6000418        -0.00%
      BenchmarkQuerierSelect/Block/1000of1000000-4             6004019        6004018        -0.00%
      BenchmarkQuerierSelect/Block/10000of1000000-4            6040019        6040018        -0.00%
      BenchmarkQuerierSelect/Block/100000of1000000-4           6400019        6400018        -0.00%
      BenchmarkQuerierSelect/Block/1000000of1000000-4          10000020       10000019       -0.00%
      
      benchmark                                                old bytes     new bytes     delta
      BenchmarkQuerierSelect/Head/1of1000000-4                 229192200     176001176     -23.21%
      BenchmarkQuerierSelect/Head/10of1000000-4                229193352     176002328     -23.21%
      BenchmarkQuerierSelect/Head/100of1000000-4               229204872     176013848     -23.21%
      BenchmarkQuerierSelect/Head/1000of1000000-4              229320072     176129048     -23.20%
      BenchmarkQuerierSelect/Head/10000of1000000-4             230472072     177281048     -23.08%
      BenchmarkQuerierSelect/Head/100000of1000000-4            241992072     188801048     -21.98%
      BenchmarkQuerierSelect/Head/1000000of1000000-4           357192072     304001048     -14.89%
      BenchmarkQuerierSelect/SortedHead/1of1000000-4           229193928     229193928     +0.00%
      BenchmarkQuerierSelect/SortedHead/10of1000000-4          229195080     229195080     +0.00%
      BenchmarkQuerierSelect/SortedHead/100of1000000-4         229206600     229206600     +0.00%
      BenchmarkQuerierSelect/SortedHead/1000of1000000-4        229321800     229321800     +0.00%
      BenchmarkQuerierSelect/SortedHead/10000of1000000-4       230473800     230473800     +0.00%
      BenchmarkQuerierSelect/SortedHead/100000of1000000-4      241993800     241993800     +0.00%
      BenchmarkQuerierSelect/SortedHead/1000000of1000000-4     357193800     357193800     +0.00%
      BenchmarkQuerierSelect/Block/1of1000000-4                227201516     227201500     -0.00%
      BenchmarkQuerierSelect/Block/10of1000000-4               227202924     227202908     -0.00%
      BenchmarkQuerierSelect/Block/100of1000000-4              227217036     227217020     -0.00%
      BenchmarkQuerierSelect/Block/1000of1000000-4             227358156     227358140     -0.00%
      BenchmarkQuerierSelect/Block/10000of1000000-4            228769356     228769340     -0.00%
      BenchmarkQuerierSelect/Block/100000of1000000-4           242881356     242881340     -0.00%
      BenchmarkQuerierSelect/Block/1000000of1000000-4          384001616     384001600     -0.00%
      Signed-off-by: 's avatarBrian Brazil <brian.brazil@robustperception.io>
      Brian Brazil authored
  7. 05 Dec, 2019 1 commit
  8. 19 Aug, 2019 1 commit
  9. 14 Aug, 2019 1 commit
  10. 04 Apr, 2019 1 commit
  11. 15 Jan, 2019 2 commits
  12. 05 Oct, 2018 1 commit
    • proto: Allow reproducible proto generation. · c3434a39
      Current way of setting prometheus project to generate repo is tedious.
      If you just go install packages described in README.md
      it ends up with those (non buildable code)
      ```
      ../../../prompb/remote.pb.go:61:34: undefined: "github.com/prometheus/prometheus/vendor/github.com/gogo/protobuf/proto".InternalMessageInfo
      ../../../prompb/remote.pb.go:109:33: undefined: "github.com/prometheus/prometheus/vendor/github.com/gogo/protobuf/proto".InternalMessageInfo
      ../../../prompb/remote.pb.go:164:34: undefined: "github.com/prometheus/prometheus/vendor/github.com/gogo/protobuf/proto".InternalMessageInfo
      ../../../prompb/remote.pb.go:214:27: undefined: "github.com/prometheus/prometheus/vendor/github.com/gogo/protobuf/proto".InternalMessageInfo
      ../../../prompb/remote.pb.go:284:33: undefined: "github.com/prometheus/prometheus/vendor/github.com/gogo/protobuf/proto".InternalMessageInfo
      ```
      The issue is that the guide presented in proto folder is asking to
      install some GO packages. It does not mention from what version and
      there is strong mismatch between those used to generate proto and those
      that are vendored and used to run the code later...
      The particular outdated packages in vendor are:
      `github.com/gogo/protobuf` and `google.golang.org/grpc`.
      
      Just updating vendor would be not enough, as it would only tmp fix.
      I propose adding script that will parse version from vendor.json and install correct version.
      
      Changes:
      - Added script that uses packages in *exactly* the same version the Go code is build against later.
      - Regenerated proto with those pinned deps.
      - Updated REAMDE.md
      - Added `make proto`Current way of setting prometheus project to generate code from proto files is tedious.
      If you just go install packages described in README.md, it ends up with this (non buildable code)
      ```
      ../../../prompb/remote.pb.go:61:34: undefined: "github.com/prometheus/prometheus/vendor/github.com/gogo/protobuf/proto".InternalMessageInfo
      ../../../prompb/remote.pb.go:109:33: undefined: "github.com/prometheus/prometheus/vendor/github.com/gogo/protobuf/proto".InternalMessageInfo
      ../../../prompb/remote.pb.go:164:34: undefined: "github.com/prometheus/prometheus/vendor/github.com/gogo/protobuf/proto".InternalMessageInfo
      ../../../prompb/remote.pb.go:214:27: undefined: "github.com/prometheus/prometheus/vendor/github.com/gogo/protobuf/proto".InternalMessageInfo
      ../../../prompb/remote.pb.go:284:33: undefined: "github.com/prometheus/prometheus/vendor/github.com/gogo/protobuf/proto".InternalMessageInfo
      ```
      The issue is that the guide presented in proto folder is asking to install some GO packages. It does not mention from what version and there is strong mismatch between those used to generate proto and those that are vendored and used to run the code later...
      The particular outdated packages in vendor are:
      `github.com/gogo/protobuf` and `google.golang.org/grpc`.
      
      Just updating vendor would be not enough, as it would only tmp fix.
      I propose adding script that will parse version from vendor.json and install correct version.
      
      Changes:
      - Added script that uses packages in *exactly* the same version the Go code is build against later.
      - Regenerated proto with those pinned deps.
      - Updated REAMDE.md
      - Added `make proto`
      Signed-off-by: 's avatarBartek Plotka <bwplotka@gmail.com>
      Bartek Plotka authored
  13. 25 Sep, 2018 1 commit
  14. 18 Jul, 2018 1 commit
    • Add offset to selectParams (#4226) · 92c6f0c9
      * Add Start/End to SelectParams
      * Make remote read use the new selectParams for start/end
      
      This commit will continue sending the start/end time of the remote read
      query as the overarching promql time and the specific range of data that
      the query is intersted in receiving a response to is now part of the
      ReadHints (upstream discussion in #4226).
      
      * Remove unused vendored code
      
      The genproto.sh script was updated, but the code wasn't regenerated.
      This simply removes the vendored deps that are no longer part of the
      codegen output.
      Signed-off-by: 's avatarThomas Jackson <jacksontj.89@gmail.com>
      Thomas Jackson authored
  15. 11 Jun, 2018 1 commit
  16. 08 May, 2018 1 commit
  17. 08 Mar, 2018 1 commit
  18. 01 Mar, 2018 1 commit
  19. 17 Jan, 2018 1 commit
  20. 30 Nov, 2017 1 commit
  21. 02 Nov, 2017 1 commit
  22. 01 Aug, 2017 1 commit
  23. 12 Jul, 2017 1 commit
  24. 11 Jul, 2017 1 commit
  25. 10 Jul, 2017 1 commit