Skip to content

Create tech stack docs (techstack.yml and techstack.md) #1

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Generate CloudWatch Metrics embedded within structured log events. The embedded

- Easily generate custom metrics from Lambda functions without requiring custom batching code, making blocking network requests or relying on 3rd party software.
- Other compute environments (EC2, On-prem, ECS, EKS, and other container environments) are supported by installing the [CloudWatch Agent](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Generation_CloudWatch_Agent.html).
- Examples can be found in [examples/README.md](examples/README.md)

- **Linking metrics to high cardinality context**

Expand Down
49 changes: 49 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Examples

## Docker

With Docker images, using the `awslogs` log driver will send your container logs to CloudWatch Logs. All you have to do is write to STDOUT and your EMF logs will be processed.

[Official Docker documentation for `awslogs` driver](https://docs.docker.com/config/containers/logging/awslogs/)

## ECS and Fargate

With ECS and Fargate, you can use the `awslogs` log driver to have your logs sent to CloudWatch Logs on your behalf. After configuring your task to use the `awslogs` log driver, you may write your EMF logs to STDOUT and they will be processed.

[ECS documentation on `awslogs` log driver](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html)

## Fluent Bit and Fluentd

Fluent Bit can be used to collect logs and push them to CloudWatch Logs. After configuring the Amazon CloudWatch Logs output plugin, you may write your EMF logs to STDOUT and they will be processed.

[Getting Started with Fluent Bit](https://docs.fluentbit.io/manual/installation/getting-started-with-fluent-bit)

[Amazon CloudWatch output plugin for Fluent Bit](https://docs.fluentbit.io/manual/pipeline/outputs/cloudwatch)

### Example Metrics

```json
{
"_aws": {
"Timestamp": 1583902595342,
"CloudWatchMetrics": [
{
"Dimensions": [[ "ServiceName", "ServiceType" ]],
"Metrics": [{ "Name": "ProcessingTime", "Unit": "Milliseconds" }],
"Namespace": "aws-embedded-metrics"
}
]
},
"ServiceName": "example",
"ServiceType": "AWS::ECS::Container",
"Method": "GET",
"Url": "/test",
"containerId": "702e4bcf1345",
"createdAt": "2020-03-11T04:54:24.981207801Z",
"startedAt": "2020-03-11T04:54:25.594413051Z",
"image": "<account-id>.dkr.ecr.<region>.amazonaws.com/emf-examples:latest",
"cluster": "emf-example",
"taskArn": "arn:aws:ecs:<region>:<account-id>:task/2fe946f6-8a2e-41a4-8fec-c4983bad8f74",
"ProcessingTime": 5
}
```
127 changes: 127 additions & 0 deletions techstack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<!--
&lt;--- Readme.md Snippet without images Start ---&gt;
## Tech Stack
gordonpn/aws-embedded-metrics-python is built on the following main stack:

- [Python](https://www.python.org) – Languages
- [Node.js](http://nodejs.org/) – Frameworks (Full Stack)
- [Docker](https://www.docker.com/) – Virtual Machine Platforms & Containers
- [Debian](https://www.debian.org/) – Operating Systems
- [Shell](https://en.wikipedia.org/wiki/Shell_script) – Shells

Full tech stack [here](/techstack.md)

&lt;--- Readme.md Snippet without images End ---&gt;

&lt;--- Readme.md Snippet with images Start ---&gt;
## Tech Stack
gordonpn/aws-embedded-metrics-python is built on the following main stack:

- <img width='25' height='25' src='https://img.stackshare.io/service/993/pUBY5pVj.png' alt='Python'/> [Python](https://www.python.org) – Languages
- <img width='25' height='25' src='https://img.stackshare.io/service/1011/n1JRsFeB_400x400.png' alt='Node.js'/> [Node.js](http://nodejs.org/) – Frameworks (Full Stack)
- <img width='25' height='25' src='https://img.stackshare.io/service/586/n4u37v9t_400x400.png' alt='Docker'/> [Docker](https://www.docker.com/) – Virtual Machine Platforms & Containers
- <img width='25' height='25' src='https://img.stackshare.io/service/1656/vd4gAekh.png' alt='Debian'/> [Debian](https://www.debian.org/) – Operating Systems
- <img width='25' height='25' src='https://img.stackshare.io/service/4631/default_c2062d40130562bdc836c13dbca02d318205a962.png' alt='Shell'/> [Shell](https://en.wikipedia.org/wiki/Shell_script) – Shells

Full tech stack [here](/techstack.md)

&lt;--- Readme.md Snippet with images End ---&gt;
-->
<div align="center">

# Tech Stack File
![](https://img.stackshare.io/repo.svg "repo") [gordonpn/aws-embedded-metrics-python](https://github.com/gordonpn/aws-embedded-metrics-python)![](https://img.stackshare.io/public_badge.svg "public")
<br/><br/>
|8<br/>Tools used|02/29/24 <br/>Report generated|
|------|------|
</div>

## <img src='https://img.stackshare.io/languages.svg'/> Languages (1)
<table><tr>
<td align='center'>
<img width='36' height='36' src='https://img.stackshare.io/service/993/pUBY5pVj.png' alt='Python'>
<br>
<sub><a href="https://www.python.org">Python</a></sub>
<br>
<sub></sub>
</td>

</tr>
</table>

## <img src='https://img.stackshare.io/frameworks.svg'/> Frameworks (1)
<table><tr>
<td align='center'>
<img width='36' height='36' src='https://img.stackshare.io/service/1011/n1JRsFeB_400x400.png' alt='Node.js'>
<br>
<sub><a href="http://nodejs.org/">Node.js</a></sub>
<br>
<sub></sub>
</td>

</tr>
</table>

## <img src='https://img.stackshare.io/devops.svg'/> DevOps (3)
<table><tr>
<td align='center'>
<img width='36' height='36' src='https://img.stackshare.io/service/586/n4u37v9t_400x400.png' alt='Docker'>
<br>
<sub><a href="https://www.docker.com/">Docker</a></sub>
<br>
<sub></sub>
</td>

<td align='center'>
<img width='36' height='36' src='https://img.stackshare.io/service/1046/git.png' alt='Git'>
<br>
<sub><a href="http://git-scm.com/">Git</a></sub>
<br>
<sub></sub>
</td>

<td align='center'>
<img width='36' height='36' src='https://img.stackshare.io/service/12572/-RIWgodF_400x400.jpg' alt='PyPI'>
<br>
<sub><a href="https://pypi.org/">PyPI</a></sub>
<br>
<sub></sub>
</td>

</tr>
</table>

## Other (2)
<table><tr>
<td align='center'>
<img width='36' height='36' src='https://img.stackshare.io/service/1656/vd4gAekh.png' alt='Debian'>
<br>
<sub><a href="https://www.debian.org/">Debian</a></sub>
<br>
<sub></sub>
</td>

<td align='center'>
<img width='36' height='36' src='https://img.stackshare.io/service/4631/default_c2062d40130562bdc836c13dbca02d318205a962.png' alt='Shell'>
<br>
<sub><a href="https://en.wikipedia.org/wiki/Shell_script">Shell</a></sub>
<br>
<sub></sub>
</td>

</tr>
</table>


## <img src='https://img.stackshare.io/group.svg' /> Open source packages (1)</h2>

## <img width='24' height='24' src='https://img.stackshare.io/service/12572/-RIWgodF_400x400.jpg'/> PyPI (1)

|NAME|VERSION|LAST UPDATED|LAST UPDATED BY|LICENSE|VULNERABILITIES|
|:------|:------|:------|:------|:------|:------|
|[aiohttp](https://pypi.org/project/aiohttp)|N/A|11/04/19|Jared Nance |Apache-2.0|N/A|

<br/>
<div align='center'>

Generated via [Stack File](https://github.com/marketplace/stack-file)
103 changes: 103 additions & 0 deletions techstack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
repo_name: gordonpn/aws-embedded-metrics-python
report_id: 5573201c257a07dc82fe2247ca315028
version: 0.1
repo_type: Public
timestamp: '2024-02-29T18:01:57+00:00'
requested_by: gordonpn
provider: github
branch: master
detected_tools_count: 8
tools:
- name: Python
description: A clear and powerful object-oriented programming language, comparable
to Perl, Ruby, Scheme, or Java.
website_url: https://www.python.org
open_source: true
hosted_saas: false
category: Languages & Frameworks
sub_category: Languages
image_url: https://img.stackshare.io/service/993/pUBY5pVj.png
detection_source_url: https://github.com/gordonpn/aws-embedded-metrics-python
detection_source: Repo Metadata
- name: Node.js
description: A platform built on Chrome's JavaScript runtime for easily building
fast, scalable network applications
website_url: http://nodejs.org/
open_source: true
hosted_saas: false
category: Languages & Frameworks
sub_category: Frameworks (Full Stack)
image_url: https://img.stackshare.io/service/1011/n1JRsFeB_400x400.png
detection_source_url: https://github.com/gordonpn/aws-embedded-metrics-python/blob/master/examples/ec2/metadata-endpoint/Dockerfile
detection_source: examples/ec2/metadata-endpoint/Dockerfile
last_updated_by: Jared Nance
last_updated_on: 2019-11-04 05:44:56.000000000 Z
- name: Docker
description: Enterprise Container Platform for High-Velocity Innovation.
website_url: https://www.docker.com/
license: Apache-2.0
open_source: true
hosted_saas: false
category: Build, Test, Deploy
sub_category: Virtual Machine Platforms & Containers
image_url: https://img.stackshare.io/service/586/n4u37v9t_400x400.png
detection_source_url: https://github.com/gordonpn/aws-embedded-metrics-python
detection_source: Repo Metadata
- name: Git
description: Fast, scalable, distributed revision control system
website_url: http://git-scm.com/
open_source: true
hosted_saas: false
category: Build, Test, Deploy
sub_category: Version Control System
image_url: https://img.stackshare.io/service/1046/git.png
detection_source_url: https://github.com/gordonpn/aws-embedded-metrics-python
detection_source: Repo Metadata
- name: PyPI
description: A repository of software for the Python programming language
website_url: https://pypi.org/
open_source: false
hosted_saas: false
category: Build, Test, Deploy
sub_category: Hosted Package Repository
image_url: https://img.stackshare.io/service/12572/-RIWgodF_400x400.jpg
detection_source_url: https://github.com/gordonpn/aws-embedded-metrics-python/blob/master/setup.py
detection_source: setup.py
last_updated_by: Jared Nance
last_updated_on: 2019-10-24 20:12:21.000000000 Z
- name: Debian
description: The Universal Operating System
website_url: https://www.debian.org/
open_source: false
hosted_saas: false
category: Languages & Frameworks
sub_category: Operating Systems
image_url: https://img.stackshare.io/service/1656/vd4gAekh.png
detection_source_url: https://github.com/gordonpn/aws-embedded-metrics-python/blob/master/tests/integ/agent/Dockerfile
detection_source: tests/integ/agent/Dockerfile
last_updated_by: Jared Nance
last_updated_on: 2020-08-28 15:10:24.000000000 Z
- name: Shell
description: A shell is a text-based terminal, used for manipulating programs and
files. Shell scripts typically manage program execution.
website_url: https://en.wikipedia.org/wiki/Shell_script
open_source: false
hosted_saas: false
category: Languages & Frameworks
sub_category: Languages
image_url: https://img.stackshare.io/service/4631/default_c2062d40130562bdc836c13dbca02d318205a962.png
detection_source_url: https://github.com/gordonpn/aws-embedded-metrics-python
detection_source: Repo Metadata
- name: aiohttp
description: Async http client/server framework
package_url: https://pypi.org/project/aiohttp
license: Apache-2.0
open_source: true
hosted_saas: false
category: Libraries
sub_category: PyPI Packages
image_url: https://img.stackshare.io/package/19852/default_d748224707283d9d8a73c2323730c87bda6b313a.png
detection_source_url: https://github.com/gordonpn/aws-embedded-metrics-python/blob/master/setup.py
detection_source: setup.py
last_updated_by: Jared Nance
last_updated_on: 2019-11-04 00:32:59.000000000 Z