-
Notifications
You must be signed in to change notification settings - Fork 435
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
[Nginx] Add SLO's with Nginx Package #10269
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
fc23f39
add slos to nginx integration
muthu-mps 68f1f18
skipping validation errors
muthu-mps ac5e390
replace package-spec version
muthu-mps 30161fe
fix CI error
muthu-mps 029e7e5
revert blob store error
muthu-mps d84e352
Update packages/nginx/changelog.yml
muthu-mps 031df18
Add SLO section in the README
muthu-mps 0603c97
Merge branch 'add_slo' of github.com:muthu-mps/integrations into add_slo
muthu-mps 9c32379
address review comments
muthu-mps 2f311c8
update dataview
muthu-mps 4ecfa70
resolve conflicts
muthu-mps d1ba630
filter nginx log data
muthu-mps 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
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
28 changes: 28 additions & 0 deletions
28
packages/nginx/kibana/slo/nginx-9eb25600-a1f0-11e7-928f-5dbe6f6f5510.json
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,28 @@ | ||
{ | ||
"attributes": { | ||
"name": "Nginx Availability", | ||
"description": "", | ||
"indicator": { | ||
"type": "sli.kql.custom", | ||
"params": { | ||
"index": "logs-*", | ||
"filter": "data_stream.dataset :\"nginx.access\" ", | ||
"good": "http.response.status_code < 500", | ||
"total": "http.response.status_code : *", | ||
"timestampField": "@timestamp" | ||
} | ||
}, | ||
"budgetingMethod": "occurrences", | ||
"timeWindow": { | ||
"duration": "7d", | ||
"type": "rolling" | ||
}, | ||
"objective": { | ||
"target": 0.99 | ||
}, | ||
"tags": [] | ||
}, | ||
"id": "nginx-9eb25600-a1f0-11e7-928f-5dbe6f6f5510", | ||
"references": [], | ||
"type": "slo" | ||
} |
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,4 @@ | ||
errors: | ||
exclude_checks: | ||
- PSR00001 # References in dashboards. | ||
- JSE00001 # Kibana version for saved tags. |
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.
@jsoriano - I have updated the version to 3.3.0 to test the behaviour and I am getting this error.
Error: building package failed: invalid content found in built zip package: could not load specification for version [3.3.0]: spec version "3.3.0" not found
Can you suggest on how to test this change with the pre-release version?
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.
No released version of package spec contains this spec version, you will need to add a replace in the meantime, something like 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.
What is the
format_version
that we could use for testing the package?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.
format_version: 3.3.0
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.
@jsoriano - Tried the above step and with the
format_version:3.3.0
we are still getting the same error.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.
Looks good, yes, this should be enough for CI.
If you want to use elastic-package locally with this dependency you can run it as
go run github.com/elastic/elastic-package
from the integrations repository.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.
Thanks @jsoriano!
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.
Yeah, after updating go.mod all tests are executed, but you can ignore the ones not related to your package.
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.
@jsoriano When is the next release of the package spec?
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.
We release more or less on demand, and we have just released 3.2.1. Maybe we can release 3.2.2 soon with a couple of bugfixes. This release would also include 3.3.0 prerelease, what will allow to use SLOs in prerelease packages.