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

Render loki datasources even if Grafana is disabled. #2197

Merged
merged 2 commits into from
Jun 22, 2020

Conversation

cyriltovena
Copy link
Contributor

I didn't realize but this was a perfect ok use case to generate datasource when using a different grafana deployment.

Fixes #2186
Fixes #2195

Now regarding #2086 it seems pretty easy to use .Values.grafana.sidecar.datasources.enabled if you don't want any datasources.

Signed-off-by: Cyril Tovena cyril.tovena@gmail.com

I didn't realize but this was a perfect ok use case to generate datasource when using a different grafana deployment.

Fixes grafana#2186
Fixes grafana#2195

Now regarding grafana#2086 it seems pretty easy to use `.Values.grafana.sidecar.datasources.enabled` if you don't want any datasources.

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #2197 into master will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2197      +/-   ##
==========================================
+ Coverage   61.97%   62.06%   +0.08%     
==========================================
  Files         154      154              
  Lines       12432    12432              
==========================================
+ Hits         7705     7716      +11     
+ Misses       4119     4105      -14     
- Partials      608      611       +3     
Impacted Files Coverage Δ
pkg/querier/queryrange/downstreamer.go 95.87% <0.00%> (-2.07%) ⬇️
pkg/logql/evaluator.go 92.30% <0.00%> (-0.42%) ⬇️
pkg/promtail/positions/positions.go 60.71% <0.00%> (+13.39%) ⬆️

Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

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

Nice, although I don't think this should be called sidecar -- it's just a configmap.

@cyriltovena cyriltovena merged commit 54a9e67 into grafana:master Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants