-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Move Prometheus as an Add-On #4362
Merged
Merged
Changes from 39 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
913ca77
move prometheus templates as a add-on
Pothulapati 0d675af
remove prom flags and fix fiields
Pothulapati 751d236
prometheus charts linting
Pothulapati 04bbcae
use common fix
Pothulapati 6947cd0
add prometheus sub-chart dep to linkerd2
Pothulapati 48cc206
update golden files
Pothulapati 79e15b3
update install metaValues test
Pothulapati 3fe342e
Merge branch 'master' into tarun/prom-addon
Pothulapati be3d3ea
fix template correctly
Pothulapati ab854df
remove linkerd-prometheus healthchecks
Pothulapati d54ad31
add more fields for configuration
Pothulapati 92a72cb
add extra prometheus config tests
Pothulapati f8152de
fix prom example config
Pothulapati 2ee0ead
Merge branch 'master' into tarun/prom-addon
Pothulapati 4fb9c38
update golden files
Pothulapati d801768
remove grafana.enabled check in prometheus
Pothulapati bfd5b24
rename to prometheus test
Pothulapati ec245e1
full config with examples
Pothulapati e3d58c6
add args documentation in charts/README.md
Pothulapati e5dbbd4
fix name in docs
Pothulapati c8ba283
fix ruleConfigMapMounts
Pothulapati 72f9ade
Merge branch 'master' into tarun/prom-addon
Pothulapati 49be09b
update go tests golden files
Pothulapati 347354c
remove unfixed changes
Pothulapati 79f7a78
remove .Prometheus.name variable
Pothulapati 9643504
Merge branch 'master' into tarun/prom-addon
Pothulapati 95c3ae2
update golden files
Pothulapati 4921b86
move defaults out of prometheus.
Pothulapati 339f032
move controllerLogLevel to global
Pothulapati 7ed92da
Merge branch 'master' into tarun/prom-addon
Pothulapati 3be8cf3
update golden files
Pothulapati 2fd46b9
remove unnecessar functions related promLog
Pothulapati 1a0a212
use global.controllerLogLevel
Pothulapati 0484125
update golden files
Pothulapati 2edea90
move default values to add-ons/values.yaml
Pothulapati d318efe
nits around readme, requirements ordering and prom log default
Pothulapati d03b3b3
update golden files
Pothulapati f5fc848
move scrapeconfigs to templates
Pothulapati 946f7f8
add correct scrape config indentation
Pothulapati c4792cd
Merge branch 'main' into tarun/prom-addon
Pothulapati f663373
update prometheus add-on to include proxy resources along with tests
Pothulapati 725dc2e
add instructions in prometheus/values.yaml
Pothulapati 1952bbf
Merge branch 'main' into tarun/prom-addon
Pothulapati b6c3aa9
Merge branch 'main' into tarun/prom-addon
Pothulapati a1650ee
update golden files
Pothulapati 97ecefa
make prometheus urls optional and based on add-on
Pothulapati 2c65d13
Merge branch 'main' into tarun/prom-addon
Pothulapati 05057cd
update golden files
Pothulapati 5ad5cad
Merge branch 'main' into tarun/prom-addon
Pothulapati 81030d1
Merge branch 'main' into tarun/prom-addon
Pothulapati 2ab6472
updates golden files now that add-on level values
Pothulapati 3769341
update prom template to not have default value
Pothulapati 4232b61
Merge branch 'main' into tarun/prom-addon
Pothulapati af63998
update golden files
Pothulapati File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: v1 | ||
appVersion: "1.0" | ||
description: A Helm chart for the prometheus add-on in Linkerd | ||
name: prometheus | ||
version: 0.1.0 | ||
maintainers: | ||
- name: Linkerd authors | ||
email: cncf-linkerd-dev@lists.cncf.io | ||
url: https://linkerd.io/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dependencies: | ||
- name: partials | ||
version: 0.1.0 | ||
repository: file://../../partials |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
image: prom/prometheus:v2.15.2 | ||
args: | ||
storage.tsdb.path: /data | ||
storage.tsdb.retention.time: 6h | ||
config.file: /etc/prometheus/prometheus.yml | ||
log.level: info | ||
globalConfig: | ||
scrape_interval: 10s | ||
scrape_timeout: 10s | ||
evaluation_interval: 10s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the removal of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alpeb As
grafana
is a separate add-on, and those fields are only propagated into their sub-chart. We can't get this value in Prometheus add-on.I don't think prometheus would have any problem regarding the scrape-config even when there is no grafana, but I will test this out!
For other fields that would need to be accessed across multiple add-ons, we can use the
global
and have that inlinkerd-config-addons
!