Skip to content

Commit d03eca2

Browse files
authored
Merge branch 'main' into deploy-hybrid-fileshare-access
2 parents b75d8dd + 5e177dc commit d03eca2

File tree

6 files changed

+54
-26
lines changed

6 files changed

+54
-26
lines changed

.github/linters/.yaml-lint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
extends: default
3+
rules:
4+
line-length: disable
5+
trailing-spaces: disable
6+
truthy: disable
7+
braces:
8+
level: warning
9+
max-spaces-inside: 1
10+
brackets:
11+
level: warning
12+
max-spaces-inside: 1
13+
empty-lines: disable
14+
document-start: disable
15+
new-line-at-end-of-file: disable

Monitoring/monitor-ontap-services/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ Here is an itemized list of the services that this program can monitor:
2323
- If a volume is over a certain percentage full. User can set two thresholds (Warning and Critical).
2424
- If any quotas are over a certain percentage full. User can follow both soft and hard limits.
2525

26+
## Architecture
27+
The program is designed to be run as a Lambda function. It is triggered by an EventBridge rule that is set to run
28+
on a regular basis. The program will then use the ONTAP APIs to obtain the required information to determine if
29+
any of the conditions that are being monitored have been met. If they have, then the program will send an SNS message
30+
to the specified SNS topic. The program will also send a syslog message to a syslog server if the syslogIP parameter
31+
is set. The program will store the event information in an S3 bucket so that it can be compared against it before sending
32+
a second message for the same event. The configuration files is also kept in the S3 bucket for easy access.
33+
34+
![Architecture](images/Monitoring_ONTAP_Services_Architecture-2.png)
35+
2636
## Preparation
2737
There are a few things you need to do to properly deploy this script.
2838

@@ -279,4 +289,4 @@ You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http:/
279289

280290
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, without WARRANTIES or conditions of any kind, either express or implied.
281291

282-
See the License for the specific language governing permissions and limitations under the License.
292+
See the License for the specific language governing permissions and limitations under the License.
97.6 KB
Loading
Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
apiVersion: apps/v1
23
kind: Deployment
34
metadata:
@@ -20,26 +21,26 @@ spec:
2021
persistentVolumeClaim:
2122
claimName: rpc-app-pvc
2223
containers:
23-
- name: nginx
24-
image: public.ecr.aws/nginx/nginx:1.23
25-
env:
26-
- name: POD_NAME
27-
valueFrom:
28-
fieldRef:
29-
apiVersion: v1
30-
fieldPath: metadata.name
31-
- name: NODE_NAME
32-
valueFrom:
33-
fieldRef:
34-
apiVersion: v1
35-
fieldPath: spec.nodeName
36-
volumeMounts:
37-
- mountPath: "/log"
38-
subPathExpr: $(NODE_NAME)/$(POD_NAME)
39-
name: task-pv-storage
40-
ports:
41-
- name: http
42-
containerPort: 80
43-
imagePullPolicy: IfNotPresent
24+
- name: nginx
25+
image: public.ecr.aws/nginx/nginx:1.23
26+
env:
27+
- name: POD_NAME
28+
valueFrom:
29+
fieldRef:
30+
apiVersion: v1
31+
fieldPath: metadata.name
32+
- name: NODE_NAME
33+
valueFrom:
34+
fieldRef:
35+
apiVersion: v1
36+
fieldPath: spec.nodeName
37+
volumeMounts:
38+
- mountPath: "/log"
39+
subPathExpr: $(NODE_NAME)/$(POD_NAME)
40+
name: task-pv-storage
41+
ports:
42+
- name: http
43+
containerPort: 80
44+
imagePullPolicy: IfNotPresent
4445
nodeSelector:
45-
kubernetes.io/os: linux
46+
kubernetes.io/os: linux

Solutions/EKS-logs-to-ELK/examples/example-app/templates/shared-pvc.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
---
12
kind: PersistentVolumeClaim
23
apiVersion: v1
34
metadata:
45
annotations:
5-
trident.netapp.io/shareFromPVC: vector/shared-pv
6+
trident.netapp.io/shareFromPVC: vector/shared-pv
67
name: rpc-app-pvc
78
namespace: rpc
89
spec:

Solutions/EKS-logs-to-ELK/examples/logs-collectors/fluentbit/override-values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
---
12
fluentbit:
23
enable: true
34
input:
45
tail:
56
enable: true
67
path: "/logs/*/*.log"
78
output:
8-
stdout:
9-
enable: true
9+
stdout:
10+
enable: true
1011

1112
additionalVolumes:
1213
- name: shared-logs

0 commit comments

Comments
 (0)