Skip to content

Instantly share code, notes, and snippets.

{
"name": "Anchore - Policy Report",
"description": null,
"permissions": "PUBLIC_READ_WRITE",
"pages": [
{
"name": "Anchore - Policy Report",
"description": null,
"widgets": [
{
#!/usr/bin/python3
import json
import time
import sys
fbuffer = open(sys.argv[1],'r')
lines = fbuffer.readlines()
fbuffer.close()
timestamp = int(time.time())
#!/usr/bin/env python3
import subprocess
import json
import re
import csv
# Execute the initial command to get image list
initial_cmd = "sudo anchorectl image list -o json"
output = subprocess.check_output(initial_cmd, shell=True)
{
"title": "Complexity Assessment",
"icon": "bar-chart",
"grid_column_count": 12,
"filter": {
"key_names": [],
"event_types": ["complexity"],
"filter_first": false
},
"owner": {
{
"dashboard": {
"id": 1092283,
"title": "Complexity Assessment",
"description": "",
"icon": "bar-chart",
"created_at": "2020-01-29T23:26:29Z",
"updated_at": "2020-01-31T08:53:12Z",
"visibility": "all",
"editable": "editable_by_all",
export var algorithm =
[
{
"fields": [
{
"SW Dependencies": {
"type": "integer",
"weight": 1
},
"Unique Transactions": {
# This file configures the New Relic Agent. New Relic monitors
# Java applications with deep visibility and low overhead. For more details and additional
# configuration options visit https://docs.newrelic.com/docs/java/java-agent-configuration.
#
# <%= generated_for_user %>
#
# This section is for settings common to all environments.
# Do not add anything above this next line.
common: &default_settings
{
"title": "Kubernetes Overview",
"icon": "bar-chart",
"grid_column_count": 3,
"filter": {
"key_names": ["clusterName", "namespace", "nodeName", "containerName"],
"event_types": ["K8sContainerSample", "K8sDeploymentSample", "K8sNamespaceSample", "K8sNodeSample", "K8sPodSample", "K8sReplicasetSample"],
"filter_first": false
},
"owner": {
# This file configures the New Relic Agent. New Relic monitors
# Java applications with deep visibility and low overhead. For more details and additional
# configuration options visit https://docs.newrelic.com/docs/java/java-agent-configuration.
#
# <%= generated_for_user %>
#
# This section is for settings common to all environments.
# Do not add anything above this next line.
common: &default_settings

Keybase proof

I hereby claim:

  • I am iamfuzz on github.
  • I am iamfuzz (https://keybase.io/iamfuzz) on keybase.
  • I have a public key whose fingerprint is 2A62 FCF3 BBE8 6772 7440 369C 9258 A798 513F 86CD

To claim this, I am signing this object: