21 Commits

Author SHA1 Message Date
1bce8fbfce fix analytics
All checks were successful
Run Tox Check / tox-py312 (pull_request) Successful in 16s
Run Tox Check / tox-pep8 (pull_request) Successful in 15s
Updates Opensearch filters / update-opensearch-filters (pull_request) Has been skipped
2025-08-11 09:19:51 +00:00
7279e5e043 fix url
All checks were successful
Run Tox Check / tox-py312 (pull_request) Successful in 15s
Run Tox Check / tox-pep8 (pull_request) Successful in 15s
2025-08-11 09:09:13 +00:00
e1ca847868 tune workflow
All checks were successful
Run Tox Check / tox-py312 (pull_request) Successful in 15s
Run Tox Check / tox-pep8 (pull_request) Successful in 15s
2025-08-11 09:04:08 +00:00
f06e62aea3 resolve conflicts
All checks were successful
Run Tox Check / tox-py312 (pull_request) Successful in 15s
Run Tox Check / tox-pep8 (pull_request) Successful in 15s
2025-08-11 08:47:19 +00:00
03072ec4c0 add PR
All checks were successful
Run Tox Check / tox-py312 (pull_request) Successful in 16s
Run Tox Check / tox-pep8 (pull_request) Successful in 15s
2025-08-11 08:44:25 +00:00
9848825516 change workflow (#41)
Reviewed-on: #41
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2025-08-11 08:31:55 +00:00
f81ba23d8a change workflow
All checks were successful
Run Tox Check / tox-py312 (pull_request) Successful in 16s
Run Tox Check / tox-pep8 (pull_request) Successful in 16s
Updates Opensearch filters / update-opensearch-filters (pull_request) Successful in 10s
2025-08-11 08:30:46 +00:00
17cd4cac60 debug workflow (#40)
Some checks failed
Create Weekly Analytics Stats / run-analytics (push) Failing after 7s
Co-authored-by: gitea-actions[bot] <actions@users.noreply.local>
Reviewed-on: #40
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2025-08-08 14:01:24 +00:00
77b10c9729 collect_website_statics (#39)
Reviewed-on: #39
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2025-08-08 13:40:25 +00:00
81fd29520d Update .gitea/workflows/create-weekly-analytics-stats.yaml (#38)
Reviewed-on: #38
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
2025-08-08 10:13:35 +00:00
f635b7351e add collect_statistics tool (#37)
Reviewed-on: #37
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2025-08-08 10:09:41 +00:00
71b820ebf5 New service function (#36)
Reviewed-on: #36
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-08-04 09:36:23 +00:00
e3741c8b53 add tox py3 check
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2025-07-30 12:14:34 +00:00
167f5cb883 add opensearch update workflow
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2025-07-29 09:35:01 +00:00
746279eba1 disable import for bcc and sd
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-07-23 12:16:18 +00:00
6919069569 delete business dashboard
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-07-23 12:04:48 +00:00
92525c56a9 fixing wrong names of dms metadata files
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2025-07-16 09:55:16 +00:00
48c646805c Make taurusdb public
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-07-11 10:13:50 +00:00
9ceb185bce remove DIS documentation from portal
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Michal Kacur <michal.kacur@t-systems.com>
Co-committed-by: Michal Kacur <michal.kacur@t-systems.com>
2025-07-07 11:08:49 +00:00
3bc22e77fb renaming dms and splitting rocketmq to new service
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2025-07-04 11:33:41 +00:00
f5317b2d16 Adding metadata for css koosearch api-ref and umn
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: vpruthi <Vineet.Pruthi@t-systems.com>
Co-committed-by: vpruthi <Vineet.Pruthi@t-systems.com>
2025-07-04 11:33:11 +00:00
25 changed files with 379 additions and 88 deletions

View File

@ -0,0 +1,62 @@
name: Create Weekly Analytics Stats
on:
schedule:
# 03:00 UTC = 04:00 CET
- cron: "0 3 * * 1"
workflow_dispatch:
jobs:
run-analytics:
runs-on: ubuntu
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PUSH_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests otc-metadata
- name: Run analytics for eu_de
env:
UMAMI_USERNAME: ${{ secrets.UMAMI_USERNAME }}
UMAMI_PASSWORD: ${{ secrets.UMAMI_PASSWORD }}
run: |
python ./tools/collect_statistics.py \
--website-id "${{ secrets.UMAMI_WEBSITE_ID }}" \
--cloud-environment "eu_de" \
--environment "public" \
--limit "10"
- name: Run analytics for swiss
env:
UMAMI_USERNAME: ${{ secrets.UMAMI_USERNAME }}
UMAMI_PASSWORD: ${{ secrets.UMAMI_PASSWORD }}
run: |
python ./tools/collect_statistics.py \
--website-id "${{ secrets.UMAMI_WEBSITE_ID }}" \
--cloud-environment "swiss" \
--environment "public" \
--limit "10"
- name: Commit and push results
id: commit_step
run: |
git config --global user.name "gitea-actions[bot]"
git config --global user.email "actions@users.noreply.local"
git checkout -B analytics-update
git add analytics/
if git diff --cached --quiet; then
else
git commit -m "chore: update analytics data"
git push origin analytics-update --force
fi

View File

@ -0,0 +1,18 @@
name: Run Tox Check
on:
pull_request:
types: [opened, reopened, synchronize, edited]
jobs:
tox-py312:
runs-on: ubuntu
steps:
- uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-py-test@v1
tox-pep8:
runs-on: ubuntu
steps:
- uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-py-test@v1
with:
tox-env: pep8

View File

@ -0,0 +1,32 @@
name: Updates Opensearch filters
on:
pull_request:
types:
- closed
branches:
- main
jobs:
update-opensearch-filters:
if: github.event.pull_request.merged == true
runs-on: ubuntu
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies and local package otc-metadata package
run: |
python -m pip install --upgrade pip
pip install . -r tools-requirements.txt
- name: Update swiss and eu_de Opensearch indizies
run: |
python tools/index_metadata.py --hosts ${{ secrets.OPENSEARCH_HOST1 }} --target-environment public --index search_index_de --cloud-environment eu_de --username ${{ secrets.OPENSEARCH_USER }} --password ${{ secrets.OPENSEARCH_PW }} --delete-index
python tools/index_metadata.py --hosts ${{ secrets.OPENSEARCH_HOST1 }} --target-environment public --index search_index_swiss --cloud-environment swiss --username ${{ secrets.OPENSEARCH_USER }} --password ${{ secrets.OPENSEARCH_PW }} --delete-index

View File

@ -0,0 +1,12 @@
[
"evs",
"ims",
"ecs",
"cce",
"obs",
"rds",
"sfs",
"iam",
"config",
"elb"
]

View File

@ -0,0 +1,12 @@
[
"evs",
"ims",
"ecs",
"cce",
"obs",
"rds",
"iam",
"elb",
"cbr",
"vpn"
]

View File

@ -6,6 +6,7 @@ rst_location: api-ref/source
service_type: bcc service_type: bcc
title: API Reference title: API Reference
type: api-ref type: api-ref
disable_import: true
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: internal

View File

@ -6,6 +6,7 @@ rst_location: umn/source
service_type: bcc service_type: bcc
title: User Guide title: User Guide
type: umn type: umn
disable_import: true
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: internal

View File

@ -1,13 +0,0 @@
---
hc_location: usermanual/bd
html_location: docs/bd/umn
link: /business-dashboard/umn/
rst_location: umn/source
service_type: bd
title: User Guide
type: umn
cloud_environments:
- name: eu_de
visibility: public
pdf_visibility: hidden
pdf_enabled: false

View File

@ -0,0 +1,13 @@
---
hc_location: koosearch-api/css
html_location: docs/css/koosearch-api-ref
link: /cloud-search-service/koosearch-api-ref/
rst_location: doc/koosearch-api-ref/source
service_type: css
title: Koosearch API Reference
type: koosearch-api-ref
cloud_environments:
- name: eu_de
visibility: internal
pdf_visibility: public
pdf_enabled: true

View File

@ -0,0 +1,13 @@
---
hc_location: koosearch-usermanual/css
html_location: docs/css/koosearch-umn
link: /cloud-search-service/koosearch-umn/
rst_location: doc/koosearch-umn/source
service_type: css
title: Koosearch User Guide
type: koosearch-umn
cloud_environments:
- name: eu_de
visibility: internal
pdf_visibility: public
pdf_enabled: true

View File

@ -1,13 +0,0 @@
---
hc_location: api/dis
html_location: docs/dis/api-ref
link: /data-ingestion-service/api-ref/
rst_location: api-ref/source
service_type: dis
title: API Reference
type: api-ref
cloud_environments:
- name: eu_de
visibility: public
pdf_visibility: public
pdf_enabled: true

View File

@ -1,13 +0,0 @@
---
hc_location: usermanual/dis
html_location: docs/dis/umn
link: /data-ingestion-service/umn/
rst_location: umn/source
service_type: dis
title: User Guide
type: umn
cloud_environments:
- name: eu_de
visibility: public
pdf_visibility: public
pdf_enabled: true

View File

@ -6,6 +6,7 @@ rst_location: umn/source
service_type: sd service_type: sd
title: User Guide title: User Guide
type: umn type: umn
disable_import: true
cloud_environments: cloud_environments:
- name: swiss - name: swiss
visibility: public visibility: public

View File

@ -8,6 +8,6 @@ title: API Reference
type: api-ref type: api-ref
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: public
pdf_visibility: public pdf_visibility: public
pdf_enabled: true pdf_enabled: true

View File

@ -9,6 +9,6 @@ title: User Guide
type: umn type: umn
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: public
pdf_visibility: public pdf_visibility: public
pdf_enabled: true pdf_enabled: true

View File

@ -1,8 +0,0 @@
---
service_type: bd
repositories:
- environment: internal
repo: docs/business-dashboard
type: gitea
cloud_environments:
- eu_de

View File

@ -1,13 +0,0 @@
---
service_type: dis
repositories:
- environment: public
repo: opentelekomcloud-docs/data-ingestion-service
type: github
cloud_environments:
- eu_de
- environment: internal
repo: docs/data-ingestion-service
type: gitea
cloud_environments:
- eu_de

View File

@ -1,12 +0,0 @@
---
service_category: other
service_title: Business Dashboard
service_type: bd
service_uri: business-dashboard
is_global: false
teams:
- name: docs-dashboard-rw
permission: write
cloud_environments:
- name: eu_de
visibility: internal

View File

@ -1,12 +0,0 @@
---
service_category: big_data
service_title: Data Ingestion Service
service_type: dis
service_uri: data-ingestion-service
teams:
- name: docs-bigdata-ai-rw
permission: write
cloud_environments:
- name: eu_de
visibility: public
is_global: false

View File

@ -8,5 +8,5 @@ teams:
permission: write permission: write
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: public visibility: internal
is_global: false is_global: false

View File

@ -8,5 +8,5 @@ teams:
permission: write permission: write
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: public
is_global: false is_global: false

View File

@ -453,3 +453,25 @@ class Services(object):
res.sort(key=lambda x: x.get("name", "").lower()) res.sort(key=lambda x: x.get("name", "").lower())
return res return res
def all_services_by_cloud_environment(self, cloud_environment, environments):
"""Retrieve all services filtered by cloud_environment
"""
res = []
for srv in self.all_services:
if environments and cloud_environment:
for srv_cloud_environment in srv["cloud_environments"]:
if srv_cloud_environment["name"] == cloud_environment:
for environment in environments:
if srv_cloud_environment["visibility"] == environment:
res.append(srv)
else:
continue
else:
raise Exception("No cloud_environment or environments "
"specified in function all_services_by_cloud_environment.")
# Sort services
res.sort(key=lambda x: x.get("service_title", "").lower())
return res

188
tools/collect_statistics.py Executable file

File diff suppressed because it is too large Load Diff