UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Platform One
Big Bang
P
Packages
Security Tools
Twistlock
Commits
434c0b86
Commit
434c0b86
authored
Jul 06, 2020
by
Kavitha Thulasiraman
Browse files
twistlock monitoring
parent
3bf0c0a2
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
96 additions
and
0 deletions
+96
-0
app/console/kustomization.yaml
app/console/kustomization.yaml
+0
-0
app/console/twistlock_console.yaml
app/console/twistlock_console.yaml
+0
-0
app/monitoring/prometheus/README.md
app/monitoring/prometheus/README.md
+15
-0
app/monitoring/prometheus/kustomization.yaml
app/monitoring/prometheus/kustomization.yaml
+7
-0
app/monitoring/prometheus/role.yaml
app/monitoring/prometheus/role.yaml
+19
-0
app/monitoring/prometheus/roleBinding.yaml
app/monitoring/prometheus/roleBinding.yaml
+17
-0
app/monitoring/prometheus/twistlockSecret.yaml
app/monitoring/prometheus/twistlockSecret.yaml
+10
-0
app/monitoring/prometheus/twistlockServiceMonitor.yaml
app/monitoring/prometheus/twistlockServiceMonitor.yaml
+28
-0
No files found.
console/kustomization.yaml
→
app/
console/kustomization.yaml
View file @
434c0b86
File moved
console/twistlock_console.yaml
→
app/
console/twistlock_console.yaml
View file @
434c0b86
File moved
app/monitoring/prometheus/README.md
0 → 100644
View file @
434c0b86
Twistlock Prometheus Monitoring is implemented as per the documentation
https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-admin-compute/audit/prometheus.html
1.
Create ServiceMonitor for twistlock endpoint
2.
Create Role, RoleBinding for monitoring in twistlock namespace
3.
Create Secrets for metrics point authentication
4.
kubectl apply -k prometheus
app/monitoring/prometheus/kustomization.yaml
0 → 100644
View file @
434c0b86
namespace
:
vault
resources
:
-
twistlockServiceMonitor.yaml
-
role.yaml
-
roleBinding.yaml
-
twistlockSecret.yaml
\ No newline at end of file
app/monitoring/prometheus/role.yaml
0 → 100644
View file @
434c0b86
apiVersion
:
rbac.authorization.k8s.io/v1
items
:
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
Role
metadata
:
name
:
prometheus-k8s
namespace
:
twistlock
rules
:
-
apiGroups
:
-
"
"
resources
:
-
services
-
endpoints
-
pods
verbs
:
-
get
-
list
-
watch
kind
:
RoleList
app/monitoring/prometheus/roleBinding.yaml
0 → 100644
View file @
434c0b86
apiVersion
:
rbac.authorization.k8s.io/v1
items
:
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
metadata
:
name
:
prometheus-k8s
namespace
:
twistlock
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
Role
name
:
prometheus-k8s
subjects
:
-
kind
:
ServiceAccount
name
:
prometheus-k8s
namespace
:
monitoring
kind
:
RoleBindingList
app/monitoring/prometheus/twistlockSecret.yaml
0 → 100644
View file @
434c0b86
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
twistlock-basic-auth
namespace
:
monitoring
data
:
password
:
UGFzc3cwcmQh
user
:
QWRtaW5pc3RyYXRvcg==
type
:
Opaque
app/monitoring/prometheus/twistlockServiceMonitor.yaml
0 → 100644
View file @
434c0b86
apiVersion
:
monitoring.coreos.com/v1
kind
:
ServiceMonitor
metadata
:
labels
:
prometheus
:
k8s
name
:
twistlock
namepsace
:
monitoring
spec
:
selector
:
matchLabels
:
name
:
console
namespaceSelector
:
matchNames
:
-
twistlock
endpoints
:
-
interval
:
30s
path
:
/api/v1/metrics
port
:
mgmt-http
scheme
:
http
basicAuth
:
password
:
name
:
twistlock-basic-auth
key
:
password
username
:
name
:
twistlock-basic-auth
key
:
user
jobLabel
:
twistlock-metrics
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment