Skip to content
Snippets Groups Projects
user avatar
Tom Wilkie authored
* Add a scrape config for pods without name or app labels.

Signed-off-by: default avatarTom Wilkie <tom.wilkie@gmail.com>

* rebase with master and update to prefer name label but fallback to controller name

* Update scrape_config to use pod controller_name in the job

If a pod has a "name" label we use that in the job name. Otherwise,
- If the pod was created directly by a controller (statefulset,
  daemonset, job) then we use that controller_name.
- if the pod was created by controller created by a controller
  (deployment, cronJob) then we use the parent controller name.

- add a scrape_config.sh tool that generates the scrap_configs
  for promtail.sh and helm chart from the ksonnet lib.

* Reduce duplication in jsonnet.

Signed-off-by: default avatarTom Wilkie <tom.wilkie@gmail.com>

* Fix rebase

Signed-off-by: default avatarTom Wilkie <tom.wilkie@gmail.com>

* Tidy up promtail config imports.

Signed-off-by: default avatarTom Wilkie <tom.wilkie@gmail.com>
55bad57e
History
Name Last commit Last update
..