Skip to content

Commit

Permalink
Merge pull request #17 from enolfc/eosc-accounting
Browse files Browse the repository at this point in the history
EOSC Accounting
  • Loading branch information
andrea-manzi authored Aug 21, 2024
2 parents 6a69edf + 482039b commit 5f048a6
Show file tree
Hide file tree
Showing 13 changed files with 330 additions and 190 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM python:3

COPY . /egi-notebooks-accounting
WORKDIR /egi-notebooks-accounting

RUN pip install --no-cache-dir -e /egi-notebooks-accounting/
COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

COPY . .

RUN pip install --no-cache-dir .
47 changes: 29 additions & 18 deletions egi_notebooks_accounting/config.ini
Original file line number Diff line number Diff line change
@@ -1,34 +1,45 @@
[prometheus]
[default]
# be verbose
# verbose=0
# site=EGI-NOTEBOOKS
# cloud_type=EGI Notebooks
# cloud_compute_service=
# default_vo=vo.notebooks.egi.eu
# fqan_key=primary_group

# url=http://localhost:8080/
# user=
# password=
# verbose=0
# verify=0
# outputs
# apel_spool=
# notebooks_db=

# filter=pod=~'jupyter-.*'
# range=4h

[VO]
#
# VO section example:
#
# [VO]
# VO1=group1,group2,...
# VO2=group3,group4,...

[prometheus]
# prometheus server URL
# url=http://localhost:8080/
# Server authentication
# user=
# password=
# do verify server
# verify=0
# filters for querying
# filter=pod=~'jupyter-.*'
# range=4h


[eosc]
# token_url=https://aai-demo.eosc-portal.eu/auth/realms/core/protocol/openid-connect/token
# argo_url=https://accounting.devel.argo.grnet.gr
# refresh_token=
# client_secret=
# AAI credentials (client_grant expected)
# token_url=
# client_id=
# client_secret=
# scopes=
# URL of the accounting service
# accounting_url=
# Installation that metrics are reported for
# installaion_id=
# users_metric=
# sessions_metric=

[eosc.flavors]
# add every flavor to be reported as follows
# flavor_name=metric_id
Loading

0 comments on commit 5f048a6

Please sign in to comment.