{
  "apiVersion" : "v1",
  "kind" : "Template",
  "metadata" : {
    "annotations" : {
      "fabric8.grafana/summary" : "[Grafana](http://grafana.org/) console for viewing metrics stored in various storage backends",
      "description" : "Provides centralised historical [Metrics](http://fabric8.io/guide/metrics.html) and alerting using [Prometheus](prometheus) as the back end and [Grafana2](http://grafana.org/) as the front end",
      "fabric8.grafana/iconUrl" : "https://cdn.rawgit.com/fabric8io/fabric8-devops/master/grafana/src/main/fabric8/icon.png",
      "fabric8.prometheus/summary" : "[Prometheus](http://prometheus.io/) - an open-source service monitoring system and time series database",
      "fabric8.prometheus/iconUrl" : "https://cdn.rawgit.com/fabric8io/fabric8-devops/master/prometheus/src/main/fabric8/icon.png",
      "fabric8.metrics/summary" : "Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/",
      "fabric8.metrics/iconUrl" : "https://cdn.rawgit.com/fabric8io/fabric8-devops/master/packages/metrics/src/main/fabric8/icon.png"
    },
    "labels" : { },
    "name" : "metrics"
  },
  "objects" : [ {
    "apiVersion" : "v1",
    "imagePullSecrets" : [ ],
    "kind" : "ServiceAccount",
    "metadata" : {
      "annotations" : {
        "fabric8.io/iconUrl" : "https://cdn.rawgit.com/fabric8io/fabric8-devops/master/prometheus/src/main/fabric8/icon.png"
      },
      "labels" : {
        "package" : "metrics"
      },
      "name" : "metrics"
    },
    "secrets" : [ ]
  }, {
    "apiVersion" : "v1",
    "kind" : "Service",
    "metadata" : {
      "annotations" : {
        "fabric8.io/iconUrl" : "https://cdn.rawgit.com/fabric8io/fabric8-devops/master/grafana/src/main/fabric8/icon.png"
      },
      "labels" : {
        "provider" : "fabric8",
        "project" : "grafana",
        "version" : "2.2.211",
        "group" : "io.fabric8.devops.apps",
        "package" : "metrics"
      },
      "name" : "grafana"
    },
    "spec" : {
      "deprecatedPublicIPs" : [ ],
      "externalIPs" : [ ],
      "ports" : [ {
        "port" : 80,
        "protocol" : "TCP",
        "targetPort" : 3000
      } ],
      "selector" : {
        "project" : "grafana",
        "provider" : "fabric8",
        "group" : "io.fabric8.devops.apps"
      },
      "type" : "LoadBalancer"
    }
  }, {
    "apiVersion" : "v1",
    "kind" : "Service",
    "metadata" : {
      "annotations" : {
        "prometheus.io/port" : "9090",
        "prometheus.io/scrape" : "true",
        "fabric8.io/iconUrl" : "https://cdn.rawgit.com/fabric8io/fabric8-devops/master/prometheus/src/main/fabric8/icon.png"
      },
      "labels" : {
        "provider" : "fabric8",
        "project" : "prometheus",
        "version" : "2.2.211",
        "group" : "io.fabric8.devops.apps",
        "package" : "metrics"
      },
      "name" : "prometheus"
    },
    "spec" : {
      "deprecatedPublicIPs" : [ ],
      "externalIPs" : [ ],
      "ports" : [ {
        "port" : 80,
        "protocol" : "TCP",
        "targetPort" : 9090
      } ],
      "selector" : {
        "project" : "prometheus",
        "provider" : "fabric8",
        "group" : "io.fabric8.devops.apps"
      },
      "type" : "LoadBalancer"
    }
  }, {
    "apiVersion" : "v1",
    "kind" : "ReplicationController",
    "metadata" : {
      "annotations" : {
        "fabric8.io/iconUrl" : "https://cdn.rawgit.com/fabric8io/fabric8-devops/master/grafana/src/main/fabric8/icon.png",
        "fabric8.io/git-branch" : "release-v2.2.211",
        "fabric8.io/git-commit" : "2c18b50f4d2d40881d1758cfbf331eda441915e3",
        "fabric8.io/build-url" : "http://null:80/job/oss-parent/6",
        "fabric8.io/build-id" : "6"
      },
      "labels" : {
        "provider" : "fabric8",
        "project" : "grafana",
        "version" : "2.2.211",
        "group" : "io.fabric8.devops.apps",
        "package" : "metrics"
      },
      "name" : "grafana"
    },
    "spec" : {
      "replicas" : 1,
      "selector" : {
        "provider" : "fabric8",
        "project" : "grafana",
        "version" : "2.2.211",
        "group" : "io.fabric8.devops.apps"
      },
      "template" : {
        "metadata" : {
          "annotations" : { },
          "labels" : {
            "provider" : "fabric8",
            "project" : "grafana",
            "version" : "2.2.211",
            "group" : "io.fabric8.devops.apps",
            "package" : "metrics"
          }
        },
        "spec" : {
          "containers" : [ {
            "args" : [ ],
            "command" : [ ],
            "env" : [ {
              "name" : "PROMETHEUS_ADDRESS",
              "value" : "http://prometheus"
            }, {
              "name" : "KUBERNETES_NAMESPACE",
              "valueFrom" : {
                "fieldRef" : {
                  "fieldPath" : "metadata.namespace"
                }
              }
            } ],
            "image" : "fabric8/grafana:2.5.0_02",
            "name" : "grafana",
            "ports" : [ {
              "containerPort" : 3000,
              "name" : "http"
            } ],
            "resources" : {
              "limits" : {
                "cpu" : "0",
                "memory" : "0"
              },
              "requests" : {
                "cpu" : "0",
                "memory" : "0"
              }
            },
            "securityContext" : { },
            "volumeMounts" : [ {
              "mountPath" : "/var/lib/grafana",
              "name" : "grafana-data",
              "readOnly" : false
            } ]
          } ],
          "imagePullSecrets" : [ ],
          "nodeSelector" : { },
          "volumes" : [ {
            "emptyDir" : {
              "medium" : ""
            },
            "name" : "grafana-data"
          } ]
        }
      }
    }
  }, {
    "apiVersion" : "v1",
    "kind" : "ReplicationController",
    "metadata" : {
      "annotations" : {
        "fabric8.io/iconUrl" : "https://cdn.rawgit.com/fabric8io/fabric8-devops/master/prometheus/src/main/fabric8/icon.png",
        "fabric8.io/git-branch" : "release-v2.2.211",
        "fabric8.io/git-commit" : "2c18b50f4d2d40881d1758cfbf331eda441915e3",
        "fabric8.io/build-url" : "http://null:80/job/oss-parent/6",
        "fabric8.io/build-id" : "6"
      },
      "labels" : {
        "provider" : "fabric8",
        "project" : "prometheus",
        "version" : "2.2.211",
        "group" : "io.fabric8.devops.apps",
        "package" : "metrics"
      },
      "name" : "prometheus"
    },
    "spec" : {
      "replicas" : 1,
      "selector" : {
        "provider" : "fabric8",
        "project" : "prometheus",
        "version" : "2.2.211",
        "group" : "io.fabric8.devops.apps"
      },
      "template" : {
        "metadata" : {
          "annotations" : { },
          "labels" : {
            "provider" : "fabric8",
            "project" : "prometheus",
            "version" : "2.2.211",
            "group" : "io.fabric8.devops.apps",
            "package" : "metrics"
          }
        },
        "spec" : {
          "containers" : [ {
            "args" : [ ],
            "command" : [ ],
            "env" : [ {
              "name" : "KUBERNETES_NAMESPACE",
              "valueFrom" : {
                "fieldRef" : {
                  "fieldPath" : "metadata.namespace"
                }
              }
            } ],
            "image" : "fabric8/prometheus-kubernetes:2.2.211",
            "livenessProbe" : {
              "tcpSocket" : {
                "port" : 9090
              }
            },
            "name" : "prometheus",
            "ports" : [ {
              "containerPort" : 9090,
              "name" : "http"
            } ],
            "resources" : {
              "limits" : {
                "cpu" : "0",
                "memory" : "0"
              },
              "requests" : {
                "cpu" : "0",
                "memory" : "0"
              }
            },
            "securityContext" : { },
            "volumeMounts" : [ {
              "mountPath" : "/prometheus",
              "name" : "prometheus-data",
              "readOnly" : false
            } ]
          } ],
          "imagePullSecrets" : [ ],
          "nodeSelector" : { },
          "serviceAccountName" : "metrics",
          "volumes" : [ {
            "emptyDir" : {
              "medium" : ""
            },
            "name" : "prometheus-data"
          } ]
        }
      }
    }
  } ],
  "parameters" : [ ]
}