Closed karlskewes closed 3 years ago
Per: https://github.com/spinnaker/clouddriver/pull/5315
$ grep -nr 'executionCount' spinnaker-minimalist.jsonnet:203: 'sum(rate(executionCount_total[$__rate_interval])) by (instance)', clouddriver.jsonnet:218: 'sum(rate(executionCount_total{job=~"$job", instance=~"$Instance"}[$__rate_interval])) by (instance)',
$ grep -nr 'executionTime' spinnaker-minimalist.jsonnet:217: 'sum(rate(executionTime_seconds_sum[$__rate_interval])) by (instance) / sum(rate(executionTime_seconds_count[$__rate_interval])) by (instance)', clouddriver.jsonnet:245: 'sum(rate(executionTime_seconds_sum{job=~"$job",instance=~"$Instance"}[$__rate_interval])) by (instance)\n/\nsum(rate(executionTime_seconds_count{job=~"$job",instance=~"$Instance"}[$__rate_interval])) by (instance)', clouddriver.jsonnet:271: 'sum by (provider, account) (\n# provider\nlabel_replace(\n# account\nlabel_replace(\n# query\n(sum(rate(executionTime_seconds_count{job=~"$job", agent=~".*$Platform.*",instance=~"$Instance"}[$__rate_interval])) by (agent)\n),\n"account", "$1", "agent", "^[A-Za-z]+/([A-Za-z0-9-]+).*"\n), \n"provider", "$1", "agent", "^([A-Za-z]+).*"\n)\n)', clouddriver.jsonnet:305: 'sum by (provider, account) (\n# provider\nlabel_replace(\n# account\nlabel_replace(\n# query\n(sum(rate(executionTime_seconds_sum{job=~"$job", agent=~".*$Platform.*",instance=~"$Instance"}[$__rate_interval])) by (agent)\n),\n"account", "$1", "agent", "^[A-Za-z]+/([A-Za-z0-9-]+).*"\n), \n"provider", "$1", "agent", "^([A-Za-z]+).*"\n)\n)\n\n/\n\nsum by (provider, account) (\n# provider\nlabel_replace(\n# account\nlabel_replace(\n# query\n(sum(rate(executionTime_seconds_count{job=~"$job", agent=~".*$Platform.*",instance=~"$Instance"}[$__rate_interval])) by (agent)\n),\n"account", "$1", "agent", "^[A-Za-z]+/([A-Za-z0-9-]+).*"\n), \n"provider", "$1", "agent", "^([A-Za-z]+).*"\n)\n)', clouddriver.jsonnet:311: 'label_replace(\nsum(rate(executionTime_seconds_sum{agent=~".*$Platform.*",instance=~"$Instance"}[$__rate_interval])) by (agent)\n/\nsum(rate(executionTime_seconds_count{agent=~".*$Platform.*",instance=~"$Instance"}[$__rate_interval])) by (agent), "itemType", "$1", "agent", "(?:.*(?:Amazon|Appengine|Google|Kubernetes|Dcos|/)([^/]*)CachingAgent.*)")',
Per: https://github.com/spinnaker/clouddriver/pull/5315