- Removing vector tracker
This commit is contained in:
parent
a1633ede5e
commit
51e474a95f
@ -1,13 +0,0 @@
|
|||||||
[sources.host_metrics]
|
|
||||||
type = "host_metrics"
|
|
||||||
collectors = [ "cpu", "disk", "host", "memory", "network" ]
|
|
||||||
namespace = "leftcoastlab-host"
|
|
||||||
scrape_interval_secs = 60
|
|
||||||
|
|
||||||
[sinks.host_metrics_output]
|
|
||||||
type = "console"
|
|
||||||
inputs = [ "host_metrics" ]
|
|
||||||
target = "stdout"
|
|
||||||
|
|
||||||
encoding.codec = "json"
|
|
||||||
|
|
@ -6,28 +6,26 @@
|
|||||||
include_vars:
|
include_vars:
|
||||||
dir: ../vars
|
dir: ../vars
|
||||||
|
|
||||||
- name: Ensure /opt/vector/ exists
|
- name: Delete /opt/vector/
|
||||||
file:
|
file:
|
||||||
path: /opt/vector
|
path: /opt/vector
|
||||||
state: directory
|
state: absent
|
||||||
|
|
||||||
- name: Copy over Vector config
|
- name: Stop Vector Container
|
||||||
copy:
|
|
||||||
src: ../files/vector.toml
|
|
||||||
dest: /opt/vector/vector.toml
|
|
||||||
|
|
||||||
- name: Start up Vector Container
|
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
name: vector-host-metrics
|
name: vector-host-metrics
|
||||||
image: timberio/vector:latest-alpine
|
state: absent
|
||||||
pull: yes
|
|
||||||
restart_policy: always
|
- name: Stop Vector Container
|
||||||
recreate: yes
|
community.docker.docker_container:
|
||||||
volumes:
|
name: vector-host-metrics
|
||||||
- "/opt/vector/vector.toml:/etc/vector/vector.toml"
|
state: absent
|
||||||
log_driver: loki
|
|
||||||
log_options:
|
- name: Delete Vector Image
|
||||||
loki-url: "http://localhost:{{LOKI_PORT}}/loki/api/v1/push"
|
community.docker.docker_image:
|
||||||
|
name: timberio/vector:latest-alpine
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user