1. 21 Jan, 2019 1 commit
  2. 17 Jan, 2019 1 commit
  3. 04 Jan, 2019 1 commit
  4. 29 Oct, 2018 2 commits
  5. 27 Aug, 2018 1 commit
  6. 16 Aug, 2018 1 commit
  7. 25 Jul, 2018 1 commit
  8. 04 Jun, 2018 1 commit
  9. 25 Apr, 2018 1 commit
  10. 05 Apr, 2018 1 commit
    • Philippe Laflamme's avatar
      Use common HTTPClientConfig for marathon_sd configuration (#4009) · 2aba238f
      Philippe Laflamme authored
      This adds support for basic authentication which closes #3090
      
      The support for specifying the client timeout was removed as discussed in https://github.com/prometheus/common/pull/123. Marathon was the only sd mechanism doing this and configuring the timeout is done through `Context`.
      
      DC/OS uses a custom `Authorization` header for authenticating. This adds 2 new configuration properties to reflect this.
      
      Existing configuration files that use the bearer token will no longer work. More work is required to make this backwards compatible.
      2aba238f
  11. 04 Apr, 2018 1 commit
  12. 26 Feb, 2018 1 commit
  13. 16 Feb, 2018 1 commit
  14. 29 Jan, 2018 1 commit
  15. 19 Jan, 2018 1 commit
  16. 11 Jan, 2018 1 commit
  17. 29 Dec, 2017 1 commit
    • Shubheksha Jalan's avatar
      Refactor SD configuration to remove `config` dependency (#3629) · ec94df49
      Shubheksha Jalan authored
      * refactor: move targetGroup struct and CheckOverflow() to their own package
      
      * refactor: move auth and security related structs to a utility package, fix import error in utility package
      
      * refactor: Azure SD, remove SD struct from config
      
      * refactor: DNS SD, remove SD struct from config into dns package
      
      * refactor: ec2 SD, move SD struct from config into the ec2 package
      
      * refactor: file SD, move SD struct from config to file discovery package
      
      * refactor: gce, move SD struct from config to gce discovery package
      
      * refactor: move HTTPClientConfig and URL into util/config, fix import error in httputil
      
      * refactor: consul, move SD struct from config into consul discovery package
      
      * refactor: marathon, move SD struct from config into marathon discovery package
      
      * refactor: triton, move SD struct from config to triton discovery package, fix test
      
      * refactor: zookeeper, move SD structs from config to zookeeper discovery package
      
      * refactor: openstack, remove SD struct from config, move into openstack discovery package
      
      * refactor: kubernetes, move SD struct from config into kubernetes discovery package
      
      * refactor: notifier, use targetgroup package instead of config
      
      * refactor: tests for file, marathon, triton SD - use targetgroup package instead of config.TargetGroup
      
      * refactor: retrieval, use targetgroup package instead of config.TargetGroup
      
      * refactor: storage, use config util package
      
      * refactor: discovery manager, use targetgroup package instead of config.TargetGroup
      
      * refactor: use HTTPClient and TLS config from configUtil instead of config
      
      * refactor: tests, use targetgroup package instead of config.TargetGroup
      
      * refactor: fix tagetgroup.Group pointers that were removed by mistake
      
      * refactor: openstack, kubernetes: drop prefixes
      
      * refactor: remove import aliases forced due to vscode bug
      
      * refactor: move main SD struct out of config into discovery/config
      
      * refactor: rename configUtil to config_util
      
      * refactor: rename yamlUtil to yaml_config
      
      * refactor: kubernetes, remove prefixes
      
      * refactor: move the TargetGroup package to discovery/
      
      * refactor: fix order of imports
      ec94df49
  18. 17 Dec, 2017 1 commit
  19. 08 Dec, 2017 2 commits
  20. 19 Nov, 2017 2 commits
  21. 17 Nov, 2017 3 commits
  22. 16 Nov, 2017 2 commits
    • David Kaltschmidt's avatar
      Review feedback · af75ce02
      David Kaltschmidt authored
      * renamed MakeQueryStats
      * added stats to query() as well
      * gofmt
      af75ce02
    • David Kaltschmidt's avatar
      Adds execution timer stats to the range query · c93e54d2
      David Kaltschmidt authored
      API consumers should be able to get insight into the query run times.
      The UI currently measures total roundtrip times. This PR allows for more
      fine grained metrics to be exposed.
      
      * adds new timer for total execution time (queue + eval)
      
      * expose new timer, queue timer, and eval timer in stats field of the
       range query response:
      ```json
      {
        "status": "success",
        "data": {
          "resultType": "matrix",
          "result": [],
          "stats": {
            "execQueueTimeNs": 4683,
            "execTotalTimeNs": 2086587,
            "totalEvalTimeNs": 2077851
          }
        }
      }
      ```
      
      * stats field is optional, only set when query parameter `stats` is not
      empty
      
      Try it via
      ```sh
      curl 'http://localhost:9090/api/v1/query_range?query=up&start=1486480279&end=1486483879&step=14000&stats=true'
      ```
      
      Review feedback
      
      * moved query stats json generation to query_stats.go
      * use seconds for all query timers
      * expose all timers available
      * Changed ExecTotalTime string representation from Exec queue total time to Exec total time
      c93e54d2
  23. 26 Oct, 2017 2 commits
  24. 23 Oct, 2017 1 commit
  25. 18 Oct, 2017 2 commits
  26. 12 Oct, 2017 1 commit
  27. 06 Oct, 2017 1 commit
  28. 05 Oct, 2017 2 commits
  29. 26 Sep, 2017 1 commit
  30. 11 Sep, 2017 1 commit
  31. 08 Sep, 2017 1 commit