Documentation ¶
Index ¶
- Constants
- func Dial() (*grpc.ClientConn, context.CancelFunc, error)
- type Metrics
- func (m *Metrics) AuditInc(stream api.Metrics_AuditIncServer) error
- func (m *Metrics) BpfInc(stream api.Metrics_BpfIncServer) error
- func (m *Metrics) Handler() http.Handler
- func (m *Metrics) IncAppArmorProfileAudit(node, namespace, pod, container, executable, syscall string)
- func (m *Metrics) IncAppArmorProfileDelete()
- func (m *Metrics) IncAppArmorProfileError(reason string)
- func (m *Metrics) IncAppArmorProfileUpdate()
- func (m *Metrics) IncSeccompProfileAudit(node, namespace, pod, container, executable, syscall string)
- func (m *Metrics) IncSeccompProfileBpf(node, profile string, mountNamespace uint32)
- func (m *Metrics) IncSeccompProfileDelete()
- func (m *Metrics) IncSeccompProfileError(reason string)
- func (m *Metrics) IncSeccompProfileUpdate()
- func (m *Metrics) IncSelinuxProfileAudit(node, namespace, pod, container, executable, scontext, tcontext string)
- func (m *Metrics) IncSelinuxProfileDelete()
- func (m *Metrics) IncSelinuxProfileError(reason string)
- func (m *Metrics) IncSelinuxProfileUpdate()
- func (m *Metrics) Register() error
- func (m *Metrics) ServeGRPC() error
Constants ¶
const (
// HandlerPath is the default path for serving metrics.
HandlerPath = "/metrics-spod"
)
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
func Dial() (*grpc.ClientConn, context.CancelFunc, error)
Dial can be used to connect to the default GRPC server by creating a new client.
Types ¶
type Metrics ¶
type Metrics struct { api.UnimplementedMetricsServer // contains filtered or unexported fields }
Metrics is the main structure of this package.
func (*Metrics) AuditInc ¶
func (m *Metrics) AuditInc( stream api.Metrics_AuditIncServer, ) error
AuditInc updates the metrics for the audit counter.
func (*Metrics) BpfInc ¶
func (m *Metrics) BpfInc(stream api.Metrics_BpfIncServer) error
BpfInc updates the metrics for the bpf counter.
func (*Metrics) IncAppArmorProfileAudit ¶
func (m *Metrics) IncAppArmorProfileAudit( node, namespace, pod, container, executable, syscall string, )
IncAppArmorProfileAudit increments the apparmor profile audit counter for the provided labels.
func (*Metrics) IncAppArmorProfileDelete ¶
func (m *Metrics) IncAppArmorProfileDelete()
IncAppArmorProfileDelete increments the apparmor profile deletion counter.
func (*Metrics) IncAppArmorProfileError ¶
IncAppArmorProfileError increments the apparmor profile error counter for the provided reason.
func (*Metrics) IncAppArmorProfileUpdate ¶
func (m *Metrics) IncAppArmorProfileUpdate()
IncAppArmorProfileUpdate increments the apparmor profile update counter.
func (*Metrics) IncSeccompProfileAudit ¶
func (m *Metrics) IncSeccompProfileAudit( node, namespace, pod, container, executable, syscall string, )
IncSeccompProfileAudit increments the seccomp profile audit counter for the provided labels.
func (*Metrics) IncSeccompProfileBpf ¶
IncSeccompProfileBpf increments the seccomp profile bpf counter for the provided labels.
func (*Metrics) IncSeccompProfileDelete ¶
func (m *Metrics) IncSeccompProfileDelete()
IncSeccompProfileDelete increments the seccomp profile deletion counter.
func (*Metrics) IncSeccompProfileError ¶
IncSeccompProfileError increments the seccomp profile error counter for the provided reason.
func (*Metrics) IncSeccompProfileUpdate ¶
func (m *Metrics) IncSeccompProfileUpdate()
IncSeccompProfileUpdate increments the seccomp profile update counter.
func (*Metrics) IncSelinuxProfileAudit ¶
func (m *Metrics) IncSelinuxProfileAudit( node, namespace, pod, container, executable, scontext, tcontext string, )
IncSelinuxProfileAudit increments the selinux profile audit counter for the provided labels.
func (*Metrics) IncSelinuxProfileDelete ¶
func (m *Metrics) IncSelinuxProfileDelete()
IncSelinuxProfileDelete increments the selinux profile deletion counter.
func (*Metrics) IncSelinuxProfileError ¶
IncSelinuxProfileError increments the selinux profile error counter for the provided reason.
func (*Metrics) IncSelinuxProfileUpdate ¶
func (m *Metrics) IncSelinuxProfileUpdate()
IncSelinuxProfileUpdate increments the selinux profile update counter.