Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flexibility to configure grafana #615

Closed
wants to merge 1 commit into from
Closed

Conversation

possani
Copy link

@possani possani commented Jun 26, 2020

Context

I am experimenting with Openwhisk and Openstack and currently using kubectl proxy to access the dashboard. However, for that to work, I have two options:

  1. Change de variable on the fly:
    kubectl -n openwhisk set env deployment/owdev-grafana GF_SERVER_ROOT_URL=http://localhost:8001/api/v1/namespaces/openwhisk/services/http:owdev-grafana:http/proxy/

  2. Replace the value in the manifest before installing the chart.

What would you expect?

To be able not only to set GF_SERVER_ROOT_URL but any other environment variable in the configuration file.

helm install owdev openwhisk/helm/openwhisk -n openwhisk --create-namespace -f mycluster.yaml

@possani
Copy link
Author

possani commented Jul 5, 2020

Hi @dgrove-oss, who could take a look at my PR? The idea would be to move the environment variables from the deployment template to the values file to give it more flexibility.

Copy link
Member

@dgrove-oss dgrove-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks plausible to me, but I don't use grafana at all myself. @selfxp -- any thoughts?

@@ -335,6 +335,10 @@ grafana:
- https://raw.githubusercontent.com/apache/openwhisk/master/core/monitoring/user-events/compose/grafana/dashboards/openwhisk_events.json
- https://raw.githubusercontent.com/apache/openwhisk/master/core/monitoring/user-events/compose/grafana/dashboards/global-metrics.json
- https://raw.githubusercontent.com/apache/openwhisk/master/core/monitoring/user-events/compose/grafana/dashboards/top-namespaces.json
# https://grafana.com/docs/grafana/latest/administration/configuration/#configure-with-environment-variables
env:
- name: "TEST"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think now, it would be good to move the default env to this section in values.yaml.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually did that when I first created the MR. The only variable I had left was GF_SECURITY_ADMIN_PASSWORD because it already uses another field in the values.yaml file, but one of the tests failed. I'll push that commit again.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    org.scalatest.exceptions.TestFailedException: "2020-06-26T19:27:03.247708024Z stdout: params.param1: test1 2020-06-26T19:27:03.247795526Z stdout:  params.param2: test2" did not include substring "params.payload: this is a test"

@possani
Copy link
Author

possani commented May 31, 2024

This should've been closed a while ago.

@possani possani closed this May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants