MOVED to https://github.com/dotnet/aspire/blob/main/docs/specs/appmodel.md
Hello world, in this topic actually I'm making a logging visualization in grafana for GeoIP purposes. As we know, GeoIP cannot use Prometheus, we have to use metrics in the form of raw logs, which is called logging. Because I don't have a lot of resources for running the ELK Stack, in the end I just ran logging with Promtail + Loki. Follow this technical for installation and integration of Promtail & Loki.
I will continue from this article to visualize it with Promtail + Loki.
log_format json_analytics escape=json '{'
'"msec": "$msec", ' # request unixtime in seconds with a milliseconds resolution
'"connection": "$connection", ' # connection serial number
| # Defines our Vagrant environment | |
| # | |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| nodeCount = 2 | |
| image = "debian/buster64" | |
| ipRangeStart = 40 | |
| Vagrant.configure("2") do |config| |
| with import <nixpkgs> {}; | |
| let | |
| pg_root = builtins.toString ./. + "/.postgres"; | |
| pg_user = "postgres"; | |
| pg_db = "service"; | |
| pg_bind = "127.0.0.1"; | |
| svc_pg_user = "dev"; | |
| svc_pg_password = "changeme"; |
Hi! In the previous article, I've told how to deploy k8s cluster with ansible. Now I'm going to tell, how to add users to your cluster to be able to control your k8s remotely.
My Github: https://github.com/allanger/kubernetes-rbac-ansible-role
Let's imagine you've deployed a bare-metal cluster and you ssh to the master node every time you wanna do something with it. It's not cool, right? So you need to add a user to your cluster.
You can do it manually but, I think, after the first time you perform it, you'd like to do it automatically. That's why I've created this Ansible role.
We will need at least two nodes, Ansible, and a kubectl. That's enough to begin.
My ansible role: https://github.com/allanger/kubeadm-ansible-role
I am using Ubuntu 21.04 on all my servers so my Ansible role is written for Debian-based distros. (I will be happy if anybody adds support for other distros)
| // A Codec interface. Specific _CODECS_ (and not messages) | |
| // should be implementing this interface. | |
| public interface IMessageCodec<T> | |
| { | |
| string Encode(T value); | |
| T Decode(string value); | |
| } |
| deploy_to_lightsail: | |
| stage: deploy | |
| services: | |
| - name: docker:dind | |
| entrypoint: ['env', '-u', 'DOCKER_HOST'] | |
| command: ['dockerd-entrypoint.sh'] | |
| before_script: | |
| # 1. Install AWSCLIv2 (https://stackoverflow.com/questions/60298619/awscli-version-2-on-alpine-linux#answer-61268529) |
| Access 2003 Developer Extensions: KHCYK-2DXWD-6D4BV-9D9K6-TT9RY | |
| Access 2003: HVCBT-WQ823-BHMJC-RQJ3P-9T9VT | |
| Advanced Threat Analytics (ATA): F3JM7-7QNWQ-KKFVP-PDDRT-4M6P7 | |
| Automatic Graph Layout: HWQWP-RXKVP-PJ4BB-9KD87-K67H2 | |
| Commerce Server 2002: QJY77-8G8BD-3FYFQ-FDFH3-4RDCP | |
| CRM 2011 Server Edition: 36D7J-FR6QG-JXPF6-H449P-2P6RR | |
| CRM 2011 Workgroup Server Edition: 73B26-GWVRK-GDX7X-MDQBX-DH28R | |
| CRM 3.0 Professional Edition: D2Q47-3K4QX-FPVDT-P4QT6-3C8H8 | |
| CRM 3.0 Small Business Edition: TD7BB-D2H87-27KJH-VMH3P-QTQYW | |
| CRM 4.0 Enterprise Edition: WQWYD-FHH7F-XQPCK-2B8KG-D6VT3 |
