open-services-group / scrum

SCRUM issues and user stories
GNU General Public License v3.0
0 stars 2 forks source link

Collect github data with prometheus and show in grafana #40

Closed schwesig closed 1 year ago

schwesig commented 2 years ago
schwesig commented 2 years ago

/sig community /area contributor /area community /area monitoring /kind metrics

sesheta commented 2 years ago

@schwesig: The label(s) sig/community, area/contributor, area/community, area/monitoring, kind/metrics cannot be applied, because the repository doesn't have them.

In response to [this](https://github.com/open-services-group/scrum/issues/40#issuecomment-1235590004): >/sig community >/area contributor >/area community >/area monitoring >/kind metrics Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
schwesig commented 2 years ago

create mockup image image

schwesig commented 2 years ago

promql

schwesig commented 2 years ago

example: json for Project Owner Groups, last 4 days, last

{
  "id": 4,
  "gridPos": {
    "h": 6,
    "w": 4,
    "x": 0,
    "y": 10
  },
  "type": "stat",
  "title": "Project Owner Groups, last 4 days, last",
  "datasource": {
    "uid": "PDD709D2516BFAE8A",
    "type": "prometheus"
  },
  "pluginVersion": "8.4.3",
  "description": "Project Owner Groups, last 4 days, last",
  "fieldConfig": {
    "defaults": {
      "mappings": [],
      "thresholds": {
        "mode": "absolute",
        "steps": [
          {
            "color": "#ffffff",
            "value": null
          }
        ]
      },
      "color": {
        "mode": "thresholds"
      },
      "unit": ""
    },
    "overrides": []
  },
  "options": {
    "reduceOptions": {
      "values": false,
      "calcs": [
        "last"
      ],
      "fields": ""
    },
    "orientation": "horizontal",
    "textMode": "auto",
    "colorMode": "none",
    "graphMode": "area",
    "justifyMode": "auto"
  },
  "targets": [
    {
      "expr": "count(count by (annotation_op1st_project_owner) (k8s_resource_annotations_info{annotation_op1st_project_owner!=\"\"}))",
      "legendFormat": "Verbose",
      "interval": "",
      "exemplar": false,
      "datasource": {
        "type": "prometheus",
        "uid": "PDD709D2516BFAE8A"
      },
      "refId": "A"
    }
  ]
}
schwesig commented 2 years ago

dashboard snapshot https://grafana.operate-first.cloud/dashboard/snapshot/2I4k71DpSz3wvIWvvnT2eSi08XyVH71N

schwesig commented 1 year ago

/close cleanup after change of organisation

sesheta commented 1 year ago

@schwesig: Closing this issue.

In response to [this](https://github.com/open-services-group/scrum/issues/40#issuecomment-1283728986): >/close >cleanup after change of organisation Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.