Skip to content

Commit

Permalink
Merge pull request #4997 from GeorgianaElena/infinity-ds
Browse files Browse the repository at this point in the history
Automatically add the infintiy plugin and datasource to all Grafana instances
  • Loading branch information
GeorgianaElena authored Oct 23, 2024
2 parents 63787ff + 64f13a1 commit 7ff61eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
12 changes: 0 additions & 12 deletions docs/howto/cost-attribution/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,18 +223,6 @@ Finally deploy the support chart:
deployer deploy-support $CLUSTER_NAME
```

### 5. Manually install plugin and add datasource to Grafana

A cost attribution dashboard should be deployed via a GitHub workflow with
automation, but the dashboard requires the Infinity plugin to be installed
together with one data source of the Infinity plugin's kind to be added.

1. Login to Grafana instance as the admin user
2. Navigate to the `plugins/yesoreyeram-infinity-datasource` path (Plugins ->
Search for infinity)
3. First press the "Install" button, and then press the "Add new datasource"
button

## Troubleshooting

If you don't see data in the cost attribution dashboard, you may want to look to
Expand Down
7 changes: 7 additions & 0 deletions helm-charts/support/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ grafana:
token_url: https://github.com/login/oauth/access_token
api_url: https://api.github.com/user

plugins:
- yesoreyeram-infinity-datasource

datasources:
datasources.yaml:
apiVersion: 1
Expand All @@ -415,6 +418,10 @@ grafana:
access: proxy
isDefault: false
editable: false
- name: yesoreyeram-infinity-datasource
type: yesoreyeram-infinity-datasource
isDefault: false
editable: true

# cryptnono kills processes attempting to mine the cryptocurrency Monero in the
# k8s cluster.
Expand Down

0 comments on commit 7ff61eb

Please sign in to comment.