Social
About
Studying computer engineering at Gazi University.Sharing ideas, projects here...
Mail
admin(at)webischia.com-
Recent Posts
- Backup Kubernetes Object to AWS S3 using Heptio Velero(Ark) May 30, 2019
- CockroachDB on Kubernetes May 29, 2019
- Getting Notified From Radio Frequency using RTL_SDR and Opsgenie April 13, 2019
- AWS run tasks on EC2 without SSH, AWS Systems Manager February 3, 2019
- Serverless Function: Recognize dogs and send to Whatsapp using Twilio and AWS Rekognition January 19, 2019
- Create and upload container images to AWS ECR with Kaniko inside Kubernetes November 17, 2018
- Creating Serverless Backend using AWS Lambda and DynamoDB October 29, 2018
- Using Traffic Shifting on Istio to make Blue/Green Deployments on Kubernetes October 21, 2018
- BareMetal LoadBalancer for Kubernetes using MetalLB October 13, 2018
- Creating custom AWS EC2 images with Packer.io July 25, 2018
- Notifying Kubernetes events to Slack using Kubewatch July 24, 2018
- Using Amazon Translate Api on Java July 21, 2018
- Using JWT Authentication with OpenResty Lua July 21, 2018
- Single Sign-on with Nginx July 20, 2018
- Sending custom metrics to Datadog July 20, 2018
- Scale DynamoDB Capacity using CloudWatch Metrics on Java July 19, 2018
Recent Comments
Archives
Categories
Meta
Monthly Archives: July 2018
Creating custom AWS EC2 images with Packer.io
In this post i’ll show how to create custom images for aws ec2 and launching them within seconds. We need to create a json file to define our image settings.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
{ "variables": { "test-var": "test-value" }, "builders": [{ "type": "amazon-ebs", "region": "us-west-2", "source_ami_filter": { "filters": { "virtualization-type": "hvm", "name": "ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*", "root-device-type": "ebs" }, "owners": ["099720109477"], "most_recent": true }, "instance_type": "t2.micro", "ssh_username": "ubuntu", "ami_name": "webischia-test {{timestamp}}" }] } |
After that we just need to build this image … Continue reading
Notifying Kubernetes events to Slack using Kubewatch
In this post i’ll show how to notify kubernetes events to our slack channel using bitnami-labs/kubewatch. kubewatch repo can be accessed using this link. We need to create slackbot.I created new bot named kubewatch-webischia. Then i copied this token. After … Continue reading
Using Amazon Translate Api on Java
In this post i’ll show how to use amazon translate api on java with aws sdk to do real-time translations. Amazon Translate Translate service offers neural and accurate translation service. Using 2million “character” per month is free. In this post … Continue reading
Posted in AWS, Java
Tagged amazon translate, amazon web services, AWS, aws translate, java, sdk
Leave a comment
Using JWT Authentication with OpenResty Lua
In this post i’ll show how to authenticate nginx using jwt by OpenResty Lua. First of all what is openresty? OpenResty is a web application server which uses nginx as a core. With that you can leverage all nginx modules … Continue reading
Single Sign-on with Nginx
In this post i’ll show how to use nginx as a reverse proxy to use single sign-on by Google oAuth2. First of all we need to get github/bitly/oauth2Proxy thats will become our authenticator for communicating google api. After that we … Continue reading
Posted in Golang
Tagged oauth proxy, single sign on, single sign-on nginx, sso google, sso nginx
Leave a comment
Sending custom metrics to Datadog
In this post we will sending custom metrics to datadog via datadog’s own python library.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from datadog import initialize, api import time options = { 'api_key': '***', 'app_key': '***' } ourPoints=[] for i in range(len(date)): ourPoints.append((date[i],score[i])) initialize(**options) api.Metric.send( metric='webischia.metrics.blog', points=ourPoints) |
After that we can show our metrics on datadog.com. PS: Beware you cannot send older metrics from 1 hour ago. https://help.datadoghq.com/hc/en-us/articles/203038029-I-d-like-to-add-historical-data-to-my-account-is-there-a-way-to-do-that-
Posted in Python, SaaS
Tagged custom metrics, datadog, python datadog, send metrics to cloud
Leave a comment
Scale DynamoDB Capacity using CloudWatch Metrics on Java
In this post i’ll show how to autoscale dynamodb using aws java sdk. First of all we need to open our client and sessions and select our dynamodb table using aws java sdk.
1 2 3 4 |
AmazonDynamoDB client = AmazonDynamoDBClientBuilder.standard().withRegion(Regions.US_WEST_2).build(); DynamoDB dynamoDB = new DynamoDB(client); String tableName = "webischia-table"; Table table = dynamoDB.getTable(tableName); |
Now we should get cloudwatch metrics. … Continue reading
Posted in AWS, Java
Tagged amazon web services, AWS, cloudwatch metrics, dynamodb, dynamodb java, java aws, scale dynamodb
Leave a comment
Prometheus Monitoring Using Android Phone and Java Spring
In this article shows how to show prometheus monitored systems using java spring auth proxy. -JavaSpring With java we can implemented authenticate based querying on Prometheus Rest API Code can be accessible on github. -Android https://github.com/ffahri/serveranalysisandroid_ Used volley and mpAndroid … Continue reading
Posted in Uncategorized
Leave a comment