Skip to content

Commit

Permalink
update influxdb version
Browse files Browse the repository at this point in the history
  • Loading branch information
Shangxin Du committed Aug 6, 2021
1 parent afb7830 commit f5220ca
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export INFLUX_DATA="`pwd`/influxdb"
export CURRENT_UID=`id -u`
export CURRENT_GID=`id -g`
export TELEGRAF_IMAGE="telegraf:latest"
export INFLUXDB_IMAGE="influxdb:1.8.4"
export INFLUXDB_IMAGE="influxdb:1.7.11"
export CHRONOGRAF_IMAGE="chronograf:latest"

self=$0
Expand Down Expand Up @@ -142,7 +142,7 @@ EOF

function prepare_influxdb() {
if [ ! -d $INFLUX_DATA ]; then
log "influxdb database folder is not existed, creating one"
log "influxdb database folder does not exist, creating one"
mkdir $INFLUX_DATA
fi
#log "change permission of config and data folder of influxdb"
Expand Down
5 changes: 5 additions & 0 deletions etc/telegraf/gnmi_on_change.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ origin = "openconfig"
path = "/interfaces/interface/state/oper-status"
subscription_mode = "on_change"

[[inputs.cisco_telemetry_gnmi.subscription]]
path = "syslog"
origin = "syslog-oper"
subscription_mode = "on_change"

#[[inputs.cisco_telemetry_gnmi.subscription]]
#origin = "openconfig"
#path = "/network-instances/network-instance/vlans"
Expand Down
6 changes: 6 additions & 0 deletions etc/telegraf/telegraf.d/gnmi.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ path = "/components/component/power-supply/state"
subscription_mode = "sample"
sample_interval = "10s"

[[inputs.cisco_telemetry_gnmi.subscription]]
origin = "openconfig"
path = "/network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/afi-safis"
subscription_mode = "sample"
sample_interval = "30s"

### native yang ####
[[inputs.cisco_telemetry_gnmi.subscription]]
origin = "device"
Expand Down
2 changes: 1 addition & 1 deletion playbook/group_vars/nxos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ansible_connection: network_cli
ansible_network_os: nxos
ansible_user: admin
ansible_password: cisco123
ansible_password: cisco.123
8 changes: 4 additions & 4 deletions playbook/grpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
gather_facts: no
tasks:
- name: copy gnmi certificate to switch
nxos_file_copy:
cisco.nxos.nxos_file_copy:
file_pull: True
remote_file: "/opt/telemetry_collector/etc/telegraf/cert/gnmi.pfx"
local_file: "gnmi.pfx"
remote_scp_server: "10.195.225.176"
remote_scp_server_user: "cisco"
remote_scp_server_password: "cisco123"
remote_scp_server_user: "root"
remote_scp_server_password: "cisco.123"

- name: install new certificate and enable grpc
nxos_config:
cisco.nxos.nxos_config:
lines:
- crypto ca trustpoint gnmi
- crypto ca import gnmi pkcs12 gnmi.pfx cisco123
Expand Down

0 comments on commit f5220ca

Please sign in to comment.