https://github.com/artemklevtsov/redpanda-connect-plugins
Redpanda Connect Yandex Metrika API connectors
https://github.com/artemklevtsov/redpanda-connect-plugins
Last synced: 4 days ago
JSON representation
Redpanda Connect Yandex Metrika API connectors
- Host: GitHub
- URL: https://github.com/artemklevtsov/redpanda-connect-plugins
- Owner: artemklevtsov
- License: apache-2.0
- Created: 2025-02-18T15:47:24.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-04-18T16:06:56.000Z (about 1 month ago)
- Last Synced: 2025-04-19T04:51:36.286Z (about 1 month ago)
- Language: Go
- Size: 881 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Redpanda Connect
[](https://github.com/artemklevtsov/redpanda-connect-plugins/actions?query=branch%3Amain)

[](https://github.com/artemklevtsov/redpanda-connect-plugins/releases/latest)
[](https://github.com/artemklevtsov/redpanda-connect-plugins?tab=Apache-2.0-1-ov-file#readme)Redpanda Connect with some extensions.
## Install
Build and Install binary:
```sh
go install github.com/artemklevtsov/redpanda-connect-plugins@latest
ln -sf $HOME/go/bin/redpanda-connect-plugins $HOME/go/bin/redpanda-connect
```Or download binary with:
```sh
curl -s https://i.jpillora.com/artemklevtsov/redpanda-connect-plugins@latest!?as=redpanda-connect | bash
```Remove `!` if you want to install to the current directory.
Alternatively pull a Docker image with:
```sh
docker pull ghcr.io/artemklevtsov/redpanda-connect@latest
```## Run
```yaml
input:
yandex_metrika_stat_table:
ids:
- 44147844
metrics:
- ym:s:users
- ym:s:visits
dimensions:
- ym:s:date
- ym:s:lastTrafficSource
sort:
- ym:s:date
- ym:s:lastTrafficSource
date1: 2025-02-01
date2: 2025-02-28
# filters: ym:s:lastTrafficSource=='direct'
# filters: ym:s:date=='2025-02-03'output:
stdout: {}
```And you can run it like this:
```sh
redpanda-connect run ./connect.yaml
```See also `configs/` for the more examples.
## See also
### Documentation
#### redpanda Connect
- [plugin docs](docs/modules/components/pages/)
- [redpanda connect docs](https://docs.redpanda.com/redpanda-connect/)#### Yandex.Metrika API
##### Authorization
1. [Create app](https://oauth.yandex.ru/client/new/id)
2. Get token:- [debug token](https://yandex.ru/dev/id/doc/en/tokens/debug-token)
##### Reporting API
- [dimensions and metrics](https://yandex.ru/dev/metrika/en/stat/attrandmetr/dim_all)
##### Logs API
- [hits](https://yandex.ru/dev/metrika/en/logs/fields/hits)
- [visits](https://yandex.ru/dev/metrika/en/logs/fields/visits)
- [parametrization](https://yandex.ru/dev/metrika/en/logs/param)