Grafana: Update version

This updates the Grafana version deployed by default from 5.0.0 to
6.2.0

Change-Id: I39b5405cc3f3fe7754ed6544a8388ff912a4ef58
Signed-off-by: Steve Wilkerson <sw5822@att.com>
This commit is contained in:
Steve Wilkerson 2019-11-18 07:23:47 -06:00
parent d0b4803b3c
commit 1bfa091203
5 changed files with 18 additions and 14 deletions

View File

@ -19,7 +19,7 @@ set -ex
COMMAND="${@:-start}" COMMAND="${@:-start}"
function start () { function start () {
exec /usr/sbin/grafana-server -homepath=/usr/share/grafana -config=/etc/grafana/grafana.ini exec /usr/share/grafana/bin/grafana-server -homepath=/usr/share/grafana -config=/etc/grafana/grafana.ini
} }
function stop () { function stop () {

View File

@ -77,7 +77,7 @@ try:
browser.find_element_by_name('password').send_keys(password) browser.find_element_by_name('password').send_keys(password)
browser.find_element_by_css_selector( browser.find_element_by_css_selector(
'body > grafana-app > div.main-view > div > div:nth-child(1) > div > ' 'body > grafana-app > div.main-view > div > div:nth-child(1) > div > '
'div > div.login-inner-box > form > div.login-button-group > button' 'div > div.login-outer-box > div.login-inner-box > form > div.login-button-group > button'
).click() ).click()
logger.info("Successfully logged in to Grafana") logger.info("Successfully logged in to Grafana")
except NoSuchElementException: except NoSuchElementException:

View File

@ -88,6 +88,8 @@ spec:
mountPath: /tmp mountPath: /tmp
- name: pod-etc-grafana - name: pod-etc-grafana
mountPath: /etc/grafana mountPath: /etc/grafana
- name: pod-screenshots-grafana
mountPath: /var/lib/grafana/png
- name: pod-provisioning-grafana - name: pod-provisioning-grafana
mountPath: {{ .Values.conf.grafana.paths.provisioning }} mountPath: {{ .Values.conf.grafana.paths.provisioning }}
- name: grafana-bin - name: grafana-bin
@ -110,7 +112,7 @@ spec:
mountPath: /var/lib/grafana/data mountPath: /var/lib/grafana/data
{{- range $key, $value := .Values.conf.dashboards }} {{- range $key, $value := .Values.conf.dashboards }}
- name: grafana-etc - name: grafana-etc
mountPath: /var/lib/grafana/dashboards/{{$key}}.json mountPath: /etc/grafana/dashboards/{{$key}}.json
subPath: {{$key}}.json subPath: {{$key}}.json
{{- end }} {{- end }}
{{ if $mounts_grafana.volumeMounts }}{{ toYaml $mounts_grafana.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_grafana.volumeMounts }}{{ toYaml $mounts_grafana.volumeMounts | indent 12 }}{{ end }}
@ -119,6 +121,8 @@ spec:
emptyDir: {} emptyDir: {}
- name: pod-etc-grafana - name: pod-etc-grafana
emptyDir: {} emptyDir: {}
- name: pod-screenshots-grafana
emptyDir: {}
- name: pod-provisioning-grafana - name: pod-provisioning-grafana
emptyDir: {} emptyDir: {}
- name: grafana-bin - name: grafana-bin

View File

@ -18,7 +18,7 @@
images: images:
tags: tags:
grafana: docker.io/grafana/grafana:5.0.0 grafana: docker.io/grafana/grafana:6.2.0
dep_check: quay.io/airshipit/kubernetes-entrypoint:v1.0.0 dep_check: quay.io/airshipit/kubernetes-entrypoint:v1.0.0
db_init: docker.io/openstackhelm/heat:newton-ubuntu_xenial db_init: docker.io/openstackhelm/heat:newton-ubuntu_xenial
grafana_db_session_sync: docker.io/openstackhelm/heat:newton-ubuntu_xenial grafana_db_session_sync: docker.io/openstackhelm/heat:newton-ubuntu_xenial
@ -428,7 +428,7 @@ conf:
disableDeletion: false disableDeletion: false
editable: false editable: false
options: options:
path: /var/lib/grafana/dashboards path: /etc/grafana/dashboards
datasources: datasources:
#NOTE(srwilkers): The top key for each datasource (eg: monitoring) must #NOTE(srwilkers): The top key for each datasource (eg: monitoring) must
# map to the key name for the datasource's endpoint entry in the endpoints # map to the key name for the datasource's endpoint entry in the endpoints
@ -450,7 +450,7 @@ conf:
paths: paths:
data: /var/lib/grafana/data data: /var/lib/grafana/data
plugins: /var/lib/grafana/plugins plugins: /var/lib/grafana/plugins
provisioning: /var/lib/grafana/provisioning provisioning: /etc/grafana/provisioning
server: server:
protocol: http protocol: http
http_port: 3000 http_port: 3000

View File

@ -45,7 +45,7 @@ try:
st.browser.find_element_by_name('password').send_keys(password) st.browser.find_element_by_name('password').send_keys(password)
st.browser.find_element_by_css_selector( st.browser.find_element_by_css_selector(
'body > grafana-app > div.main-view > div > div:nth-child(1) > div > ' 'body > grafana-app > div.main-view > div > div:nth-child(1) > div > '
'div > div.login-inner-box > form > div.login-button-group > button' 'div > div.login-outer-box > div.login-inner-box > form > div.login-button-group > button'
).click() ).click()
st.logger.info("Successfully logged in to Grafana") st.logger.info("Successfully logged in to Grafana")
except NoSuchElementException: except NoSuchElementException:
@ -59,9 +59,9 @@ try:
st.click_link_by_name('Nodes') st.click_link_by_name('Nodes')
el = WebDriverWait(st.browser, 15).until( el = WebDriverWait(st.browser, 15).until(
EC.presence_of_element_located( EC.presence_of_element_located(
(By.XPATH, '/html/body/grafana-app/div[2]/div/div[1]/div/div/' (By.XPATH, '/html/body/grafana-app/div/div/div/react-container/div'
'div[1]/dashboard-grid/div/div[1]/div/plugin-component/' '/div[2]/div/div[1]/div/div/div[1]/div/div/div/plugin-component'
'panel-plugin-graph/grafana-panel/div/div[2]') '/panel-plugin-graph/grafana-panel/div/div[2]')
) )
) )
st.take_screenshot('Grafana Nodes') st.take_screenshot('Grafana Nodes')
@ -76,9 +76,9 @@ try:
st.click_link_by_name('Kubernetes Cluster Status') st.click_link_by_name('Kubernetes Cluster Status')
el = WebDriverWait(st.browser, 15).until( el = WebDriverWait(st.browser, 15).until(
EC.presence_of_element_located( EC.presence_of_element_located(
(By.XPATH, '/html/body/grafana-app/div[2]/div/div[1]/div/' (By.XPATH, '/html/body/grafana-app/div/div/div/react-container/div'
'div/div[1]/dashboard-grid/div/div[5]/div/plugin-component/' '/div[2]/div/div[1]/div/div/div[5]/div/div/div/plugin-component'
'panel-plugin-singlestat/grafana-panel/div') '/panel-plugin-singlestat/grafana-panel/div')
) )
) )
st.take_screenshot('Grafana Cluster Status') st.take_screenshot('Grafana Cluster Status')