-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alberto Gutierrez
committed
Oct 16, 2024
1 parent
2e8b771
commit 5185a38
Showing
109 changed files
with
12,370 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Pull Metrics | ||
|
||
on: | ||
schedule: | ||
# Every night at 04:00 (UTC) | ||
- cron: "0 4 * * *" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
KIALI_API_TOKEN: '${{ secrets.KIALI_API_TOKEN }}' | ||
steps: | ||
- name: checkout repo content | ||
uses: actions/checkout@v4 # checkout the repository content | ||
|
||
- name: setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' # install the python version needed | ||
|
||
- name: install python packages | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r scripts/api_gh/requirements.txt | ||
- name: execute py script # run main.py | ||
run: make generate_metrics_json | ||
- name: Configure git | ||
run: | | ||
git config user.email '[email protected]' | ||
git config user.name 'kiali-bot' | ||
- name: Update metrics file | ||
run: | | ||
if [[ `git status --porcelain` ]]; then | ||
echo -e "\e[1;32mOK\e[0m \e[1;39mMetrics json change detected.\e[0m" | ||
git add website/src/data/metrics.json | ||
git commit -m "Update metrics.json" | ||
git push origin | ||
else | ||
echo -e "\e[1;39mNo changes were detected.\e[0m" | ||
fi | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Community | ||
|
||
Repo with talks and workshops | ||
This repo contains the Kiali community side ! | ||
|
||
To explore more about Kiali community visit the website [https://kiali.org/community/](https://kiali.org/community/) | ||
|
14 changes: 14 additions & 0 deletions
14
events/2024_06_Kiali_Beyond_the_Graph_Troubleshooting_Istio/event.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"date": "2024-06-21", | ||
"place": "Brno, Czech Republic", | ||
"eventName": "DevConf", | ||
"description": "Microservices architecture has become a cornerstone in modern application development, offering scalability, agility, and flexibility. However, managing the complexity of microservices can be challenging, and that's where Kiali comes into play. In this talk, we'll explore the powerful capabilities of Kiali as an observability and management platform for Kubernetes applications.Microservices introduce a new set of challenges in terms of monitoring, tracing, and understanding the interactions between services. Kiali, an open-source project, simplifies these complexities by providing a visual representation of the microservices topology, along with advanced monitoring and troubleshooting features", | ||
"talkName": "Kiali Beyond the Graph – Troubleshooting Istio", | ||
"lang": "EN", | ||
"type": "talk", | ||
"presentation": { | ||
"type" : "youtube", | ||
"link": "https://www.youtube.com/embed/aM6fslVXbZc?si=BbvRinEiPQWfXU0S" | ||
}, | ||
"folder_path": "https://www.youtube.com/watch?v=aM6fslVXbZc" | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"date": "2024-10-26", | ||
"place": "Malaga, Spain", | ||
"eventName": "BiznagaFest", | ||
"talkName": "Setup your mesh with Istio and Kiali", | ||
"description": "En este taller los asistentes aprenderan a configurar Istio con Kiali y a como convivir con este entorno, aprenderan que les aporta y los beneficios que se obtienen a nivel de seguridad y observabilidad.", | ||
"lang": "ES", | ||
"type": "workshop", | ||
"presentation": { | ||
"type" : "markdown", | ||
"link": "https://raw.githubusercontent.com/kiali/community/refs/heads/main/2024_10_Setup_your_mesh_ES/Setup%20your%20mesh%20with%20Istio%20and%20Kiali.md" | ||
}, | ||
"folder_path": "https://github.com/kiali/community/tree/main/2024_10_Setup_your_mesh_ES" | ||
} |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import os | ||
import json | ||
from github import Github | ||
|
||
# Authentication is defined via github.Auth | ||
from github import Auth | ||
|
||
REPOS = ["kiali", "kiali-operator", "openshift-servicemesh-plugin"] | ||
|
||
|
||
class KialiApi: | ||
def __init__(self): | ||
TOKEN = os.getenv('KIALI_API_TOKEN') | ||
auth = Auth.Token(TOKEN) | ||
self.client = Github(auth=auth) | ||
self.organization = "kiali" | ||
with open('./website/src/data/metrics.json') as f: | ||
self.data = json.load(f) | ||
def generate(self): | ||
self.getRepositories() | ||
self.write_json() | ||
def getRepositories(self): | ||
org = self.client.get_organization("kiali") | ||
for repoName in REPOS: | ||
repo = org.get_repo(repoName) | ||
if "repositories" not in self.data: | ||
self.data["repositories"] = {} | ||
if repoName not in self.data["repositories"]: | ||
self.generate_initial_data(repoName) | ||
self.data["repositories"][repoName]["language"] = repo.get_languages() | ||
keyDate = repo.updated_at.strftime("%Y-%m-%d") | ||
|
||
|
||
if keyDate not in self.data["repositories"][repoName]["metrics"]: | ||
self.data["repositories"][repoName]["metrics"][keyDate] = { | ||
"forks": repo.forks_count, | ||
"issues": repo.open_issues_count, | ||
"stars": repo.stargazers_count, | ||
"size": repo.size | ||
} | ||
def generate_initial_data(self, repoName): | ||
repo = self.client.get_organization("kiali").get_repo(repoName) | ||
self.data["repositories"][repoName] = { | ||
"license": repo.get_license().license.name, | ||
"description": repo.description, | ||
"url": repo.html_url, | ||
"created": repo.created_at.strftime("%Y-%m-%d"), | ||
"topics": repo.topics, | ||
"metrics": {} | ||
} | ||
def write_json(self): | ||
with open('./website/src/data/metrics.json', 'w') as f: | ||
json.dump(self.data, f, indent=4) | ||
def __exit__(self): | ||
if not self.client.closed: | ||
self.client.close() | ||
|
||
client = KialiApi() | ||
client.generate() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PyGithub==2.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import json | ||
import hashlib | ||
from pathlib import Path | ||
p = Path('./events') | ||
json_output = [ | ||
] | ||
m = hashlib.md5() | ||
for json_file in p.glob('**/event.json'): | ||
with open(json_file) as input_file: | ||
data = json.load(input_file) | ||
data["path"] = "events/" + json_file.parent.name | ||
m.update((data["date"] + "_" + data["eventName"] + data["talkName"]).encode('utf-8')) | ||
data["id"] = str(int(m.hexdigest(), 16))[0:12] | ||
json_output.append(data) | ||
|
||
with open('./website/src/data/events.json', 'w') as f: | ||
json.dump(json_output, f, indent=4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.