Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitoring GitHub workflow via Grafana #214

Closed
Jyoti492 opened this issue Mar 1, 2023 · 1 comment
Closed

Monitoring GitHub workflow via Grafana #214

Jyoti492 opened this issue Mar 1, 2023 · 1 comment

Comments

@Jyoti492
Copy link

Jyoti492 commented Mar 1, 2023

I want to monitor GitHub with Grafana and I came across https://github.com/grafana/github-datasource which can do the trick.
Have added the data source as cm and added it as plugin in grafana deployment but my deployment fails saying it can't find the plugin

lvl=warn msg="invalid access value, will use 'proxy' instead" value=server

My configmap looks as below:

apiVersion: v1
data:
  github.yaml: |-
    apiVersion: v1
    datasources:
      - access: proxy
        name: GitHub
        type: grafana-github-datasource
kind: ConfigMap
metadata:
  creationTimestamp: "2023-03-01T21:26:19Z"
  name: github-datasource
  namespace: kube-prometheus-stack
  resourceVersion: "176513298"
  uid: 22d3a597-119f-48f9-970d-605bc258f135

tried this too but same issue:

apiVersion: v1
data:
  github.yaml: |
    apiVersion: v1
    datasources:
      - access: direct
        name: GitHub
        type: grafana-github-datasource
        url: https://api.github.com/
        jsonData:
          token: XXX
kind: ConfigMap
metadata:
  creationTimestamp: "2023-03-02T06:57:53Z"
  name: grafana-github-datasource
  namespace: kube-prometheus-stack
  resourceVersion: "296320328"
  uid: d3ce0d89-81a7-40d7-934d-2f896f925a9e

Expected:
Monitor Github workflow with grafana

@zoltanbedi
Copy link
Member

I know nothing about kubernetes and configmaps so I'm not sure that what you are trying makes sense or not. I advise to read our provisioning guide and try to use that instead. https://grafana.com/docs/grafana/latest/administration/provisioning/#data-sources

Also if you are still stuck you may have better luck asking questions in the forum https://community.grafana.com/?plcmt=learn-nav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants